/*! For license information please see main.eb412848.js.LICENSE.txt */ (function(){var __webpack_modules__={81506:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},48926:function(e){function t(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=e.apply(n,r);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)}))}}},93913:function(e){function t(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}},87757:function(e,t,n){e.exports=n(19727)},81850:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},56083:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&s(e),o=t&&s(t),a=i||o;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var M=r[r.length-1];c="."===M||".."===M||""===M}else c=!1;for(var m=0,l=r.length;l>=0;l--){var d=r[l];"."===d?u(r,l):".."===d?(u(r,l),m++):m&&(u(r,l),m--)}if(!a)for(;m--;m)r.unshift("..");!a||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"===typeof Symbol&&Symbol.iterator;var M=function(e){return"/"===e.charAt(0)?e:"/"+e},m=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},l=function(e,t){return m(e,t)?e.substr(t.length):e},d=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},h=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a()(g,"Browser history needs a DOM");var t=window.history,n=w(),r=!S(),o=e.forceRefresh,s=void 0!==o&&o,u=e.getUserConfirmation,c=void 0===u?b:u,f=e.keyLength,N=void 0===f?6:f,T=e.basename?d(M(e.basename)):"",R=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return i()(!T||m(a,T),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+T+'".'),T&&(a=l(a,T)),p(a,r,n)},B=function(){return Math.random().toString(36).substr(2,N)},D=y(),F=function(e){_(ee,e),ee.length=t.length,D.notifyListeners(ee.location,ee.action)},I=function(e){C(e)||L(R(e.state))},x=function(){L(R(P()))},O=!1,L=function(e){if(O)O=!1,F();else{D.confirmTransitionTo(e,"POP",c,(function(t){t?F({action:"POP",location:e}):j(e)}))}},j=function(e){var t=ee.location,n=Q.indexOf(t.key);-1===n&&(n=0);var r=Q.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(O=!0,X(i))},z=R(P()),Q=[z.key],G=function(e){return T+h(e)},W=function(e,r){i()(!("object"===("undefined"===typeof e?"undefined":A(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",a=p(e,r,B(),ee.location);D.confirmTransitionTo(a,o,c,(function(e){if(e){var r=G(a),u=a.key,c=a.state;if(n)if(t.pushState({key:u,state:c},null,r),s)window.location.href=r;else{var M=Q.indexOf(ee.location.key),m=Q.slice(0,-1===M?0:M+1);m.push(a.key),Q=m,F({action:o,location:a})}else i()(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}}))},U=function(e,r){i()(!("object"===("undefined"===typeof e?"undefined":A(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",a=p(e,r,B(),ee.location);D.confirmTransitionTo(a,o,c,(function(e){if(e){var r=G(a),u=a.key,c=a.state;if(n)if(t.replaceState({key:u,state:c},null,r),s)window.location.replace(r);else{var M=Q.indexOf(ee.location.key);-1!==M&&(Q[M]=a.key),F({action:o,location:a})}else i()(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}}))},X=function(e){t.go(e)},J=function(){return X(-1)},K=function(){return X(1)},Y=0,Z=function(e){1===(Y+=e)?(E(window,H,I),r&&E(window,k,x)):0===Y&&(v(window,H,I),r&&v(window,k,x))},V=!1,$=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=D.setPrompt(e);return V||(Z(1),V=!0),function(){return V&&(V=!1,Z(-1)),t()}},q=function(e){var t=D.appendListener(e);return Z(1),function(){Z(-1),t()}},ee={length:t.length,action:"POP",location:z,createHref:G,push:W,replace:U,go:X,goBack:J,goForward:K,block:$,listen:q};return ee},T=(Object.assign,"function"===typeof Symbol&&Symbol.iterator,Object.assign,N())},37990:function(e,t,n){"use strict";n.d(t,{v:function(){return s}});var r,i=n(94022),o=n(36222),a=(r={},(0,o.Z)(r,i.q.prod,{duringAdminCancellation:"AkNVBd",duringCancellation:{40:"nPWOKU",50:"CWCZWR",60:"kZpPOJ"}}),(0,o.Z)(r,i.q.qa,{duringAdminCancellation:"mdgb40",duringCancellation:{40:"IntTest1",50:"IntTest1",60:"IntTest1"}}),(0,o.Z)(r,i.q.preprod,{duringAdminCancellation:"okdjuU",duringCancellation:{40:"jxPbZh",50:"CWCZWR",60:"kZpPOJ"}}),r);var s=function(e){var t=i.c[e],n="https://support.grammarly.com/hc/en-us/articles",r="https://support.grammarly.com/hc/en-us/sections";return{env:e,domainCookie:".".concat(t),tracking:{gnar:"https://gnar.".concat(t),felog:"https://f-log-at.grammarly.io/logv2",femetrics:"https://femetrics.grammarly.io/batch/import"},urls:{myGrammarly:"https://app.".concat(t,"/"),grammarlyApps:"https://app.".concat(t,"/apps"),signin:"https://www.".concat(t,"/signin"),autoSignin:"https://master.app.".concat(t,"/autotest/login"),signup:"https://www.".concat(t,"/signup"),main:"https://account.".concat(t),newSupportRequest:"https://grammarly.zendesk.com/login?return_to=https%3A%2F%2Fsupport.grammarly.com%2Fhc%2Fen-us%2Frequests%2Fnew",planChangeSupport:"https://support.grammarly.com/hc/en-us/articles/9182515060877",newSupportRequestWithCategory:"https://support.grammarly.com/hc/en-us/requests/new#/",support:"https://support.grammarly.com/hc/en-us",supportLogin:"https://support.grammarly.com/login",supportDataReport:"https://support.grammarly.com/hc/en-us/requests/new?personaldatareport",supportSamsungSDK:"".concat(r,"/360013643411"),supportArticles:{administration:{settingUpSso:"".concat(n,"/360048683092-How-do-I-set-up-SAML-single-sign-on-for-my-Grammarly-Business-or-Grammarly-edu-account-"),configuringMemberProvisioning:"".concat(n,"/4403054674829-Configuring-user-provisioning-for-your-Grammarly-Business-account"),howToSsoInIdp:{okta:"".concat(n,"/360048773252-How-do-I-configure-the-Grammarly-app-in-Okta-"),azureAD:"".concat(n,"/360049536832-How-do-I-configure-the-Grammarly-app-in-Azure-AD-"),googleWorkspace:"".concat(n,"/360051598552-How-do-I-configure-the-Grammarly-app-in-G-Suite-"),pingOne:"".concat(n,"/360049541012-How-do-I-configure-the-Grammarly-app-in-PingOne-"),auth0:"".concat(n,"/360050011931-How-do-I-configure-the-Grammarly-app-in-Auth0-"),adfs:"".concat(n,"/360054130472-How-do-I-configure-the-Grammarly-app-in-ADFS-"),cyberArkIdentity:"".concat(n,"/4406295232781-How-do-I-configure-the-Grammarly-app-in-CyberArk-Identity-"),oneLogin:"".concat(n,"/360052210371-How-do-I-configure-the-Grammarly-app-in-OneLogin-")},howToScimInIdp:{okta:"".concat(n,"/360058725831-Configuring-provisioning-for-Grammarly-in-Okta"),azureAd:"".concat(n,"/360058948112-Configuring-provisioning-for-Grammarly-in-Azure-AD"),oneLogin:"".concat(n,"/4410368818445-Configuring-provisioning-for-Grammarly-in-OneLogin")},faqAndIssues:"".concat(r,"/360008203332-Resolve-issues-Grammarly-Business")},analyticsGroups:"".concat(n,"/360061408151-Analyzing-your-team-s-writing-performance#h_01FKRDSB2ZD2V9JSFAGZX07WNS"),analyticsTeamsUsage:"".concat(n,"/11226802974477"),createdAnotherAccount:"".concat(n,"/115001417232-I-can-t-seem-to-access-Premium-features"),configureSSO:"".concat(n,"/360048683092"),contactGrammarlySupport:"".concat(n,"/115000271412"),scimProvisioning:"".concat(n,"/4403054674829"),managedMode:{grammarlyForMac:"https://docs.jamf.com/technical-articles/",grammarlyForFirefox:"https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_manifests#managed_storage_manifests",help:"https://support.grammarly.com/hc/en-us/articles/8341171286541-Managed-Mode",appleSupport:"https://support.apple.com/guide/mac-help/configuration-profiles-standardize-settings-mh35561/mac"},gbAccountPermissions:"".concat(n,"/360059662992"),secureAccount:"".concat(n,"/115000090212-How-can-I-keep-my-Grammarly-account-secure-"),members:{addingTeamMembers:"".concat(n,"/11500F0931852-How-do-I-add-team-members"),assigningGroupsToUsers:"".concat(n,"/4415031489037-Can-I-organize-my-team-members-into-groups-"),assigningRolesToUsers:"".concat(n,"/360059662992-Managing-your-Grammarly-Business-account-permissions"),invitingUsersViaSso:"".concat(n,"/360048773832-After-I-have-set-up-SSO-how-do-I-invite-users-to-join-my-Grammarly-Business-team-"),removingTeamMembers:"".concat(n,"/115000930532-How-do-I-remove-members-"),replacingTeamMembers:"".concat(n,"/115000929331-How-do-I-replace-existing-members"),settingUpSamlSso:"".concat(n,"/360048683092-How-do-I-set-up-SAML-single-sign-on-for-my-Grammarly-Business-or-Grammarly-edu-account-"),userProvisioning:"".concat(n,"/4403054674829-Configuring-user-provisioning-for-your-Grammarly-Business-account"),commonIssues:{noAvailableSeats:"".concat(n,"/4415389035405--There-are-no-available-seats-in-the-organization-error"),cannotInviteMembers:"".concat(n,"/360040781412-I-can-t-invite-team-members-Unable-to-process-payment-"),ownerAccountSeat:"".concat(n,"/360040793112-Does-the-owner-account-count-toward-the-seat-limit-"),troubleshooting:"".concat(r,"/360008203332-Resolve-issues-Grammarly-Business")}},security:{recentActions:"https://support.grammarly.com/hc/en-us/articles"}},funnel:{home:"https://www.".concat(t,"/"),premiumFeatures:"https://www.".concat(t,"/premium"),resetPassword:"https://www.".concat(t,"/resetpassword"),cancelBusinessSubscription:"https://www.".concat(t,"/business/cancel"),styleGuide:"https://www.".concat(t,"/business/styleguide"),cancelEduSubscription:"https://www.".concat(t,"/enterprise/cancel"),keyboardLanding:"https://www.".concat(t,"/keyboard"),macOSLanding:"https://www.".concat(t,"/native/mac"),windowsLanding:"https://www.".concat(t,"/native/windows"),nativeLanding:"https://www.".concat(t,"/native"),officeAddInLanding:"https://www.".concat(t,"/office-addin"),plans:"https://www.".concat(t,"/plans"),upgrade:"https://www.".concat(t,"/upgrade"),adminChat:"https://www.".concat(t,"/contact/admin-chat#trialchat"),trust:"https://www.".concat(t,"/trust"),security:"https://www.".concat(t,"/security"),terms:"https://www.".concat(t,"/terms"),privacyPolicy:"https://www.".concat(t,"/privacy-policy"),workspacesStartTrial:"https://www.".concat(t,"/upgrade/business/workspace-trial"),inviteLink:"https://invite.".concat(t,"/")},blog:{howGrammarlyWorks:"https://www.".concat(t,"/blog/how-does-grammarly-work/"),whatIsATone:"https://www.grammarly.com/blog/tone",whatAreStyleRules:"https://support.grammarly.com/hc/en-us/articles/360043832652-Style-guide-terms"},appleSubscription:"https://apps.apple.com/account/subscriptions?=000010",androidSubscription:function(e){return"https://play.google.com/store/account/subscriptions?sku=com.grammarly.".concat(e,"subscription&package=com.grammarly.android.keyboard")},discount:a[e],voxOnboardingDoc:"https://contenthub-static.grammarly.com/blog/wp-content/uploads/2021/02/styleguide-custom-rules.pdf",chromeExtension:"https://chrome.google.com/webstore/detail/grammarly-for-chrome/kbfnbcaeplbcioakkpcpgfkobkghlhen?hl=en-US",scimBaseUri:"https://sso.".concat(t,"/scim/v2"),androidSDK:{logout:"grammarly.sdk://logout",accountDeleted:"grammarly.sdk://account-deleted"},iOS:{logout:"grammarly://logout",accountDeleted:"grammarly://account-deleted"},indiaSubscriptionRegulationNotice:"https://www.rbi.org.in/Scripts/NotificationUser.aspx?Id=11668"},api:{auth:"//auth.".concat(t,"/v3"),capi:"//capi.".concat(t,"/api/"),dapi:"//data.".concat(t),subscription:"//subscription.".concat(t,"/api/v2"),payments:"https://api.payments.".concat(t,"/v1"),discount:"https://irbis.".concat(t,"/api/discounts"),mail:"https://g-mail.".concat(t),irbis:"https://irbis.".concat(t),redirect:"https://redirect.".concat(t,"/redirect"),institution:"https://goldengate.".concat(t,"/institution/api"),institutionAdmin:"https://goldengate.".concat(t,"/institution/api/institution/admin"),analytics:"https://goldengate.".concat(t,"/analytics/api/institution/statistics"),institutionMembers:"https://goldengate.".concat(t,"/institution/api/institution/members"),institutionInvitees:"https://goldengate.".concat(t,"/institution/api/institution/invitees"),institutionGroups:"https://goldengate.".concat(t,"/institution/api/groups"),institutionVault:"https://goldengate.".concat(t,"/institution/api/vault"),knowledgeHub:"https://goldengate.".concat(t,"/knowledge-hub/v1/institution"),sso:"https://sso.".concat(t),snippets:"https://goldengate.".concat(t,"/snippets/v1/snippets"),profileTones:"https://goldengate.".concat(t,"/brand-tones/v1"),scim:"https://goldengate.".concat(t,"/auth/api/token/scim"),workspace:"https://goldengate.".concat(t,"/workspace"),clientControls:"https://goldengate.".concat(t,"/client-controls"),voxInstitution:"https://goldengate.".concat(t,"/vox/v1/institution"),voxInstitutionV2:"https://goldengate.".concat(t,"/vox/v2/institution"),voxWorkspace:"https://goldengate.".concat(t,"/vox/v1/workspace"),voxWorkspaceV2:"https://goldengate.".concat(t,"/vox/v2/workspace"),docApi:"https://dox.".concat(t),dataReportApi:"https://datareport.".concat(t),facadeApi:"https://www.".concat(t,"/api"),writingStyles:"https://goldengate.".concat(t,"/writing-style"),manakin:{experiments:"https://treatment.".concat(t,"/treatment/get"),gates:"https://gates.".concat(t,"/gates/get")},tokens:"https://tokens.".concat(t),apps:"https://apps.".concat(t)},email:{sales:"sales@grammarly.com",support:"support@grammarly.com"}}}("prod")},94022:function(e,t,n){"use strict";n.d(t,{c:function(){return a},q:function(){return i}});var r,i,o=n(36222);!function(e){e.prod="prod",e.preprod="preprod",e.qa="qa"}(i||(i={}));var a=(r={},(0,o.Z)(r,i.prod,"grammarly.com"),(0,o.Z)(r,i.preprod,"ppgr.io"),(0,o.Z)(r,i.qa,"qagr.io"),r)},43568:function(e,t,n){"use strict";n.d(t,{JM:function(){return g},Mo:function(){return w},OD:function(){return d},Wv:function(){return M},_y:function(){return m},bK:function(){return p},bp:function(){return h},kw:function(){return y},l8:function(){return b},lb:function(){return l},nV:function(){return E},ph:function(){return f},qm:function(){return v}});var r=n(18489),i=n(84531),o=n(27853),a=n(12782),s=n(72791),u=n(80184),c=(0,i.Z)((function e(t,n,r,i,a,s,u,c,M,m,l){(0,o.Z)(this,e),this.user=t,this.api=n,this.modal=r,this.notifier=i,this.gnar=a,this.experiments=s,this.drawer=u,this.settings=c,this.onboarding=M,this.client=m,this.clientControls=l})),M=function(e){return a.Wx.of(new c(e.user,e.api,e.modal,e.notifier,e.gnar,e.experimentService,e.drawer,e.settings,e.onboarding,e.client,e.clientControls))},m=s.createContext(a.Wx.empty());function l(e){var t=s.memo(e);return function(n){return(0,u.jsx)(m.Consumer,{children:function(i){return i.map((function(i){var o=(0,r.Z)((0,r.Z)({},n),{},{ctx:i});return(0,u.jsx)(t,(0,r.Z)({},o),e.displayName)})).orNull()}})}}function d(e){return l(e)}var h=function(){var e=s.useContext(m);if(e.isEmpty())throw new Error("The AppContext has not been initialized yet, wrap your component into onlyContext or withContext to ensure it is only rendered after context is initialized");return e.get()},f=function(){return h().user},p=function(){return h().api},y=function(){return h().modal},g=function(){return h().experiments},E=function(){return h().settings},v=function(){return h().client},b=function(){return h().gnar},w=function(){return h().notifier}},53310:function(e,t,n){"use strict";var r;n.d(t,{D:function(){return r}}),function(e){e.ProductSettings="/admin/settings",e.Authentication="/admin/authentication",e.Provisioning="/admin/provisioning",e.ManagedMode="/admin/managed_mode"}(r||(r={}))},58867:function(e,t,n){"use strict";var r;n.d(t,{_:function(){return r}}),function(e){e.oldPath="/admin/tone-assistant",e.newPath="/admin/brand-tones",e.Selected="/admin/brand-tones/:toneProfileId"}(r||(r={}))},83610:function(e,t,n){"use strict";var r;n.d(t,{s:function(){return r}}),function(e){e.Main="/admin/client-controls"}(r||(r={}))},13305:function(e,t,n){"use strict";n.d(t,{Nc:function(){return a},XC:function(){return o},jw:function(){return i},kO:function(){return r},pb:function(){return s}});var r,i=14;!function(e){e.onboardingInviteMembers="onboardingInviteMembers",e.onboardingSnippets="onboardingSnippets",e.onboardingBrandTones="onboardingBrandTones",e.onboardingStyleGuide="onboardingStyleGuide",e.downloadGrammarly="onboardingDownloadGrammarly"}(r||(r={}));var o=[r.onboardingInviteMembers,r.onboardingBrandTones,r.onboardingStyleGuide,r.onboardingSnippets],a=[r.onboardingInviteMembers,r.downloadGrammarly,r.onboardingBrandTones,r.onboardingStyleGuide,r.onboardingSnippets];function s(e){switch(e){case r.onboardingInviteMembers:return"inviteMembers";case r.downloadGrammarly:return"downloadApp";case r.onboardingBrandTones:return"setBrandTones";case r.onboardingStyleGuide:return"createStyleGuideRule";case r.onboardingSnippets:return"createSnippet";default:throw new Error("No QA string defined for task ".concat(e))}}},90311:function(e,t,n){"use strict";var r;n.d(t,{Y:function(){return r}}),function(e){e.Main="/admin/dlp-demo"}(r||(r={}))},45780:function(e,t,n){"use strict";var r;n.d(t,{t:function(){return r}}),function(e){e.Home="/admin/knowledge-hub"}(r||(r={}))},25743:function(e,t,n){"use strict";n.d(t,{J:function(){return G},x:function(){return z}});var r=n(31303),i=n(18489),o=n(33032),a=n(93184),s=n(27853),u=n(84531),c=n(15052),M=n(84322),m=n.n(M),l=n(84894),d=n(25400),h=n(3887),f=n(12782),p=n(67125),y=n(47697),g=n(25731),E=n(36993),v=n(78717),b=n(37507),w=n(91593),S=n(98144),C=n(89201),A=n(26560),_=n(54156),H=n(15411),k=n(44582),P=n(66896),N=(n(72791),n(90494)),T="remove_confirmation_removeCopy__NH9vc",R=n(80184);var B,D,F,I,x,O,L,j=function(e){var t=e.organizationType,n=e.email;return t.contains("K12")?(0,R.jsxs)("div",{className:T,children:["You are about to permanently delete the account and all saved documents associated with email address ".concat(n,"."),(0,R.jsx)(N.L,{}),"If you ever change your mind, you can invite this user to create a new Grammarly account and rejoin your organization."]}):(0,R.jsxs)("div",{className:T,children:["This user\u2019s account will no longer be associated with your Grammarly license.",(0,R.jsx)(N.L,{}),"You can restore this user to your license within ",(0,R.jsx)("strong",{children:"30 days"}),"."]})},z="UNASSIGNED",Q={feature:d.User.Feature.Institution,permission:d.User.InstitutionPermission.GroupMembershipManage},G=(B=l.action.bound,D=l.action.bound,F=l.action.bound,I=function(){function e(t,n,r,u,c,M,h,p,v,w,N){var T=this;(0,s.Z)(this,e),this.model=t,this.modal=r,this.removeMember=u,this.reinviteMember=c,this.user=h,this.api=p,this.notifier=v,this.gnarSpec=w,this.experiments=N,(0,a.Z)(this,"index",x,this),this.checked=l.observable.box(!1),this.memberUpdateForm=void 0,this.logger=(0,C.jl)("member.view"),this.getFormGroupId=function(){return T.memberUpdateForm.fields.groupId},this.roleDropDownOptions=this.experiments.isActive(k.t2.groupContributorRole)?(0,P.tJ)(this.user.permissions,this.groupId):P.Hy,(0,a.Z)(this,"setRoleAndGroup",O,this),(0,a.Z)(this,"setInstitutionRole",L,this),this.setGroupContributorRole=(0,o.Z)(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=T.memberUpdateForm.fields.groupId.value)!==z&&""!==t){e.next=4;break}return T.memberUpdateForm.error=f.Wx.of("You must select a group when selecting the Group Contributor role."),e.abrupt("return");case 4:return n=T.getUserRoleDataForGroupContributorRole(t),e.prev=5,e.next=8,T.api.setUsersRoles(n);case 8:T.model.addRole(y.i4.GroupContributor),T.model.group=f.Wx.of(T.model.groupList.find((function(e){var n=e.id;return t===n.toString()}))),(0,A.Or)(T.gnarSpec.roleChangeOneUserFormSuccess(_.tq,d.User.UserGroupRoleName.GroupContributor)),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),T.handleRoleError(e.t0,d.User.UserGroupRoleName.GroupContributor);case 16:case"end":return e.stop()}}),e,null,[[5,13]])}))),this.removeGroupContributorRole=(0,o.Z)(m().mark((function e(){var t;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=T.groupId,e.prev=1,e.next=4,T.api.removeUsersGroupRoles([{userId:T.idOrEmail,role:d.User.UserGroupRoleName.GroupContributor,groupId:parseInt(t)}]);case 4:T.model.removeRole(y.i4.GroupContributor),(0,A.Or)(T.gnarSpec.roleChangeOneUserFormSuccess(_.tq,d.User.UserGroupRoleName.GroupContributor)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),T.handleRoleError(e.t0,d.User.UserGroupRoleName.GroupContributor);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),this.handleRoleError=function(e,t){var n,r=null===(n=(0,b.wt)(e))||void 0===n?void 0:n.error;(0,A.Or)(T.gnarSpec.roleChangeOneUserFormFail(void 0,r,_.tq,t)),"User cannot update own role"===r?(T.notifier.error("You cannot change your own role."),T.logger.error("User cannot change their own role",e,t)):(T.logger.error("Unable to set role ".concat(t," for user"),e,S.s),T.notifier.error("Unable to set role."))},this.openRemoveConfirmationModal=function(){var e,t,n;T.modal.open((e=T,t=T.gnarSpec,n=T.model.organizationType,{title:"Remove Member: ".concat(e.name),content:(0,R.jsx)(j,{organizationType:n,email:e.email}),footer:{buttons:[{name:"close",visualStyleType:"Ghost",children:"Close",onClick:function(){return e.modal.close(),t.membersRemoveCancelButtonClick(e.isActive?"active":"invited","oneByOne")}},{name:"member.remove",visualStyleType:"Primary",children:"Remove",onClick:e.remove}]},hooks:{onOpen:function(){return t.membersRemoveButtonClick(e.isActive?"active":"invited","oneByOne",1)}}}))},this.reinvite=(0,o.Z)(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.reinviteMember(T);case 2:(0,A.Or)(T.gnarSpec.membersReinviteFormSuccess("oneByOne",1));case 3:case"end":return e.stop()}}),e)}))),this.remove=(0,o.Z)(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.removeMember(T);case 2:(0,A.Or)(T.gnarSpec.membersRemoveFormSuccess(T.memberStatus===H.XY.Active?"active":T.memberStatus===H.XY.Invited?"invited":"invite_expired","oneByOne",1)),T.modal.close();case 4:case"end":return e.stop()}}),e)}))),this.closeMember=function(){T.modal.close()},this.openMember=function(e){T.modal.open((0,i.Z)((0,i.Z)({},e),{},{hooks:{onClose:function(){return T.gnarSpec.memberDetailsDrawerClose()},onOpen:function(){return T.gnarSpec.memberDetailsDrawerShow()}}}))},this.index=n,this.checked.set(M),this.memberUpdateForm=new g.K({fields:{role:{value:this.userRole,validation:(0,E.uU)(this.getFormGroupId)},groupId:this.groupId},onSubmit:this.saveForm,onSuccessSubmit:this.modal.close})}return(0,u.Z)(e,[{key:"loadGroups",value:function(){var e=(0,o.Z)(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.api.getGroups();case 3:t=e.sent,n=t.groups,this.setGroupList(n),e.next=14;break;case 8:e.prev=8,e.t0=e.catch(0),e.t0.code&&this.logger.error("Unable to get groups list",e.t0,S.s),this.notifier.error("Unable to get the list of groups."),this.logger.error("Unable to get groups list",e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"id",get:function(){return this.model.id}},{key:"idOrEmail",get:function(){return this.model.idOrEmail}},{key:"isSelf",get:function(){return this.model.uid.getOrElse(-1).toString()===this.user.user.id}},{key:"isSelectable",get:function(){return!this.isSelf&&this.memberStatus!==H.XY.Removed}},{key:"hasPermissionToAssignMemberRole",get:function(){return(0,P.pk)(this.user.permissions,this)}},{key:"canEditRole",get:function(){return this.hasPermissionToAssignMemberRole&&this.isActive&&!this.isSelf}},{key:"name",get:function(){return this.model.name}},{key:"email",get:function(){return this.model.email}},{key:"groupName",get:function(){return this.model.group.map((function(e){return e.name})).getOrElse("")}},{key:"groupId",get:function(){return this.model.group.map((function(e){return e.id.toString()})).getOrElse(z)}},{key:"hasUnassignedGroupId",get:function(){return this.groupId===z}},{key:"memberStatus",get:function(){return this.model.memberStatus}},{key:"memberStatusTitle",get:function(){return p.c.get(this.model.memberStatus)||"Active"}},{key:"isInvited",get:function(){return this.memberStatus===H.XY.Invited||this.memberStatus===H.XY.InviteExpired}},{key:"isActive",get:function(){return this.memberStatus===H.XY.Active}},{key:"isRemoved",get:function(){return this.memberStatus===H.XY.Removed}},{key:"provisioningStatus",get:function(){return this.model.provisioningStatus}},{key:"isScim",get:function(){return this.provisioningStatus.nonEmpty()}},{key:"rowData",get:function(){return{name:this.name,email:this.email,state:p.c.get(this.memberStatus)||"Active",group:{name:this.groupName},registrationDate:this.registeredAt,stateDateTime:this.updatedAt,lastActivity:this.lastActivityAt,role:this.userRole,index:this.index}}},{key:"userRole",get:function(){return this.model.userRole}},{key:"groupList",get:function(){return this.model.groupList}},{key:"setChecked",value:function(e,t){this.checked.set(e),(0,A.Or)(e?this.gnarSpec.memberSelectCheckboxSelect(t):this.gnarSpec.memberSelectCheckboxDeselect(t))}},{key:"roleChanged",get:function(){return this.model.userRole!==this.memberUpdateForm.fields.role.value}},{key:"groupIdChanged",get:function(){return this.groupId!==this.memberUpdateForm.fields.groupId.value}},{key:"saveForm",value:function(){var e=(0,o.Z)(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setRoleAndGroup();case 2:this.closeMember();case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"disableSave",get:function(){return!this.canRemove&&!this.showGroupsDropdown}},{key:"hasModel",value:function(e){return this.model===e}},{key:"getUserRoleDataForGroupContributorRole",value:function(e){var t={userId:this.idOrEmail,role:d.User.UserGroupRoleName.GroupContributor,groupId:parseInt(e)},n={userId:this.idOrEmail,role:d.User.InstitutionRoleName.InstitutionUser};return this.userRole===y.i4.InstitutionUser?[t]:[t,n]}},{key:"updateMemberGroup",value:function(){var e=(0,o.Z)(m().mark((function e(){var t,n,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.memberUpdateForm.fields.groupId.value,n=Number(t===z?this.groupId:t),e.prev=2,(0,A.Or)(this.gnarSpec.groupChangeOneUserButtonClick(this.model.id.getOrElse(""),n,_.tq)),t!==z){e.next=9;break}return e.next=7,this.api.deleteGroupMembers(n,[this.model.email]);case 7:e.next=11;break;case 9:return e.next=11,this.api.addGroupMembers(n,[this.model.email]);case 11:this.model.group=f.Wx.of(this.model.groupList.find((function(e){var n=e.id;return t===n.toString()}))),(0,A.Or)(this.gnarSpec.groupChangeOneUserFormSuccess(n,_.tq)),e.next=22;break;case 15:e.prev=15,e.t0=e.catch(2),i=null===(r=(0,b.wt)(e.t0))||void 0===r?void 0:r.error,(0,A.Or)(this.gnarSpec.groupChangeOneUserFormFail(void 0,i,n,_.tq)),e.t0.code&&this.logger.error("Unable to set group",e.t0,S.s),this.notifier.error("Unable to set group.");case 22:case"end":return e.stop()}}),e,this,[[2,15]])})));return function(){return e.apply(this,arguments)}}()},{key:"setGroupList",value:function(e){this.model.groupList=e}},{key:"groupsDropDownOptions",get:function(){var e=this,t=this.groupList.map((function(e){var t=e.id,n=e.name;return{id:t.toString(),value:n}}));return this.hasInstitutionGroupMembershipManagePermission?[{id:z,value:"Unassigned"}].concat((0,r.Z)(t)):this.hasGroupMembershipManagePermissionForSomeGroup?[{id:z,value:"Unassigned"}].concat((0,r.Z)(t.filter((function(t){return e.user.permissions.hasGroupPermission(Q,t.id)})))):[]}},{key:"hasInstitutionGroupMembershipManagePermission",get:function(){return this.user.permissions.hasInstitutionPermission(Q)}},{key:"hasGroupMembershipManagePermissionForSomeGroup",get:function(){return this.user.permissions.hasGroupPermissionForSomeGroup(Q)}},{key:"hasGroupMembershipManagePermissionForMembersGroup",get:function(){return this.user.permissions.hasGroupPermission(Q,this.groupId)}},{key:"hasRemovePermission",get:function(){return this.user.permissions.hasInstitutionPermission({feature:d.User.Feature.Institution,permission:d.User.InstitutionPermission.MembershipWrite})}},{key:"canRemove",get:function(){return this.hasRemovePermission&&!this.isScim&&!this.isSelf&&(this.isActive||this.isInvited)}},{key:"removeTooltipText",get:function(){return this.isSelf?"If you\u2019d like to be removed from this account, contact another account owner.":this.isScim?"Member provisioned through an external identity provider.":void 0}},{key:"showResendInvite",get:function(){return this.user.permissions.hasInstitutionPermission({feature:d.User.Feature.Institution,permission:d.User.InstitutionPermission.MembershipWrite})}},{key:"showGroupsDropdown",get:function(){return this.hasInstitutionGroupMembershipManagePermission||this.hasGroupMembershipManagePermissionForSomeGroup&&!this.isSelf&&(this.hasGroupMembershipManagePermissionForMembersGroup||this.hasUnassignedGroupId)}},{key:"registeredAt",get:function(){return this.model.registeredAt.map(w.p6).getOrElse("\u2013")}},{key:"lastActivityAt",get:function(){return this.model.lastActivityAt.map(w.p6).getOrElse("\u2013")}},{key:"updatedAt",get:function(){return this.model.updatedAt.map(w.p6).getOrElse("\u2013")}},{key:"updateIndex",value:function(e){return this.index!==e&&(this.index=e),this}}]),e}(),x=(0,c.Z)(I.prototype,"index",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.Z)(I.prototype,"userRole",[l.computed],Object.getOwnPropertyDescriptor(I.prototype,"userRole"),I.prototype),(0,c.Z)(I.prototype,"setChecked",[B],Object.getOwnPropertyDescriptor(I.prototype,"setChecked"),I.prototype),(0,c.Z)(I.prototype,"roleChanged",[l.computed],Object.getOwnPropertyDescriptor(I.prototype,"roleChanged"),I.prototype),(0,c.Z)(I.prototype,"groupIdChanged",[l.computed],Object.getOwnPropertyDescriptor(I.prototype,"groupIdChanged"),I.prototype),(0,c.Z)(I.prototype,"saveForm",[D],Object.getOwnPropertyDescriptor(I.prototype,"saveForm"),I.prototype),O=(0,c.Z)(I.prototype,"setRoleAndGroup",[l.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return(0,o.Z)(m().mark((function t(){var n,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=v.E.get(e.memberUpdateForm.fields.role.value),r=e.userRole,(0,A.Or)(e.gnarSpec.roleChangeOneUserButtonClick(e.model.id.getOrElse(""),_.tq,n)),n){t.next=5;break}return t.abrupt("return");case 5:if(n===d.User.UserGroupRoleName.GroupContributor){t.next=19;break}if(r!==y.i4.GroupContributor){t.next=9;break}return t.next=9,e.removeGroupContributorRole();case 9:return t.next=11,(0,h.gw)(500);case 11:if(!e.canEditRole||!e.roleChanged){t.next=14;break}return t.next=14,e.setInstitutionRole(n);case 14:if(!e.groupIdChanged){t.next=17;break}return t.next=17,e.updateMemberGroup();case 17:t.next=22;break;case 19:if(n!==d.User.UserGroupRoleName.GroupContributor||!e.canEditRole||!e.roleChanged){t.next=22;break}return t.next=22,e.setGroupContributorRole();case 22:case"end":return t.stop()}}),t)})))}}),L=(0,c.Z)(I.prototype,"setInstitutionRole",[l.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,o.Z)(m().mark((function t(n){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.api.setUserRole({userId:e.idOrEmail,role:n});case 3:e.model.addRole(e.memberUpdateForm.fields.role.value),e.model.removeRole(e.userRole),(0,A.Or)(e.gnarSpec.roleChangeOneUserFormSuccess(_.tq,n)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),e.handleRoleError(t.t0,n);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}()}}),(0,c.Z)(I.prototype,"updateMemberGroup",[F],Object.getOwnPropertyDescriptor(I.prototype,"updateMemberGroup"),I.prototype),(0,c.Z)(I.prototype,"setGroupList",[l.action],Object.getOwnPropertyDescriptor(I.prototype,"setGroupList"),I.prototype),(0,c.Z)(I.prototype,"groupsDropDownOptions",[l.computed],Object.getOwnPropertyDescriptor(I.prototype,"groupsDropDownOptions"),I.prototype),(0,c.Z)(I.prototype,"updateIndex",[l.action],Object.getOwnPropertyDescriptor(I.prototype,"updateIndex"),I.prototype),I)},67125:function(e,t,n){"use strict";n.d(t,{c:function(){return i},v:function(){return o}});var r=n(15411),i=new Map([[r.XY.Active,"Active"],[r.XY.Invited,"Invite Sent"],[r.XY.InviteExpired,"Invite Expired"],[r.XY.Removed,"Removed"]]),o=new Map([["Active",r.XY.Active],["Invite Sent",r.XY.Invited],["Invite Expired",r.XY.InviteExpired],["Removed",r.XY.Removed]])},63717:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r}}),function(e){e.Index="/admin/members",e.Groups="/admin/groups",e.ActiveLastActivity="/admin/members?filters=Active&order=lastActivityDate",e.InviteForm="/admin/members?navigation=invite",e.Invited="/admin/members?filters=Invited"}(r||(r={}))},66896:function(e,t,n){"use strict";n.d(t,{Hy:function(){return m},pk:function(){return f},tJ:function(){return h}});var r=n(25400),i=n(47697),o=n(25743),a=n(78717),s={value:i.i4.Owner,id:i.i4.Owner},u={value:i.i4.Contributor,id:i.i4.Contributor},c={value:i.i4.InstitutionUser,id:i.i4.InstitutionUser},M={value:i.i4.GroupContributor,id:i.i4.GroupContributor},m=[s,u,c],l=function(e,t){var n=new Map([[r.User.InstitutionRoleName.Owner,r.User.InstitutionPermission.RolesWriteOwner],[r.User.InstitutionRoleName.Contributor,r.User.InstitutionPermission.RolesWriteContributor],[r.User.InstitutionRoleName.InstitutionUser,r.User.InstitutionPermission.RolesWriteInstitutionUser],[r.User.UserGroupRoleName.GroupContributor,r.User.InstitutionPermission.RolesWriteGroupContributor]]).get(t);return void 0!==n&&e.hasInstitutionPermission({feature:r.User.Feature.Institution,permission:n})},d=function(e,t){return void 0!==t&&t!==o.x&&e.hasGroupPermission({feature:r.User.Feature.Institution,permission:r.User.InstitutionPermission.RolesWriteGroupContributor},t)},h=function(e,t){var n=[];return(l(e,r.User.InstitutionRoleName.InstitutionUser)||l(e,r.User.UserGroupRoleName.GroupContributor)||d(e,t))&&n.push(c),(l(e,r.User.UserGroupRoleName.GroupContributor)||d(e,t))&&n.push(M),l(e,r.User.InstitutionRoleName.Contributor)&&n.push(u),l(e,r.User.InstitutionRoleName.Owner)&&n.push(s),n},f=function(e,t){var n=a.E.get(t.userRole);if(void 0===n)return!1;switch(n){case r.User.InstitutionRoleName.Owner:return l(e,r.User.InstitutionRoleName.Owner);case r.User.InstitutionRoleName.Contributor:return l(e,r.User.InstitutionRoleName.Contributor);case r.User.UserGroupRoleName.GroupContributor:return l(e,r.User.UserGroupRoleName.GroupContributor)||d(e,t.groupId);case r.User.InstitutionRoleName.InstitutionUser:return l(e,r.User.InstitutionRoleName.InstitutionUser)||l(e,r.User.UserGroupRoleName.GroupContributor)||d(e,t.groupId)}}},79760:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return r}}),function(e){e.Home="/admin/style-rules",e.HomeDepreceted="/admin/style-guide",e.Selected="/admin/style-rules/:styleGuideId",e.SelectedDepreceted="/admin/style-guide/:styleGuideId",e.WritingStyles="/admin/style-guide-writing-preferences",e.WritingStylesDeprecated="/admin/style-guide-writing-style",e.WritingStyleProfileList="/admin/style-guide-writing-preferences/sets",e.WritingStyleProfileListDepreceted="/admin/style-guide-writing-style/profiles",e.SelectedWritingStyleProfile="/admin/style-guide-writing-preferences/set/:writingStyleProfileId",e.SelectedWritingStyleProfileDepreceted="/admin/style-guide-writing-style/profile/:writingStyleProfileId",e.StyleRules="/admin/style-rules",e.TermsDepreceted="/admin/style-guide"}(r||(r={}))},70345:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return r}}),function(e){e.Index="/admin/subscription",e.AddBillingInfo="/admin/subscription?popup=add_billing_info"}(r||(r={}))},61854:function(e,t,n){"use strict";n.d(t,{Es:function(){return r},RL:function(){return h},fi:function(){return d}});var r,i=n(50678),o=n(18489),a=n(72791),s=n(12782),u=n(75282),c=n(95614),M=n(90940),m=n(44582),l=n(43568);!function(e){e.Index="/security",e.TwoStepVerification="/security/mfa",e.DeviceSessions="/security/devices",e.RecentActivity="/security/activity",e.Privacy="/security/privacy"}(r||(r={}));var d=function(e){return function(t){(0,c._U)("hubSecurity",(0,o.Z)({page:e},t?{action:t}:{}))}};function h(){var e=(0,l.bp)().experiments.isActive(m.t2.kazaSecurityHub),t=(0,u.k6)(),n=(0,u.TH)().search,o=(0,a.useState)(!1),c=(0,i.Z)(o,2),d=c[0],h=c[1];return(0,a.useEffect)((function(){if(e){var i=(0,M.ce)(n,"page"),o=s.Wx.none();switch(i){case"overview":o=s.Wx.of(r.Index);break;case"mfa":o=s.Wx.of(r.TwoStepVerification);break;case"device_sessions":o=s.Wx.of(r.DeviceSessions);break;case"recent_activity":o=s.Wx.of(r.RecentActivity)}o.forEach((function(e){t.replace({pathname:e,search:n}),(0,M.A8)(n,["page"],t)})),h(!0)}}),[t,n,h,e]),{internalRedirectIsDone:d}}},68279:function(e,t,n){"use strict";n.d(t,{Y0:function(){return h},aD:function(){return d},f_:function(){return p},pN:function(){return y}});var r=n(33032),i=n(27853),o=n(84531),a=n(84322),s=n.n(a),u=n(85439),c=n(89201),M=n(62436),m=n(37990),l=n(43568),d=["subscriptionStatusQuery"],h=function(){var e=(0,l.bK)().subscriptionApi;return(0,u.a)(d,(function(){return e.getStatus()}),{onError:function(e){(0,c.jl)("subscription.api").error("Error while getting subscription status",e)}})},f=["draftInvoiceQuery"],p=function(){var e=(0,l.bK)().subscriptionApi;return(0,u.a)(f,(function(){return e.getInvoiceDraft()}),{onError:function(e){(0,c.jl)("subscription.api").error("Error while getting draftInvoice",e)}})},y=function(){function e(t,n){(0,i.Z)(this,e),this.api=t,this.queryClient=n}return(0,o.Z)(e,[{key:"getStatus",value:function(){var e=(0,r.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.api.subscriptionApi.getStatus();case 2:return t=e.sent,this.queryClient.setQueryData(d,(function(){return t})),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getIndividualStatus",value:function(){var e=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.api.subscriptionApi.getIndividualStatus());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getIndividualPaymentHistory",value:function(){var e=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.api.subscriptionApi.getIndividualPaymentHistory());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"reactivate",value:function(){var e=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.api.subscriptionApi.renewSubscription());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"downloadSingleReceipt",value:function(){var e=(0,r.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.api.subscriptionApi.downloadSingleReceipt(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"downloadReceipts",value:function(){var e=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.api.subscriptionApi.downloadBillingReceipts());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setCompanyInfo",value:function(e){return this.api.subscriptionApi.setCompanyInfo(e)}},{key:"cancelSubscription",value:function(){return this.api.subscriptionApi.cancelSubscription()}},{key:"changePlan",value:function(e){var t=Object.values((0,M.getTrialPlans)(m.v.env,[])).flat().some((function(t){return t.id===e})),n=(0,M.createTrialSubscriptionApi)(m.v.api.facadeApi,this.api.ajaxFactoryDSL);return t?n.changePlan({planId:e}):this.api.subscriptionApi.changePlan(e)}},{key:"changeCurrentPlan",value:function(e){return this.api.subscriptionApi.changeCurrentPlan(e)}},{key:"applyDiscount",value:function(e){return this.api.discountApi.applyDiscount(e)}},{key:"requestRefund",value:function(){return this.api.subscriptionApi.requestRefund()}},{key:"getInvoiceDraft",value:function(){return this.api.subscriptionApi.getInvoiceDraft()}},{key:"voidInvoice",value:function(){return this.api.subscriptionApi.voidDraftInvoice()}}]),e}()},52379:function(e,t,n){"use strict";n.d(t,{C:function(){return De},A:function(){return $e}});var r,i=n(33032),o=n(93184),a=n(27853),s=n(84531),u=n(15052),c=n(84322),M=n.n(c),m=n(12782),l=n(84894),d=n(72791),h=n(2871),f=n(88946),p=n(55412),y=n(91593),g=n(26560),E=n(89201),v=n(8359),b=n(54156),w=n(57740),S=n(44582),C=n(48495),A=n(51592),_=n(97228),H=n(81020),k=n(804),P=n(19177),N=n(81694),T=n.n(N),R=n(99023),B=n(41684),D=n(47149),F=n(36275),I=n(90494),x=n(72080),O=n(46362),L=n(80184),j=b.tq?{gray90:"#F7F8FF",gray20:"#8189A9",black00:"#000000",spacing_w:"2vw",container:"plan_options_m_container__z5kbu",planBox:"plan_options_m_planBox__cXbWm",selectedPlanBox:"plan_options_m_selectedPlanBox__PoAzn",title:"plan_options_m_title__rbRJs",planPrices:"plan_options_m_planPrices__kO6TV",header:"plan_options_m_header__nycKm",planBilling:"plan_options_m_planBilling__gx7rl",alignOnRow:"plan_options_m_alignOnRow__1ACht",planStatus:"plan_options_m_planStatus__Zify1",input:"plan_options_m_input__W6vZb",leftSpacer:"plan_options_m_leftSpacer__r0HKd",nonDiscountPrice:"plan_options_m_nonDiscountPrice__NNAxa"}:{gray90:"#F7F8FF",gray20:"#8189A9",black00:"#000000",container:"plan_options_d_container__LsSqD",title:"plan_options_d_title__UHJ-G",planBox:"plan_options_d_planBox__T2HhP",nonSelected:"plan_options_d_nonSelected__8Yknq",selectedPlanBox:"plan_options_d_selectedPlanBox__gN1oe",planPrices:"plan_options_d_planPrices__xpeOZ",header:"plan_options_d_header__6pk8G",planBilling:"plan_options_d_planBilling__LAKV0",alignOnRow:"plan_options_d_alignOnRow__aN-FM",planStatus:"plan_options_d_planStatus__GoYq0",input:"plan_options_d_input__cA13-",leftSpacer:"plan_options_d_leftSpacer__EZOqf",nonDiscountPrice:"plan_options_d_nonDiscountPrice__M4yVZ"},z=(0,R.observer)(r=function(e){(0,H.Z)(n,e);var t=(0,k.Z)(n);function n(){var e;(0,a.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var $=d.createElement("path",{d:"M1 6.5H30M30 6.5L24.5 1M30 6.5L24.5 12",stroke:"#0E101A",strokeLinecap:"round"});function q(e,t){var n=e.title,r=e.titleId,i=V(e,["title","titleId"]);return d.createElement("svg",Z({width:31,height:13,viewBox:"0 0 31 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?d.createElement("title",{id:r},n):null,$)}var ee=d.forwardRef(q);n.p;function te(){return(te=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var re=d.createElement("path",{d:"M224.226 39l-6.106 7.697M223.047 59.317l9.784 1.525M240.463 45.24l-18.179 7.143M118.096 39l6.106 7.697M119.275 59.317l-9.783 1.525M101.859 45.24l18.18 7.143",stroke:"#1F243C",strokeMiterlimit:10}),ie=d.createElement("path",{d:"M341 101.544c0 9.569-1.18 18.583-3.261 26.21-3.331 12.273-8.951 21.01-15.474 23.298-.138.069-.277.069-.416.139-.139.069-.277.069-.416.138-.139.07-.278.07-.417.139-.277.069-.555.139-.832.139-.139 0-.278.069-.417.069h-.832c-3.261 0-6.314-1.595-9.159-4.438-3.955-4.021-7.286-10.539-9.576-18.652a332.494 332.494 0 01-1.041-4.021c0-.07 0-.139-.069-.208-.416-1.803-.763-3.675-1.11-5.617a54.622 54.622 0 01-.486-3.536c-.555-4.369-.833-8.945-.833-13.729 0-4.785.278-9.361.833-13.73.069-.693.208-1.386.278-2.08l.208-1.456c.277-1.941.694-3.813 1.11-5.616.347-1.456.694-2.843 1.041-4.16 2.29-8.113 5.62-14.631 9.575-18.653 2.776-2.843 5.898-4.437 9.159-4.437h.833c.139 0 .278 0 .416.069.278 0 .556.07.833.139.139 0 .278.069.416.138.139 0 .278.07.417.139.138.07.277.07.416.139 7.633 2.704 13.947 14.145 16.931 29.607 1.249 6.172 1.873 12.898 1.873 19.97z",fill:"#1F243C",stroke:"#1F243C",strokeMiterlimit:10}),oe=d.createElement("path",{d:"M322.265 151.052a9.9 9.9 0 01-3.469.624c-12.282 0-22.204-22.466-22.204-50.132 0-27.666 9.922-50.132 22.204-50.132a9.9 9.9 0 013.469.624c-10.616 3.744-18.734 24.477-18.734 49.508 0 25.031 8.118 45.764 18.734 49.508z",fill:"#F28C8C",stroke:"#1F243C",strokeMiterlimit:10}),ae=d.createElement("path",{d:"M45.408 101.544c0 6.934-.624 13.521-1.734 19.554-3.4 17.959-11.241 30.578-20.47 30.578h-.832c-.139 0-.278 0-.416-.069-.278 0-.556-.069-.833-.139-.139 0-.278-.069-.417-.139-.138 0-.277-.069-.416-.138-.139-.07-.277-.07-.416-.139-7.147-2.496-13.184-12.758-16.306-26.765-1.527-6.864-2.429-14.561-2.429-22.743 0-8.32.902-16.225 2.498-23.09 3.192-13.867 9.16-23.922 16.237-26.418.139-.07.277-.07.416-.139.139-.069.278-.069.416-.138.14-.07.278-.07.417-.139.277-.07.555-.139.832-.139.14 0 .278-.069.417-.069h.832c9.229 0 17.209 12.828 20.54 30.995 1.11 5.893 1.664 12.342 1.664 19.137z",fill:"#1F243C",stroke:"#1F243C",strokeMiterlimit:10}),se=d.createElement("path",{d:"M45.408 101.544c0 27.666-9.922 50.132-22.204 50.132a9.9 9.9 0 01-3.47-.624c10.617-3.744 18.735-24.477 18.735-49.508 0-25.031-8.118-45.764-18.734-49.508a9.9 9.9 0 013.469-.624c12.282 0 22.204 22.466 22.204 50.132z",fill:"#F28C8C",stroke:"#1F243C",strokeMiterlimit:10}),ue=d.createElement("path",{d:"M134.571 77.622l5.482-24.754c4.371.97 7.147 5.339 6.106 9.776l-3.747 15.88",fill:"#638EEB"}),ce=d.createElement("path",{d:"M134.571 77.622l5.482-24.754c4.371.97 7.147 5.339 6.106 9.776l-3.747 15.88",stroke:"#1F243C",strokeMiterlimit:10}),Me=d.createElement("path",{d:"M141.094 78.454l6.8-30.579c4.441.971 7.355 5.34 6.592 9.846l-3.747 21.495",fill:"#638EEB"}),me=d.createElement("path",{d:"M141.094 78.454l6.8-30.579c4.441.971 7.355 5.34 6.592 9.846l-3.747 21.495",stroke:"#1F243C",strokeMiterlimit:10}),le=d.createElement("path",{d:"M171.139 83.239l-8.049 19.068c-2.498 5.963-8.188 10.054-14.641 10.539l-104.776 8.252-7.008.554-33.236 2.635C1.902 117.423 1 109.726 1 101.544c0-8.32.902-16.225 2.498-23.09l33.167 3.26 7.078.692 82.224 8.113 7.355-32.797a8.323 8.323 0 014.927 3.328 7.87 7.87 0 011.388 4.507c0 .624-.07 1.248-.209 1.872L137 77.622l2.775.555 9.368 2.01.139-.762.069-.347 2.984-13.382 1.318-6.033.902-3.952.069-.347c3.817.832 6.384 4.23 6.384 7.974a8.45 8.45 0 01-.208 1.803l-5.482 24.615 2.013 4.854 3.053-7.072c1.804-4.16 6.591-6.102 10.755-4.3z",fill:"#638EEB",stroke:"#1F243C",strokeMiterlimit:10}),de=d.createElement("path",{d:"M138.596 59.593l-4.719 21.287 18.18 2.843 4.302-16.294-17.763-7.836z",fill:"#638EEB"}),he=d.createElement("path",{d:"M134.571 77.622l5.482-24.754M153.653 59.663l-4.441 19.692M141.163 77.968l6.314-28.082",stroke:"#1F243C",strokeMiterlimit:10}),fe=d.createElement("path",{d:"M341 101.543c0 9.569-1.18 18.583-3.262 26.21l-31.64-2.565-7.078-.555-102.902-8.459c-9.367-.763-16.375-8.876-15.89-18.236l1.804-33.491c.139-3.12 2.429-5.617 5.343-6.24a8.56 8.56 0 011.388-.14h.416l-.208 3.468L188 76.58l.277.07 4.302 1.04.625.138 6.384 1.526 2.428-18.791c.07-.416.139-.832.278-1.248 0-.07 0-.139.069-.208 1.18-3.606 4.927-5.894 8.812-5.2l-2.567 30.162c0 .139.069.208.139.208.069.07.208 0 .277-.139l2.568-6.864c1.11-2.913 3.816-4.577 6.661-4.577 1.179 0 2.29.278 3.4.902l-7.772 20.385 83.751-8.32 7.009-.694 34.416-3.397c1.318 6.17 1.943 12.897 1.943 19.969z",fill:"#15C39A",stroke:"#1F243C",strokeMiterlimit:10}),pe=d.createElement("path",{d:"M184.947 62.09l19.012-2.982-2.567 22.397h-17.694l1.249-19.415z",fill:"#15C39A"}),ye=d.createElement("path",{d:"M185.502 79.424l1.665-19.9c.347-4.507 4.302-7.836 8.812-7.489l-1.734 18.514",fill:"#15C39A"}),ge=d.createElement("path",{d:"M185.502 79.424l1.665-19.9c.347-4.507 4.302-7.836 8.812-7.489l-1.734 18.514",stroke:"#1F243C",strokeMiterlimit:10}),Ee=d.createElement("path",{d:"M192.441 79.424l2.22-24.199c.416-4.507 4.372-7.835 8.882-7.42l-1.18 11.303",fill:"#15C39A"}),ve=d.createElement("path",{d:"M192.441 79.424l2.22-24.199c.416-4.507 4.372-7.835 8.882-7.42l-1.18 11.303",stroke:"#1F243C",strokeMiterlimit:10}),be=d.createElement("path",{d:"M211.175 53.977c-4.371-.763-8.534 2.219-9.089 6.657l-2.429 18.79M198.686 94.54c0-5.617 4.579-10.193 10.2-10.193",stroke:"#1F243C",strokeMiterlimit:10}),we=d.createElement("path",{d:"M166.912 35.446l18.601-20.515c.608-.67.608-1.765 0-2.435l-8.024-8.887c-.365-.365-.851-.609-1.337-.609h-20.304c-.487 0-1.034.244-1.338.609l-8.024 8.826c-.608.67-.608 1.766 0 2.435l18.602 20.515a1.177 1.177 0 001.824.061z",fill:"#1F243C",stroke:"#1F243C",strokeMiterlimit:10}),Se=d.createElement("path",{d:"M171.912 33.446l18.601-20.515c.608-.67.608-1.765 0-2.435l-8.024-8.887c-.365-.365-.851-.609-1.337-.609h-20.304c-.487 0-1.034.244-1.338.609l-8.024 8.826c-.608.67-.608 1.766 0 2.435l18.602 20.515a1.177 1.177 0 001.824.061z",fill:"url(#paint0_linear)",stroke:"#1F243C",strokeMiterlimit:10}),Ce=d.createElement("path",{d:"M191 11.653h-40M167.049 1.061l-3.952 9.984c-.182.426-.182.913 0 1.278L171 33.994M174.951 1.06l3.952 9.984c.182.426.182.913 0 1.279L171 33.994",stroke:"#1F243C",strokeMiterlimit:10}),Ae=d.createElement("defs",null,d.createElement("linearGradient",{id:"paint0_linear",x1:159.954,y1:23.283,x2:182.076,y2:1.191,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#F28C8C"}),d.createElement("stop",{offset:1,stopColor:"#F9EA9E"})));function _e(e,t){var n=e.title,r=e.titleId,i=ne(e,["title","titleId"]);return d.createElement("svg",te({width:342,height:153,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?d.createElement("title",{id:r},n):null,re,ie,oe,ae,se,ue,ce,Me,me,le,de,he,fe,pe,ye,ge,Ee,ve,be,we,Se,Ce,Ae)}var He,ke,Pe,Ne,Te,Re,Be,De,Fe=d.forwardRef(_e),Ie=(n.p,"compare_to_annual_plan_container__9e7Tj"),xe="compare_to_annual_plan_planComparison__Fywj2",Oe="compare_to_annual_plan_confirmationStepContent__Qp6yZ",Le=function(e){switch(e){case 1:return"Monthly";case 3:return"Quarterly";case 12:return"Annual";default:return""}},je=function(e){var t=e.plan;return(0,L.jsx)(x.z,{money:f.f.From(t.regularPrice).map((function(e){return e/t.periodInMonths}))})},ze=function(e){var t=e.plan;return(0,L.jsx)(x.z,{money:f.f.From(t.regularPrice).map((function(e){return e/t.periodInMonths*12}))})},Qe=function(e){var t=e.currentPlan,n=e.newPlan,r={currency:n.regularPrice.currency,value:n.regularPrice.value-t.price.value};return(0,L.jsx)(x.z,{money:r})},Ge=function(e){var t=e.planName,n=e.nextPayDate,r=e.annualPlan;return(0,L.jsxs)(P.CL,{children:["Your queued plan (",t,") will update to Annual on ",n,", at which time you will be charged one payment of ",(0,L.jsx)(ze,{plan:r}),". Your subscription will automatically renew every 12 months. You will be charged ",(0,L.jsx)(ze,{plan:r})," on each renewal."]})},We=function(e){var t=e.planName,n=e.annualPlan,r=e.currentPlan,i=e.nextPayDate;return(0,L.jsxs)(P.CL,{children:["Your current plan (",t,")"," ",(0,L.jsxs)("strong",{children:["will update to Annual immediately, and you will be charged"," ",(0,L.jsx)(Qe,{currentPlan:r,newPlan:n})]}),". Your subscription will automatically renew on ",i,", and will subsequently renew every 12 months. You will be charged ",(0,L.jsx)(ze,{plan:n})," on each subsequent renewal."]})},Ue=function(e){var t=e.nextPayDate;return(0,L.jsxs)("div",{className:Oe,children:[(0,L.jsxs)(P.XY,{children:["Your new plan starts on ",t,"."]}),(0,L.jsx)(I.L,{double:!0}),(0,L.jsx)(Fe,{})]})},Xe=function(e){var t=e.savings,n=e.currentPlan,r=e.annualPlan,i=e.nextPayDate,o=e.isBasedOnCurrentPlan,a=void 0!==o&&o,s=Le(n.periodInMonths);return(0,L.jsxs)("div",{className:Ie,children:[(0,L.jsx)(I.L,{small:!0}),(0,L.jsxs)("section",{className:xe,children:[(0,L.jsxs)("div",{children:[(0,L.jsx)(Y.by,{htmlElement:"h3",children:s}),(0,L.jsxs)(P.XY,{children:[(0,L.jsx)(ze,{plan:n}),"/year"]}),(0,L.jsxs)(P.CL,{children:[(0,L.jsx)(je,{plan:n}),"/mo"]})]}),(0,L.jsx)(ee,{}),(0,L.jsxs)("div",{children:[(0,L.jsx)(Y.by,{htmlElement:"h3",children:Le(r.periodInMonths)}),(0,L.jsxs)(P.XY,{children:[(0,L.jsx)(ze,{plan:r}),"/year ",(0,L.jsxs)(K.C.Regular,{children:[t," Saved"]})]}),(0,L.jsxs)(P.CL,{children:[(0,L.jsx)(je,{plan:r}),"/mo"]})]})]}),(0,L.jsx)(I.L,{triple:!0}),a?(0,L.jsx)(We,{currentPlan:n,planName:s,nextPayDate:i,annualPlan:r}):(0,L.jsx)(Ge,{planName:s,nextPayDate:i,annualPlan:r})]})},Je=n(30097),Ke="footer_footer__89dbU",Ye="footer_cancelBtn__8vgV2",Ze=function(e){var t=e.close,n=e.switchToAnnual;return(0,L.jsxs)("div",{className:Ke,children:[(0,L.jsx)("div",{className:Ye,children:(0,L.jsx)(Je.v.Inline,{name:"cancel",onClick:t,children:"Close"})}),(0,L.jsx)(Je.v.Primary,{name:"claim.discount",onClick:n,children:"Switch to Annual Plan"})]})},Ve=function(e){var t=e.close;return(0,L.jsx)("div",{className:Ke,children:(0,L.jsx)(Je.v.Primary,{name:"cancel.confirmation",onClick:t,children:"Close"})})};!function(e){e.Current="current",e.Queued="queued"}(De||(De={}));var $e=(He=l.action.bound,ke=l.action.bound,Pe=l.action.bound,Ne=l.action.bound,Te=l.action.bound,Re=function(){function e(t,n,r,i,s,u,c,M){var m=this;(0,a.Z)(this,e),this.renewal=t,this.model=n,this.api=r,this.modal=i,this.gnar=s,this.notifier=u,this.reload=c,this.experiments=M,(0,o.Z)(this,"stagedPlanChange",Be,this),this.notificationTracking=void 0,this.openPlanOptionsFromButton=function(){return m.openPlanOptions("change button")},this.openPlanOptionsFromCancellation=function(){return m.openPlanOptions("cancellation flow")},this.openPlanOptionsFromBanner=function(){return m.openPlanOptions("banner")},this.notificationTracking=new p.c(s)}return(0,s.Z)(e,[{key:"offeredPaymentPlans",get:function(){var e=this;return this.model.offeredPlans.map((function(t){return new C.Q(t,e.model.campaign)}))}},{key:"currentPlan",get:function(){var e=this.model,t=e.plan,n=e.campaign;return new C.Q(t,n)}},{key:"nextPlan",get:function(){return new C.Q(this.renewal.nextPaymentPlan,this.model.campaign)}},{key:"changeQueuedPlanToStagedAndNotifyAboutPlanChange",value:function(){var e=(0,i.Z)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.currentPlan,e.prev=1,e.next=4,this.changeQueuedPlanToStaged(t);case 4:(0,h.mL)(this.notifier,t,n),e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(1),e.t0;case 10:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"changeCurrentPlanToStagedAndNotifyAboutPlanChange",value:function(){var e=(0,i.Z)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.currentPlan,e.next=4,this.api.changeCurrentPlan(t.id);case 4:(0,h.J7)(this.notifier,t,n),(0,w.M)("changed-plan"),(0,g.Or)(this.gnar.subscriptionPlanChangeFormSuccess(t.periodText,De.Current,b.tq),"gnar.sub.plan.changed"),e.next=14;break;case 9:throw e.prev=9,e.t0=e.catch(0),402===e.t0.code&&(0,h.Ig)(this.notifier),(0,g.Or)(this.gnar.subscriptionPlanChangeFormFail(De.Current,[],(0,v.K)(e.t0),b.tq),"gnar.sub.plan.change.error"),e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,9]])})));return function(t){return e.apply(this,arguments)}}()},{key:"changeQueuedPlanToStaged",value:function(){var e=(0,i.Z)(M().mark((function e(t){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.api.changePlan(t.id);case 3:(0,g.Or)(this.gnar.subscriptionPlanChangeFormSuccess(t.periodText,De.Queued,b.tq),"gnar.sub.plan.changed"),(0,w.M)("changed-plan"),e.next=12;break;case 7:throw e.prev=7,e.t0=e.catch(0),(0,h.hh)(this.notifier),(0,g.Or)(this.gnar.subscriptionPlanChangeFormFail(De.Queued,[],(0,v.K)(e.t0),b.tq),"gnar.sub.plan.change.error"),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"changePlan",value:function(){var e=(0,i.Z)(M().mark((function e(){var t,n=this;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,g.Or)(this.gnar.changePlanButtonClick(b.tq)),t=this.nextPlan.id,!this.stagedPlanChange.exists((function(e){return e.id===t}))){e.next=5;break}return e.abrupt("return",this.closePlanModal());case 5:return e.next=7,this.stagedPlanChange.fold((function(){return n.modal.close(),Promise.resolve()}),function(){var e=(0,i.Z)(M().mark((function e(t){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.changeQueuedPlanToStagedAndNotifyAboutPlanChange(t);case 2:return e.next=4,n.reload();case 4:n.closePlanModal();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"changeCurrentPlan",value:function(){var e=(0,i.Z)(M().mark((function e(){var t,n=this;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,g.Or)(this.gnar.changePlanButtonClick(b.tq)),t=this.currentPlan.id,!this.stagedPlanChange.exists((function(e){return e.id===t}))){e.next=5;break}return e.abrupt("return",this.closePlanModal());case 5:return e.next=7,this.stagedPlanChange.fold((function(){return n.modal.close(),Promise.resolve()}),function(){var e=(0,i.Z)(M().mark((function e(t){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.changeCurrentPlanToStagedAndNotifyAboutPlanChange(t);case 2:return e.next=4,n.reload();case 4:n.closePlanModal();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"changePlanWithConfirmation",value:function(){var e=(0,i.Z)(M().mark((function e(){var t=this;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,g.Or)(this.gnar.changePlanButtonClick(b.tq)),e.next=3,this.stagedPlanChange.fold((function(){return t.modal.close(),Promise.resolve()}),function(){var e=(0,i.Z)(M().mark((function e(n){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.changeQueuedPlanToStaged(n);case 2:return e.next=4,t.reload();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:this.modal.open({title:"Done! Enjoy your savings.",content:(0,L.jsx)(Ue,{nextPayDate:(0,y.p6)(this.renewal.nextPayDate)}),footer:{any:(0,L.jsx)(Ve,{close:this.closePlanModal})}});case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"changePlanToDiscountedAnnual",value:function(){var e=(0,i.Z)(M().mark((function e(t){var n,r,i,o,a,s;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.api.applyDiscount(t.code);case 2:return e.next=4,this.api.getStatus();case 4:if(n=e.sent,r=n.plans,i=n.campaign,!(o=null===r||void 0===r?void 0:r.find((function(e){return 12===e.periodMonths})))||!f.f.Equals(o.priceMoney,t.discountedPrice)){e.next=18;break}return a=new C.Q((0,A.w)(o),m.Wx.of(i)),e.next=12,this.changeQueuedPlanToStagedAndNotifyAboutPlanChange(a);case 12:return e.next=14,this.reload();case 14:this.closePlanModal(),(0,g.Or)(this.gnar.discountDuringCancelationFormSuccess(b.tq)),e.next=22;break;case 18:s="Backend has not returned the discounted annual plan, actual: ".concat(JSON.stringify(o)),(0,E.jl)("apply.annual.discount").error(s),(0,h.EL)(this.notifier,this.notificationTracking),(0,g.Or)(this.gnar.discountDuringCancelationFormFail([],s,b.tq));case 22:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"closePlanModal",value:function(){this.stagedPlanChange=m.Wx.empty(),this.modal.close()}},{key:"setStaged",value:function(e){var t=this;return function(){return t.stagedPlanChange=m.Wx.of(e)}}},{key:"isSelectedPlan",value:function(e){var t=this;return this.stagedPlanChange.fold((function(){return t.nextPlan.id===e.id}),(function(t){return t.id===e.id}))}},{key:"openPlanOptions",value:function(e){var t=this;this.modal.open({title:"Change your plan",content:(0,L.jsx)(z,{viewModel:this}),footer:{buttons:[{name:"cancel",children:"Cancel",visualStyleType:"Ghost",onClick:this.closePlanModal},{name:"update.plan",children:"Update",visualStyleType:"Primary",onClick:this.changePlan}]},hooks:{onOpen:function(){return t.gnar.subscriptionPlanChangePopupShow(e,b.tq)}}})}},{key:"isChangePlanNudgeActive",get:function(){return this.experiments.isActive(S.lm.changePlanNudge,"redesigned_nudge")}},{key:"thereAreSavingsFromSwitchingToAnnualPlan",get:function(){return this.priceSavingsFromSwitchingToAnnualPlan()}},{key:"thereAreSavingsFromSwitchingToAnnualPlanFromExtension",get:function(){return this.experiments.isActive(S.lm.changePlansExtension,"variant")?this.savingsFromSwitchingToAnnualPlan():m.Wx.empty()}},{key:"nextPaymentPeriodInMonths",get:function(){return this.renewal.nextPaymentPlan.periodInMonths}},{key:"onSwitchToAnnualPlan",get:function(){return this.isChangePlanNudgeActive?this.changePlanWithConfirmation:this.changePlan}},{key:"savingsFromSwitchingToAnnualPlan",value:function(){switch(this.nextPaymentPeriodInMonths){case 1:return m.Wx.of("60%");case 3:return m.Wx.of("40%");default:return m.Wx.none()}}},{key:"priceSavingsFromSwitchingToAnnualPlan",value:function(){var e,t,n=null!==(e=null===(t=this.annualPlan)||void 0===t?void 0:t.price.value)&&void 0!==e?e:0;switch(this.nextPaymentPeriodInMonths){case 1:return m.Wx.of(this.nextPlan.price.map((function(e){return Math.abs(n-12*e)})).toString());case 3:return m.Wx.of(this.nextPlan.price.map((function(e){return Math.abs(n-4*e)})).toString());default:return m.Wx.none()}}},{key:"openDiscountedAnnualOffer",value:function(e){var t=this,n=this.renewal.nextPayDate;this.modal.open({title:"Save ".concat(e.percent,"% on Grammarly Premium"),content:(0,L.jsx)(J,{paymentMethodName:this.model.paymentMethod.currentMethodName,nextPayDate:(0,y.p6)(n),discount:e}),footer:{buttons:[{name:"cancel",children:"Cancel",visualStyleType:"Ghost",onClick:this.closePlanModal},{name:"claim.discount",children:"Claim Discount",visualStyleType:"Primary",onClick:function(){return t.changePlanToDiscountedAnnual(e)}}]}})}},{key:"annualPlan",get:function(){return this.model.offeredPlans.find((function(e){return 12===e.periodInMonths}))}},{key:"getCompareToAnnualPlanComponentAndStagePlanChange",value:function(e){if(!this.annualPlan)throw new Error("Annual plan does not exist when creating CompareToAnnualPlan component");var t=this.model,n=t.plan,r=t.renewal,i=t.campaign,o=this.renewal.nextPayDate,a=(0,_.g)(r)?r.nextPaymentPlan:n;return this.stagedPlanChange=m.Wx.of(new C.Q(this.annualPlan,i)),(0,L.jsx)(Xe,{savings:e,currentPlan:a,annualPlan:this.annualPlan,nextPayDate:(0,y.p6)(o)})}},{key:"openSwitchToAnnualOffer",value:function(e,t){var n=this;if(!this.annualPlan)throw new Error("Annual plan does not exist when opening switch to annual offer");this.modal.open({title:"Switch and save ".concat(e,"."),content:this.getCompareToAnnualPlanComponentAndStagePlanChange(e),footer:{any:(0,L.jsx)(Ze,{close:this.closePlanModal,switchToAnnual:this.onSwitchToAnnualPlan})},hooks:{onOpen:function(){return n.gnar.subscriptionPlanChangeToAnnualConfirmationPopupShow(t,b.tq)}}})}}]),e}(),Be=(0,u.Z)(Re.prototype,"stagedPlanChange",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.Wx.empty()}}),(0,u.Z)(Re.prototype,"offeredPaymentPlans",[l.computed],Object.getOwnPropertyDescriptor(Re.prototype,"offeredPaymentPlans"),Re.prototype),(0,u.Z)(Re.prototype,"currentPlan",[l.computed],Object.getOwnPropertyDescriptor(Re.prototype,"currentPlan"),Re.prototype),(0,u.Z)(Re.prototype,"nextPlan",[l.computed],Object.getOwnPropertyDescriptor(Re.prototype,"nextPlan"),Re.prototype),(0,u.Z)(Re.prototype,"changePlan",[He],Object.getOwnPropertyDescriptor(Re.prototype,"changePlan"),Re.prototype),(0,u.Z)(Re.prototype,"changeCurrentPlan",[ke],Object.getOwnPropertyDescriptor(Re.prototype,"changeCurrentPlan"),Re.prototype),(0,u.Z)(Re.prototype,"changePlanWithConfirmation",[Pe],Object.getOwnPropertyDescriptor(Re.prototype,"changePlanWithConfirmation"),Re.prototype),(0,u.Z)(Re.prototype,"changePlanToDiscountedAnnual",[Ne],Object.getOwnPropertyDescriptor(Re.prototype,"changePlanToDiscountedAnnual"),Re.prototype),(0,u.Z)(Re.prototype,"closePlanModal",[Te],Object.getOwnPropertyDescriptor(Re.prototype,"closePlanModal"),Re.prototype),(0,u.Z)(Re.prototype,"isChangePlanNudgeActive",[l.computed],Object.getOwnPropertyDescriptor(Re.prototype,"isChangePlanNudgeActive"),Re.prototype),(0,u.Z)(Re.prototype,"thereAreSavingsFromSwitchingToAnnualPlan",[l.computed],Object.getOwnPropertyDescriptor(Re.prototype,"thereAreSavingsFromSwitchingToAnnualPlan"),Re.prototype),(0,u.Z)(Re.prototype,"thereAreSavingsFromSwitchingToAnnualPlanFromExtension",[l.computed],Object.getOwnPropertyDescriptor(Re.prototype,"thereAreSavingsFromSwitchingToAnnualPlanFromExtension"),Re.prototype),(0,u.Z)(Re.prototype,"nextPaymentPeriodInMonths",[l.computed],Object.getOwnPropertyDescriptor(Re.prototype,"nextPaymentPeriodInMonths"),Re.prototype),(0,u.Z)(Re.prototype,"onSwitchToAnnualPlan",[l.computed],Object.getOwnPropertyDescriptor(Re.prototype,"onSwitchToAnnualPlan"),Re.prototype),Re)},97228:function(e,t,n){"use strict";function r(e){return"nextPayDate"in e}n.d(t,{g:function(){return r}})},51592:function(e,t,n){"use strict";function r(e){var t;return{id:e.id,title:e.title,description:e.description,price:e.priceMoney,periodInMonths:e.periodMonths,regularPlanId:e.regularPlanId,regularPrice:e.regularPriceMoney,renewalPlanId:e.renewalPlanId,renewalPrice:e.regularPriceMoney,trialDays:null!==(t=e.trialDays)&&void 0!==t?t:0}}n.d(t,{w:function(){return r}})},46362:function(e,t,n){"use strict";n.d(t,{F:function(){return o},N:function(){return a}});n(72791);var r=n(68279),i=n(80184),o=function(e){if(!e)return!1;var t=e.individualSubscriptionExclusivePricingEnabled,n=e.renewalPriceType;return!(!t||"EXCLUSIVE"!==n)},a=function(){var e=(0,r.Y0)().data;return o(null===e||void 0===e?void 0:e.pricingOptions)?(0,i.jsx)(i.Fragment,{children:" (plus applicable taxes)"}):null}},48495:function(e,t,n){"use strict";n.d(t,{Q:function(){return s}});var r=n(27853),i=n(84531),o=n(91593),a=n(88946),s=function(){function e(t,n){(0,r.Z)(this,e),this.model=t,this.discount=n}return(0,i.Z)(e,[{key:"id",get:function(){return this.model.id}},{key:"title",get:function(){return this.model.title}},{key:"price",get:function(){return a.f.From(this.model.price)}},{key:"regularPrice",get:function(){return a.f.From(this.model.regularPrice)}},{key:"pricePerMonth",get:function(){var e=this;return this.price.map((function(t){return t/Math.max(e.model.periodInMonths,1)}))}},{key:"periodInMonths",get:function(){return this.model.periodInMonths}},{key:"regularPricePerMonth",get:function(){var e=this;return this.regularPrice.map((function(t){return t/Math.max(e.model.periodInMonths,1)}))}},{key:"periodText",get:function(){return(0,o.Iu)(this.model.periodInMonths,(function(){return"unknown"}))}},{key:"isAnnualPlan",get:function(){return 12===this.model.periodInMonths}},{key:"isMonthlyPlan",get:function(){return 1===this.model.periodInMonths}},{key:"hasAppliedDiscount",get:function(){return this.discount.nonEmpty()}},{key:"discountName",get:function(){return this.discount.map((function(e){var t=e.discountPercent;return"".concat(t,"% discount")}))}},{key:"totalChargeText",get:function(){return"Billed ".concat(this.isMonthlyPlan?"monthly at":"as one payment of"," ").concat(this.price)}}]),e}()},2555:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});n(72791);var r=n(81694),i=n.n(r),o="backdrop_backdrop__08YUg",a="backdrop_backdropActive__KAK+O",s="backdrop_backdropHidden__9N-mj",u=n(80184),c=function(e){var t=e.hidden,n=e.children;return(0,u.jsx)("div",{className:i()(o,t?s:a),children:n})}},47149:function(e,t,n){"use strict";n.d(t,{Yc:function(){return M},Rz:function(){return l},dx:function(){return m}});var r=n(16658),i=n(81694),o=n.n(i),a=(n(72791),"badge_badge__tJozf"),s="badge_goodDeal__5A9Yc",u="badge_sample__Kcvyi",c=n(80184),M=function(e){var t=e.children,n=e.className;return(0,c.jsx)("div",{className:o()(s,a,n),children:t})},m=function(e){var t=e.className;return(0,c.jsx)("div",{className:o()(u,a,t),children:"SAMPLE"})},l=function(e){var t=e.className;return(0,c.jsx)(r.C.Regular,{className:t,a11yContrast:!0,children:"Inactive"})}},15281:function(e,t,n){"use strict";n.d(t,{Ic:function(){return y},re:function(){return p}});var r=n(36222),i=n(27853),o=n(84531),a=n(81020),s=n(804),u=n(18489),c=n(72791),M=n(81694),m=n.n(M),l=n(54156),d=n(76020),h=n(20677),f=n(80184);function p(e){return function(t){return(0,f.jsx)(g,(0,u.Z)((0,u.Z)({},t),{},{component:e}))}}var y={onMount:[],onUnmount:[]},g=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0||{error:"Should not be empty"}})),l=g((function(e){return!!i()(e)||{error:"Your email is incorrect"}})),d=g((function(e){return!!(0,c.ms)(e)||{error:"Symbols are not allowed"}})),h=g((function(e){return!!(0,c.FV)(e)||{error:"Symbols are not allowed"}})),f=g((function(e){return!!a()(e)||{error:"Please enter a valid url"}})),p=function(e){return g((function(t){var n=t.trim().toLowerCase();return n.length<8?{error:"Your new password must contain at least 8 characters"}:n.length>64?{error:"Your new password cannot be longer than 64 characters"}:!e.toLowerCase().startsWith(n)||{error:"This password is too similar to your email address. Please choose another password."}}))},y=function(e){return g((function(t){return t!==s.i4.GroupContributor||e().value!==u.x||{error:"You must select a group when selecting the Group Contributor role."}}))};function g(e){return function(t){return"string"!==typeof t||e(t)}}},597:function(e,t,n){"use strict";function r(e){return!0===e}n.d(t,{J:function(){return r}})},42239:function(e,t,n){"use strict";n.d(t,{X:function(){return w}});var r,i,o,a,s,u,c,M,m,l,d,h=n(93184),f=n(27853),p=n(84531),y=n(15052),g=n(84894),E=n(12782),v=n(36993),b=n(597),w=(r=g.action.bound,i=g.action.bound,o=g.action.bound,a=g.action.bound,s=g.action.bound,u=function(){function e(t){(0,f.Z)(this,e),(0,h.Z)(this,"disabled",c,this),(0,h.Z)(this,"val",M,this),(0,h.Z)(this,"touched",m,this),(0,h.Z)(this,"focused",l,this),(0,h.Z)(this,"changed",d,this),this.options=void 0,this.options=e.ToDefaultOptions(t),this.val=this.options.value}return(0,p.Z)(e,[{key:"value",get:function(){return this.val}},{key:"set",value:function(e){this.val=e,this.changed=!0}},{key:"isUntouched",get:function(){return!this.touched}},{key:"isFocused",get:function(){return this.focused}},{key:"isChanged",get:function(){return this.changed}},{key:"error",get:function(){var e=this;if(this.isUntouched)return E.Wx.empty();var t=[this.options.validation].flat().reduce((function(t,n){return(0,b.J)(t)?n(e.value):t}),!0);return(0,b.J)(t)?E.Wx.empty():E.Wx.of(t.error)}},{key:"isValid",get:function(){return this.error.isEmpty()}},{key:"onFocus",value:function(){this.focused=!0}},{key:"onBlur",value:function(){this.focused=!1}},{key:"reset",value:function(){this.val=this.options.value,this.touched=!1,this.focused=!1,this.changed=!1}},{key:"touch",value:function(){this.touched=!0}},{key:"simulateInputSet",value:function(e){this.onFocus(),this.set(e),this.touch(),this.onBlur()}}],[{key:"ToDefaultOptions",value:function(t){var n;return e.IsFieldOptions(t)?{value:t.value,validation:null!==(n=t.validation)&&void 0!==n?n:v.bE}:{value:t,validation:v.bE}}},{key:"IsFieldOptions",value:function(e){return"object"===typeof e&&Object.keys(e).includes("value")}}]),e}(),c=(0,y.Z)(u.prototype,"disabled",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M=(0,y.Z)(u.prototype,"val",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,y.Z)(u.prototype,"touched",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=(0,y.Z)(u.prototype,"focused",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d=(0,y.Z)(u.prototype,"changed",[g.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,y.Z)(u.prototype,"value",[g.computed],Object.getOwnPropertyDescriptor(u.prototype,"value"),u.prototype),(0,y.Z)(u.prototype,"set",[r],Object.getOwnPropertyDescriptor(u.prototype,"set"),u.prototype),(0,y.Z)(u.prototype,"isUntouched",[g.computed],Object.getOwnPropertyDescriptor(u.prototype,"isUntouched"),u.prototype),(0,y.Z)(u.prototype,"isFocused",[g.computed],Object.getOwnPropertyDescriptor(u.prototype,"isFocused"),u.prototype),(0,y.Z)(u.prototype,"isChanged",[g.computed],Object.getOwnPropertyDescriptor(u.prototype,"isChanged"),u.prototype),(0,y.Z)(u.prototype,"error",[g.computed],Object.getOwnPropertyDescriptor(u.prototype,"error"),u.prototype),(0,y.Z)(u.prototype,"isValid",[g.computed],Object.getOwnPropertyDescriptor(u.prototype,"isValid"),u.prototype),(0,y.Z)(u.prototype,"onFocus",[i],Object.getOwnPropertyDescriptor(u.prototype,"onFocus"),u.prototype),(0,y.Z)(u.prototype,"onBlur",[o],Object.getOwnPropertyDescriptor(u.prototype,"onBlur"),u.prototype),(0,y.Z)(u.prototype,"reset",[a],Object.getOwnPropertyDescriptor(u.prototype,"reset"),u.prototype),(0,y.Z)(u.prototype,"touch",[s],Object.getOwnPropertyDescriptor(u.prototype,"touch"),u.prototype),u)},61784:function(e,t,n){"use strict";n.d(t,{l:function(){return z}});var r,i=n(33032),o=n(18489),a=n(36222),s=n(83738),u=n(27853),c=n(84531),M=n(81020),m=n(804),l=n(84322),d=n.n(l),h=n(72791),f=n(99023),p=n(81694),y=n.n(p),g=n(9528),E=n(46396),v=n(30097),b=n(40726),w=n(50678),S=n(80184),C=function(e){var t=e.className;return(0,S.jsx)("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",className:t,children:(0,S.jsx)("path",{d:"M14.9421 5.61977L14.4918 5.4024V5.4024L14.9421 5.61977ZM1.05765 5.61977L1.50793 5.4024L1.50793 5.4024L1.05765 5.61977ZM14.9421 5.38039L15.3924 5.16301L15.3924 5.16301L14.9421 5.38039ZM1.05765 5.38039L0.607377 5.16301L0.607377 5.16301L1.05765 5.38039ZM14.4918 5.4024C11.8689 10.8355 4.1308 10.8355 1.50793 5.4024L0.607378 5.83715C3.59408 12.0239 12.4057 12.0239 15.3924 5.83715L14.4918 5.4024ZM14.4918 5.59776C14.462 5.53605 14.462 5.46411 14.4918 5.4024L15.3924 5.83715C15.4952 5.62419 15.4952 5.37596 15.3924 5.16301L14.4918 5.59776ZM1.50793 5.59776C4.1308 0.164679 11.8689 0.164678 14.4918 5.59776L15.3924 5.16301C12.4057 -1.02374 3.59408 -1.02374 0.607377 5.16301L1.50793 5.59776ZM0.607377 5.16301C0.504572 5.37597 0.504572 5.6242 0.607378 5.83715L1.50793 5.4024C1.53772 5.46411 1.53772 5.53605 1.50793 5.59776L0.607377 5.16301ZM9.99987 5.50008C9.99987 6.60465 9.10444 7.50008 7.99987 7.50008V8.50008C9.65672 8.50008 10.9999 7.15693 10.9999 5.50008H9.99987ZM7.99987 7.50008C6.8953 7.50008 5.99987 6.60465 5.99987 5.50008H4.99987C4.99987 7.15693 6.34302 8.50008 7.99987 8.50008V7.50008ZM5.99987 5.50008C5.99987 4.39551 6.8953 3.50008 7.99987 3.50008V2.50008C6.34302 2.50008 4.99987 3.84322 4.99987 5.50008H5.99987ZM7.99987 3.50008C9.10444 3.50008 9.99987 4.39551 9.99987 5.50008H10.9999C10.9999 3.84322 9.65672 2.50008 7.99987 2.50008V3.50008Z",fill:"currentColor"})})},A=function(e){var t=e.className;return(0,S.jsx)("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",className:t,children:(0,S.jsx)("path",{d:"M14.9421 7.6197L14.4918 7.40232V7.40232L14.9421 7.6197ZM1.05765 7.6197L1.50793 7.40232L1.50793 7.40232L1.05765 7.6197ZM14.9421 7.38031L15.3924 7.16294L15.3924 7.16293L14.9421 7.38031ZM1.05765 7.38031L0.607377 7.16293L0.607377 7.16294L1.05765 7.38031ZM10.9999 7.5C10.9999 7.22386 10.776 7 10.4999 7C10.2237 7 9.99987 7.22386 9.99987 7.5H10.9999ZM7.99987 9.5C7.72373 9.5 7.49987 9.72386 7.49987 10C7.49987 10.2761 7.72373 10.5 7.99987 10.5V9.5ZM1.14632 13.1464C0.951062 13.3417 0.951062 13.6583 1.14632 13.8536C1.34159 14.0488 1.65817 14.0488 1.85343 13.8536L1.14632 13.1464ZM14.8534 0.853553C15.0487 0.658291 15.0487 0.341709 14.8534 0.146447C14.6582 -0.0488155 14.3416 -0.0488155 14.1463 0.146447L14.8534 0.853553ZM11.0879 4.20226C11.3382 4.31901 11.6357 4.21079 11.7524 3.96055C11.8692 3.7103 11.761 3.41279 11.5107 3.29603L11.0879 4.20226ZM13.3114 4.45031C13.1009 4.2715 12.7854 4.29713 12.6066 4.50756C12.4278 4.71799 12.4534 5.03353 12.6638 5.21234L13.3114 4.45031ZM3.78294 11.331C4.0204 11.4719 4.32716 11.3937 4.46811 11.1562C4.60906 10.9187 4.53082 10.612 4.29335 10.471L3.78294 11.331ZM6.12685 11.2361C5.85976 11.166 5.58639 11.3257 5.51627 11.5928C5.44614 11.8599 5.60582 12.1332 5.87291 12.2033L6.12685 11.2361ZM5.5293 9.20225C5.68614 9.42953 5.99753 9.48663 6.22481 9.32978C6.45209 9.17294 6.50918 8.86155 6.35234 8.63427L5.5293 9.20225ZM9.09968 5.82922C9.33016 5.98132 9.6403 5.91778 9.7924 5.6873C9.9445 5.45682 9.88096 5.14668 9.65048 4.99458L9.09968 5.82922ZM14.4918 7.59768C14.462 7.53597 14.462 7.46404 14.4918 7.40232L15.3924 7.83707C15.4952 7.62411 15.4952 7.37589 15.3924 7.16294L14.4918 7.59768ZM0.607377 7.16294C0.504572 7.37589 0.504572 7.62412 0.607378 7.83707L1.50793 7.40232C1.53772 7.46403 1.53772 7.53597 1.50793 7.59768L0.607377 7.16294ZM9.99987 7.5C9.99987 8.60457 9.10444 9.5 7.99987 9.5V10.5C9.65672 10.5 10.9999 9.15686 10.9999 7.5H9.99987ZM5.99987 7.5C5.99987 6.39543 6.8953 5.5 7.99987 5.5V4.5C6.34302 4.5 4.99987 5.84315 4.99987 7.5H5.99987ZM1.85343 13.8536L14.8534 0.853553L14.1463 0.146447L1.14632 13.1464L1.85343 13.8536ZM1.50793 7.59768C3.35244 3.77692 7.73141 2.63626 11.0879 4.20226L11.5107 3.29603C7.70772 1.52172 2.71273 2.80184 0.607377 7.16293L1.50793 7.59768ZM12.6638 5.21234C13.3942 5.83295 14.0231 6.62685 14.4918 7.59768L15.3924 7.16293C14.8632 6.06675 14.1481 5.16133 13.3114 4.45031L12.6638 5.21234ZM4.29335 10.471C3.15305 9.79421 2.17002 8.7738 1.50793 7.40232L0.607378 7.83707C1.35622 9.38825 2.47624 10.5554 3.78294 11.331L4.29335 10.471ZM14.4918 7.40232C12.8631 10.7762 9.26241 12.0594 6.12685 11.2361L5.87291 12.2033C9.42276 13.1354 13.5347 11.6852 15.3924 7.83707L14.4918 7.40232ZM6.35234 8.63427C6.13001 8.31211 5.99987 7.92201 5.99987 7.5H4.99987C4.99987 8.13132 5.19543 8.71846 5.5293 9.20225L6.35234 8.63427ZM7.99987 5.5C8.40703 5.5 8.78437 5.62114 9.09968 5.82922L9.65048 4.99458C9.17675 4.68196 8.6088 4.5 7.99987 4.5V5.5Z",fill:"currentColor"})})},_="style_visibilityIcon__ky7wA",H="style_toggleButton__iItyy",k=function(e){var t=(0,h.useState)(!0),n=(0,w.Z)(t,2),r=n[0],i=n[1],a=(0,h.useCallback)((function(){i((function(e){return!e}))}),[i]);return(0,S.jsx)(b.I,(0,o.Z)((0,o.Z)({},e),{},{rightIcon:r?(0,S.jsx)("button",{type:"button",className:H,onClick:a,"aria-label":"Show password",children:(0,S.jsx)(C,{className:_})}):(0,S.jsx)("button",{type:"button",className:H,onClick:a,"aria-label":"Hide password",children:(0,S.jsx)(A,{className:_})}),type:r?"password":"text"}))},P=n(10170),N=n(7560),T="style_formCheckboxWrapper__cIsKr",R="style_errorMessage__7yb+L",B=["errorMessage"],D=function(e){var t=e.errorMessage,n=(0,s.Z)(e,B);return(0,S.jsxs)("div",{children:[(0,S.jsx)(N.X,(0,o.Z)((0,o.Z)({},n),{},{className:y()(n.className,T)})),(0,S.jsx)("div",{className:R,children:t})]})},F=(0,c.Z)((function e(t){var n=this;(0,u.Z)(this,e),this.field=t,this.Input=(0,f.observer)((function(e){var t=h.useCallback((function(e){n.field.set(e),n.field.touch()}),[n.field]);return(0,S.jsx)(b.I,(0,o.Z)((0,o.Z)({},e),{},{error:n.field.error.getOrElse(""),value:n.field.value,handleChange:t,onFocus:n.field.onFocus,onBlur:n.field.onBlur,disabled:n.field.disabled}))})),this.Email=function(e){return(0,S.jsx)(n.Input,(0,o.Z)((0,o.Z)({},e),{},{type:"email"}))},this.Password=(0,f.observer)((function(e){return(0,S.jsx)(k,(0,o.Z)((0,o.Z)({},e),{},{error:n.field.error.getOrElse(""),value:n.field.value,handleChange:n.field.set,onFocus:n.field.onFocus,onBlur:n.field.onBlur,disabled:n.field.disabled}))})),this.TextArea=(0,f.observer)((function(e){return(0,S.jsx)(P.K,(0,o.Z)((0,o.Z)({},e),{},{error:n.field.error.getOrElse(""),value:n.field.value,handleChange:n.field.set,onFocus:n.field.onFocus,onBlur:n.field.onBlur,disabled:n.field.disabled}))})),this.Checkbox=(0,f.observer)((function(e){return(0,S.jsx)(D,(0,o.Z)((0,o.Z)({},e),{},{checked:n.field.value,onChange:n.field.set,errorMessage:n.field.error.getOrElse(""),disabled:n.field.disabled}))}))})),I=n(25731),x=["submit","error"],O=function(e){(0,M.Z)(n,e);var t=(0,m.Z)(n);function n(){return(0,u.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"render",value:function(){var e=this.props.fields,t=e.submit,n=e.error,r=(0,s.Z)(e,x);return(0,S.jsxs)("div",{children:[(0,S.jsx)(n.Notice,{}),Object.entries(r).map((function(e){var t=(0,w.Z)(e,2),n=t[0],r=t[1];return(0,S.jsx)(r.Input,{},n)})),(0,S.jsx)(t.Button,{})]})}}]),n}(h.PureComponent),L=n(1143),j=["hidden"],z=(0,f.observer)(r=function(e){(0,M.Z)(n,e);var t=(0,m.Z)(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,c=new Array(r),M=0;M0&&void 0!==arguments[0]?arguments[0]:{};(0,y.Z)(this,e),this.options=n,(0,p.Z)(this,"error",a,this),this.currentValue=void 0,(0,p.Z)(this,"erroredValue",s,this),this.validator=function(e){return t.currentValue=e,!(!t.options.removeErrorOnChange||e===t.erroredValue)||t.error.map((function(e){return{error:e}})).getOrElse(!0)}}return(0,g.Z)(e,[{key:"set",value:function(e){this.error=S.Wx.of(e),this.erroredValue=this.currentValue}},{key:"clear",value:function(){this.error.nonEmpty()&&(this.error=S.Wx.empty(),this.erroredValue=void 0)}}]),e}(),a=(0,E.Z)(o.prototype,"error",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return S.Wx.empty()}}),s=(0,E.Z)(o.prototype,"erroredValue",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,E.Z)(o.prototype,"set",[r],Object.getOwnPropertyDescriptor(o.prototype,"set"),o.prototype),(0,E.Z)(o.prototype,"clear",[i],Object.getOwnPropertyDescriptor(o.prototype,"clear"),o.prototype),o),N=(u=w.action.bound,c=w.action.bound,M=function(){function e(t){var n=this;(0,y.Z)(this,e),this.options=t,this.fields=void 0,this.fieldsArray=void 0,this.fieldsErrors=void 0,this.logger=(0,H.jl)("form"),(0,p.Z)(this,"error",m,this),(0,p.Z)(this,"submitting",l,this),this.disable=function(){n.fieldsArray.forEach((function(e){return e.disabled=!0}))},this.enable=function(){n.fieldsArray.forEach((function(e){return e.disabled=!1}))},this.fieldsErrors=(0,_.v)(this.options.fields,(function(){return new P({removeErrorOnChange:!0})})),this.fields=(0,_.v)(this.options.fields,(function(e,t){var r=k.X.ToDefaultOptions(t);return r.validation=[n.fieldsErrors[e].validator].concat((0,f.Z)([r.validation].flat())),new k.X(r)})),this.fieldsArray=Object.entries(this.fields).map((function(e){var t=(0,h.Z)(e,2);t[0];return t[1]}))}return(0,g.Z)(e,[{key:"isInvalid",get:function(){return this.fieldsArray.some((function(e){return!e.isValid}))||this.error.nonEmpty()}},{key:"isValid",get:function(){return!this.isInvalid}},{key:"submit",value:function(){var e=(0,d.Z)(b().mark((function e(){var t,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.invalidate(),this.error=S.Wx.empty(),!this.isInvalid){e.next=4;break}return e.abrupt("return");case 4:return t=this.getFieldValues(),e.prev=5,this.startSubmit(),e.next=9,this.options.onSubmit(t);case 9:if(e.t0=e.sent,e.t0){e.next=12;break}e.t0={};case 12:n=e.t0,Object.values(n).length>0?(this.setFieldErrors(n),this.trackError(n,"Form validation error")):this.successSubmit(),e.next=26;break;case 16:if(e.prev=16,e.t1=e.catch(5),this.trackError({},"unexpected submit error: ".concat(e.t1.message,": ").concat(e.t1.stack)),this.logger.error("Submit error",e.t1),!(e.t1.code>=400&&e.t1.code<500)){e.next=24;break}this.error=S.Wx.of("Something was wrong with your data"),e.next=26;break;case 24:throw this.error=S.Wx.of(e.t1.message),e.t1;case 26:return e.prev=26,this.finishSubmit(),e.finish(26);case 29:case"end":return e.stop()}}),e,this,[[5,16,26,29]])})));return function(){return e.apply(this,arguments)}}()},{key:"clearFields",value:function(){this.fieldsArray.forEach((function(e){return e.reset()}))}},{key:"trackError",value:function(e,t){var n=Object.entries(e).map((function(e){var t=(0,h.Z)(e,2),n=t[0],r=t[1];return{fieldName:n,errorMessage:null!==r&&void 0!==r?r:""}}));if(this.options.tracking){var r=(0,h.Z)(this.options.tracking,1)[0],i=this.options.tracking[2];(0,C.Or)(i.call(r,n,t||"",A.tq),"gnar.form.error")}}},{key:"invalidate",value:function(){this.fieldsArray.forEach((function(e){return e.touch()}))}},{key:"setFieldErrors",value:function(e){var t=this;Object.entries(e).forEach((function(e){var n=(0,h.Z)(e,2),r=n[0],i=n[1];if(i){if("error"===r&&(t.error=S.Wx.of(i)),!t.fieldsErrors.hasOwnProperty(r))return t.logger.warn("Cannot set error into missing field: ".concat(r,", error: ").concat(i));t.fieldsErrors[r].set(i)}}))}},{key:"trackSuccess",value:function(){if(this.options.tracking){var e=(0,h.Z)(this.options.tracking,2),t=e[0],n=e[1];(0,C.Or)(n.call(t,A.tq),"gnar.form.success")}}},{key:"startSubmit",value:function(){this.options.disableFieldsOnSubmit&&this.disable(),this.submitting=!0}},{key:"successSubmit",value:function(){this.trackSuccess(),this.options.clearOnSuccessSubmit&&this.clearFields(),this.options.onSuccessSubmit&&this.options.onSuccessSubmit()}},{key:"finishSubmit",value:function(){this.options.disableFieldsOnSubmit&&this.enable(),this.submitting=!1}},{key:"getFieldValues",value:function(){return(0,_.v)(this.fields,(function(e,t){return t.value}))}}]),e}(),m=(0,E.Z)(M.prototype,"error",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return S.Wx.empty()}}),l=(0,E.Z)(M.prototype,"submitting",[w.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,E.Z)(M.prototype,"isInvalid",[w.computed],Object.getOwnPropertyDescriptor(M.prototype,"isInvalid"),M.prototype),(0,E.Z)(M.prototype,"isValid",[w.computed],Object.getOwnPropertyDescriptor(M.prototype,"isValid"),M.prototype),(0,E.Z)(M.prototype,"submit",[u],Object.getOwnPropertyDescriptor(M.prototype,"submit"),M.prototype),(0,E.Z)(M.prototype,"setFieldErrors",[c],Object.getOwnPropertyDescriptor(M.prototype,"setFieldErrors"),M.prototype),M)},79769:function(e,t,n){"use strict";n.d(t,{ve:function(){return b},D:function(){return G},nQ:function(){return y},IG:function(){return m},Tw:function(){return p},IP:function(){return M},tM:function(){return l},NA:function(){return E},dY:function(){return f},am:function(){return d},Pz:function(){return I},ES:function(){return _},Ce:function(){return S},k1:function(){return T},RO:function(){return v},BF:function(){return C},x2:function(){return N},Ee:function(){return R},kI:function(){return Q},mB:function(){return g},bV:function(){return B},k8:function(){return O},Le:function(){return F},AZ:function(){return j},kU:function(){return L},P$:function(){return D},BG:function(){return x},Ne:function(){return z},n1:function(){return h},q$:function(){return w},rG:function(){return A},RB:function(){return k},xh:function(){return P}});var r=n(18489),i=(n(72791),n(81694)),o=n.n(i),a=n(50704),s="style_rotate90Deg__ptUw9",u="style_rotate180Deg__M7hn6",c=n(80184),M=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75 6.926l5.113-1.676 5.113 1.676v3.45a8.64 8.64 0 0 1-3.164 6.684l-1.949 1.597-1.95-1.597a8.64 8.64 0 0 1-3.163-6.683V6.926z",fill:"#FFC8D2"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.863 5.25v13.407l-1.95-1.597a8.64 8.64 0 0 1-3.163-6.683V6.926l5.113-1.676z",fill:"#EE445F",filter:"url(#filter0_d)"}),(0,c.jsx)("defs",{children:(0,c.jsxs)("filter",{id:"filter0_d",x:"1.75",y:".25",width:"15.113",height:"23.407",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,c.jsx)("feOffset",{}),(0,c.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,c.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),(0,c.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,c.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})},m=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12z",fill:"#B3D1FF"}),(0,c.jsx)("path",{d:"M18 12a6 6 0 1 1-11.723-1.806 4.456 4.456 0 0 1 5.315 1.103 4.265 4.265 0 0 0 6.001.46c.022-.019.17-.164.376-.367.02.2.031.404.031.61z",fill:"#548AFF",filter:"url(#filter0_d)"}),(0,c.jsx)("defs",{children:(0,c.jsxs)("filter",{id:"filter0_d",x:"1",y:"4.75",width:"22",height:"18.25",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,c.jsx)("feOffset",{}),(0,c.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,c.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"}),(0,c.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,c.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})},l=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12z",fill:"#E8C7FF"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18a4.494 4.494 0 0 0 4.488-4.5c0-2.485-2.01-4.5-4.488-4.5a4.494 4.494 0 0 0-4.487 4.5c0 2.485 2.009 4.5 4.487 4.5z",fill:"#D29CFA",filter:"url(#filter0_d)"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",fill:"#BC78ED",filter:"url(#filter1_d)"}),(0,c.jsxs)("defs",{children:[(0,c.jsxs)("filter",{id:"filter0_d",x:"2.513",y:"4",width:"18.975",height:"19",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,c.jsx)("feOffset",{}),(0,c.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,c.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.934441 0"}),(0,c.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,c.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,c.jsxs)("filter",{id:"filter1_d",x:"4",y:"7",width:"16",height:"16",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,c.jsx)("feOffset",{}),(0,c.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,c.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"}),(0,c.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,c.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})]})]})},d=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12z",fill:"#B9F9EA"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 13.5A3.75 3.75 0 1 0 12 6a3.75 3.75 0 0 0 0 7.5zm0 4.5a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5z",fill:"#0FDCAC",filter:"url(#filter0_d)"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 12a3.744 3.744 0 0 1-3 1.5A3.744 3.744 0 0 1 9 12a3.744 3.744 0 0 1 3-1.5c1.227 0 2.316.59 3 1.5z",fill:"#C0F9EC"}),(0,c.jsx)("defs",{children:(0,c.jsxs)("filter",{id:"filter0_d",x:"3.25",y:"1",width:"17.5",height:"22",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,c.jsx)("feOffset",{}),(0,c.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,c.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),(0,c.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,c.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})},h=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.537 11.537c-1.808.262-3.19-.085-4.145-1.04-.954-.954-1.3-2.336-1.04-4.145 1.81-.26 3.19.086 4.145 1.04.955.955 1.318 2.447 1.04 4.145z",fill:"url(#paint0_linear)"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.648 6.352c.26 1.81-.086 3.19-1.04 4.145-.955.955-2.337 1.302-4.145 1.04-.262-1.808.085-3.19 1.04-4.145.954-.954 2.446-1.317 4.145-1.04z",fill:"url(#paint1_linear)"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.463 12.463c1.808-.262 3.19.085 4.145 1.04.954.954 1.3 2.336 1.04 4.145-1.81.26-3.19-.086-4.145-1.04-.955-.955-1.318-2.447-1.04-4.146z",fill:"url(#paint2_linear)"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.353 17.648c-.262-1.81.085-3.19 1.04-4.145.954-.955 2.336-1.302 4.145-1.04.26 1.808-.086 3.19-1.04 4.145-.955.954-2.447 1.317-4.145 1.04z",fill:"url(#paint3_linear)"}),(0,c.jsxs)("defs",{children:[(0,c.jsxs)("linearGradient",{id:"paint0_linear",x1:"11.64",y1:"9.84",x2:"6.24",y2:"9.84",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{stopColor:"#D2E3FF"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#548AFF"})]}),(0,c.jsxs)("linearGradient",{id:"paint1_linear",x1:"12.36",y1:"8.04",x2:"17.76",y2:"8.04",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{stopColor:"#FFD0D8"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#EE445F"})]}),(0,c.jsxs)("linearGradient",{id:"paint2_linear",x1:"12.36",y1:"14.16",x2:"17.76",y2:"14.16",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{stopColor:"#ECD1FF"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#BC78ED"})]}),(0,c.jsxs)("linearGradient",{id:"paint3_linear",x1:"12",y1:"15.96",x2:"6.6",y2:"15.96",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:".196",stopColor:"#CAFAEF"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#0FDCAC"})]})]})]})},f=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsx)(a.a1,{className:t,viewBox:"0 0 24 24",width:r,children:(0,c.jsx)("path",{stroke:"none",d:"M20.5 18.9998C20.7761 18.9998 21 19.2237 21 19.4998C21 19.776 20.7761 19.9998 20.5 19.9998H3.5C3.22386 19.9998 3 19.776 3 19.4998C3 19.2237 3.22386 18.9998 3.5 18.9998H20.5ZM16.894 3.8534L18.1464 5.10586C18.7322 5.69164 18.7322 6.64139 18.1464 7.22718L8.37377 16.9998H5V13.6261L14.7727 3.8534C15.3585 3.26762 16.3082 3.26762 16.894 3.8534ZM13.666 6.37306L6 14.0403V15.9998H7.95956L15.626 8.33306L13.666 6.37306ZM15.4798 4.56051L14.373 5.66606L16.333 7.62606L17.4393 6.52007C17.6346 6.32481 17.6346 6.00822 17.4393 5.81296L16.1869 4.56051C15.9916 4.36525 15.675 4.36525 15.4798 4.56051Z"})})},p=function(e){var t=e.className,n=e.width,r=void 0===n?8:n;return(0,c.jsx)(a.a1,{className:t,viewBox:"0 0 8 8",width:r,children:(0,c.jsx)("path",{d:"M7.12501 7.125L0.875004 0.874996M7.12501 0.874996L0.875004 7.125",strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"})})},y=function(e){var t=e.className,n=e.width,r=void 0===n?10:n;return(0,c.jsx)(a.a1,{className:t,viewBox:"0 0 10 8",width:r,children:(0,c.jsx)("path",{d:"M0.5625 3.9375L3.0625 6.4375L8.6875 0.8125",strokeWidth:"0.9",strokeLinecap:"round"})})},g=function(e){var t=e.className,n=e.width,r=void 0===n?8:n;return(0,c.jsx)(a.a1,{className:t,viewBox:"0 0 8 8",width:r,children:(0,c.jsx)("path",{d:"M2.75 3.25H1.25V7.25H6.75V3.25H5.25M2.75 3.25V2C2.75 1.30964 3.30964 0.75 4 0.75V0.75C4.69036 0.75 5.25 1.30964 5.25 2V3.25M2.75 3.25H5.25",strokeLinejoin:"round"})})},E=function(e){var t=e.className,n=e.width,r=void 0===n?10:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 10 18",children:(0,c.jsx)("path",{fill:"none",d:"M0.5 5.5L5 1L9.5 5.5M0.5 12.5L5 17L9.5 12.5",stroke:"#6D758D",strokeLinecap:"round"})})},v=function(e){var t=e.className,n=e.width,r=void 0===n?22:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 22 18",children:(0,c.jsx)("path",{d:"M6.63626 1H2C1.44772 1 1 1.44772 1 2V16C1 16.5523 1.44772 17 2 17H20C20.5523 17 21 16.5523 21 16V4.46154C21 3.90925 20.5523 3.46154 20 3.46154H9.11374C8.73721 3.46154 8.3926 3.25004 8.22211 2.91432L7.52789 1.54722C7.3574 1.2115 7.01279 1 6.63626 1Z",fill:"#F0F2FC",stroke:"#6D758D"})})},b=function(e){var t=e.className,n=e.width,r=void 0===n?10:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 10 6",children:(0,c.jsx)("path",{stroke:"none",d:"M1.416.5a.65.65 0 1 0-.832 1l4 4c.24.2.591.2.832 0l4-4a.65.65 0 0 0-.832-1L5 4.155 1.416.5Z"})})},w=function(e){var t=e.className,n=e.width,r=void 0===n?16:n,i=e.color,o=void 0===i?"#15C39A":i;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 16 13",children:(0,c.jsx)("path",{fill:o,transform:"translate(-8 -9)",fillRule:"evenodd",strokeWidth:0,d:"M21.781 16H8.5a.487.487 0 0 1-.36-.14.487.487 0 0 1-.14-.36c0-.146.047-.266.14-.36A.487.487 0 0 1 8.5 15h13.281l-4.625-4.656A.416.416 0 0 1 17 10c0-.146.052-.26.156-.344A.416.416 0 0 1 17.5 9.5c.146 0 .26.052.344.156l5.5 5.5a.416.416 0 0 1 .156.344c0 .146-.052.26-.156.344l-5.469 5.5a.494.494 0 0 1-.719 0A.416.416 0 0 1 17 21c0-.146.052-.26.156-.344L21.781 16Z"})})},S=function(e){var t=e.className,n=e.width,r=void 0===n?15:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 15 16",children:(0,c.jsx)("path",{stroke:"none",d:"M15 8v8H0V8h15Zm-1 1H1v6h13V9ZM9 0l4 4v3h-1V5H8V1H3v6H2V0h7Zm0 1.415V4h2.586L9 1.415ZM5.89 14.037l-1.25-2.038 1.234-1.975H5.08l-.872 1.403-.9-1.403h-.798l1.251 1.97L2.5 14.036h.787l.9-1.46.9 1.46h.804Zm3.192 0v-.69H7.22v-3.323h-.73v4.013h2.592Zm3.418-1.195c0-.684-.504-1.075-1.104-1.16-.26-.034-.617-.062-.871-.102-.238-.04-.408-.175-.408-.436 0-.147.05-.249.136-.34.164-.17.424-.22.65-.22.216 0 .482.08.612.215.096.102.17.255.176.396h.747c-.006-.334-.17-.628-.408-.854-.272-.255-.69-.391-1.12-.391-.47 0-.912.164-1.178.425-.21.209-.35.475-.35.792 0 .668.463 1.03 1.018 1.12.266.046.617.057.889.108.249.046.475.181.475.476a.498.498 0 0 1-.158.385c-.153.158-.42.215-.697.215-.232 0-.503-.046-.673-.215a.705.705 0 0 1-.21-.493H9.28c0 .38.181.72.42.934.327.3.775.413 1.2.413.492 0 .961-.124 1.267-.43a1.13 1.13 0 0 0 .334-.838Z"})})},C=function(e){var t=e.className,n=e.width,r=void 0===n?22:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 22 20",children:[(0,c.jsx)("path",{d:"M4.871 15a.5.5 0 0 0 0-1v1ZM1 14a.5.5 0 0 0 0 1v-1Zm10.704-2.241a.5.5 0 1 0 .41-.913l-.41.913Zm-1.017-1.005.204-.456-.204.456Zm-.651-.316.26-.426-.26.426ZM8.763 8.473l-.496.063.496-.063Zm-4.74 2.37-.225-.447.226.446Zm.78-.431.292.406-.292-.406Zm1.09-1.772.495.077-.494-.077Zm-2.99 2.768-.225-.447.225.447Zm-.78.43-.291-.406.292.406ZM4.872 14H1v1h3.871v-1Zm-1.743-2.146 1.121-.565-.45-.893-1.121.565.45.893Zm8.986-1.008-1.223-.548-.409.912 1.222.549.41-.913ZM5.019 5.263v-1.42h-1v1.42h1Zm4.63-1.42v1.42h1v-1.42h-1Zm0 1.42c0 1.298-1.04 2.342-2.315 2.342v1c1.836 0 3.316-1.5 3.316-3.342h-1ZM7.335 1.5C8.61 1.5 9.65 2.544 9.65 3.842h1C10.65 2.001 9.17.5 7.334.5v1ZM5.02 3.842C5.02 2.544 6.06 1.5 7.334 1.5v-1C5.5.5 4.02 2 4.02 3.842h1Zm-1 1.421c0 1.841 1.48 3.342 3.315 3.342v-1c-1.274 0-2.315-1.044-2.315-2.342h-1Zm6.872 5.035c-.349-.157-.483-.218-.595-.286l-.52.853c.178.11.381.2.706.345l.41-.912ZM8.241 7.75c0 .356 0 .578.026.786l.992-.126c-.016-.13-.017-.277-.017-.66h-1Zm2.055 2.262A2.2 2.2 0 0 1 9.259 8.41l-.992.126a3.2 3.2 0 0 0 1.508 2.33l.521-.854Zm-6.047 1.277c.39-.198.635-.32.846-.471l-.584-.812c-.132.095-.292.178-.713.39l.451.893ZM5.427 7.75c0 .47-.002.651-.027.812l.988.155c.04-.256.039-.53.039-.967h-1Zm-.332 3.068a3.2 3.2 0 0 0 1.293-2.1L5.4 8.561a2.2 2.2 0 0 1-.889 1.444l.584.812ZM1.5 14.5c0-.47.001-.651.027-.812l-.988-.155c-.04.256-.039.53-.039.967h1Zm1.178-3.539c-.39.198-.636.32-.846.471l.583.812c.133-.095.293-.178.713-.39l-.45-.893Zm-1.151 2.727a2.2 2.2 0 0 1 .888-1.444l-.583-.812a3.2 3.2 0 0 0-1.293 2.1l.988.156Z",stroke:"none"}),(0,c.jsx)("path",{d:"M17.129 19.5a.5.5 0 0 1 0-1v1Zm3.871-1a.5.5 0 0 1 0 1v-1Zm-3.024-3.158-.225.447.225-.447Zm-.78-.43.293-.406-.292.406Zm-1.09-1.772-.494.077.494-.077Zm4.861 4.97.494-.077-.494.077Zm-1.09-1.772.291-.406-.291.406ZM17.128 18.5H21v1h-3.871v-1Zm1.743-2.146-1.121-.565.45-.893 1.121.565-.45.893Zm-1.891-6.59V8.341h1v1.421h-1Zm-4.63-1.422v1.421h-1v-1.42h1Zm0 1.421c0 1.298 1.04 2.342 2.315 2.342v1c-1.836 0-3.316-1.5-3.316-3.342h1ZM14.665 6c-1.274 0-2.316 1.044-2.316 2.342h-1C11.35 6.501 12.83 5 14.666 5v1Zm2.315 2.342C16.98 7.044 15.94 6 14.666 6V5C16.5 5 17.98 6.5 17.98 8.342h-1Zm1 1.421c0 1.841-1.48 3.342-3.315 3.342v-1c1.274 0 2.315-1.044 2.315-2.342h1Zm-.23 6.026c-.39-.198-.635-.32-.846-.471l.584-.812c.132.095.292.178.712.39l-.45.893Zm-1.178-3.539c0 .47.002.651.027.812l-.988.155c-.04-.256-.039-.53-.039-.967h1Zm.332 3.068a3.2 3.2 0 0 1-1.293-2.1l.988-.156a2.2 2.2 0 0 0 .889 1.444l-.584.812ZM20.5 19c0-.47-.001-.651-.027-.812l.988-.155c.04.256.039.53.039.967h-1Zm-1.178-3.539c.39.198.636.32.846.471l-.584.812c-.131-.095-.292-.178-.712-.39l.45-.893Zm1.151 2.727a2.2 2.2 0 0 0-.889-1.444l.584-.812a3.2 3.2 0 0 1 1.293 2.1l-.988.156Z",stroke:"none"}),(0,c.jsx)("path",{d:"M17.598 19.5a.5.5 0 0 0 0-1v1Zm-9.325-1a.5.5 0 0 0 0 1v-1Zm3.024-3.158.225.447-.225-.447Zm.779-.43-.292-.406.292.406Zm1.09-1.772.495.077-.494-.077Zm-4.86 4.97-.494-.077.494.077Zm1.09-1.772-.292-.406.292.406Zm8.202 2.162H8.273v1h9.325v-1Zm-7.197-2.146 1.12-.565-.45-.893-1.12.565.45.893Zm1.89-6.59V8.341h-1v1.421h1Zm4.631-1.422v1.421h1v-1.42h-1Zm0 1.421c0 1.298-1.04 2.342-2.315 2.342v1c1.835 0 3.315-1.5 3.315-3.342h-1ZM14.607 6c1.274 0 2.315 1.044 2.315 2.342h1c0-1.841-1.48-3.342-3.315-3.342v1Zm-2.315 2.342c0-1.298 1.04-2.342 2.315-2.342V5c-1.835 0-3.315 1.5-3.315 3.342h1Zm-1 1.421c0 1.841 1.48 3.342 3.315 3.342v-1c-1.274 0-2.315-1.044-2.315-2.342h-1Zm.23 6.026c.39-.198.635-.32.846-.471l-.584-.812c-.132.095-.293.178-.713.39l.45.893ZM12.7 12.25c0 .47-.002.651-.027.812l.988.155c.04-.256.039-.53.039-.967h-1Zm-.332 3.068a3.2 3.2 0 0 0 1.293-2.1l-.988-.156a2.2 2.2 0 0 1-.889 1.444l.584.812ZM8.773 19c0-.47.001-.651.027-.812l-.988-.155c-.04.256-.04.53-.04.967h1Zm1.177-3.539c-.39.198-.635.32-.846.471l.584.812c.132-.095.293-.178.713-.39l-.45-.893ZM8.8 18.188a2.2 2.2 0 0 1 .888-1.444l-.584-.812a3.2 3.2 0 0 0-1.292 2.1l.987.156Z",stroke:"none"})]})},A=function(e){var t=e.className,n=e.width,r=void 0===n?19:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 19 21",children:(0,c.jsx)("path",{d:"M0.5 16.5V18.5C0.5 19.6046 1.39543 20.5 2.5 20.5H16.5C17.6046 20.5 18.5 19.6046 18.5 18.5V16.5M5 6L9.5 1.5M9.5 1.5L14 6M9.5 1.5V15.5",strokeLinecap:"round",fill:"none"})})},_=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",stroke:"none",d:"M17 11H18V9V8L14 4H13H7V11H8V5H13V9H17V11ZM16.5858 8L14 5.41421V8H16.5858ZM5 12H20V20H5V12ZM19 19H6V13H19V19Z"}),(0,c.jsx)("path",{stroke:"none",d:"M10.7363 15.6367C10.6351 14.7969 9.99946 14.3139 9.15784 14.3139C8.19726 14.3139 7.46395 14.9922 7.46395 16.1818C7.46395 17.3679 8.18483 18.0497 9.15784 18.0497C10.09 18.0497 10.6529 17.43 10.7363 16.7607L9.95862 16.7571C9.88582 17.146 9.58042 17.3697 9.17027 17.3697C8.61807 17.3697 8.24342 16.9595 8.24342 16.1818C8.24342 15.4254 8.61274 14.994 9.17559 14.994C9.5964 14.994 9.90003 15.2372 9.95862 15.6367H10.7363ZM13.1603 15.4094H13.8972C13.8865 14.7614 13.3538 14.3139 12.5442 14.3139C11.7469 14.3139 11.1628 14.7543 11.1663 15.4148C11.1646 15.951 11.5427 16.2582 12.1571 16.4055L12.553 16.505C12.949 16.6009 13.1692 16.7145 13.1709 16.9595C13.1692 17.2259 12.917 17.407 12.5264 17.407C12.1269 17.407 11.8393 17.2223 11.8144 16.8583H11.0704C11.09 17.6449 11.6528 18.0515 12.5353 18.0515C13.4231 18.0515 13.9451 17.6271 13.9469 16.9613C13.9451 16.3558 13.4888 16.0344 12.8567 15.8924L12.53 15.8143C12.2139 15.7415 11.9494 15.6243 11.9547 15.3633C11.9547 15.1289 12.1624 14.9567 12.5388 14.9567C12.9064 14.9567 13.1319 15.1236 13.1603 15.4094ZM15.021 14.3636H14.1669L15.4222 18H16.413L17.6666 14.3636H16.8143L15.9336 17.1264H15.8999L15.021 14.3636Z"})]})},H=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 16 12",children:[(0,c.jsx)("path",{d:"M14 6L1 6",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M10 1L15 6L10 11",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})},k=function(e){return(0,c.jsx)(H,(0,r.Z)((0,r.Z)({},e),{},{className:o()(e.className,s)}))},P=function(e){return(0,c.jsx)(H,(0,r.Z)((0,r.Z)({},e),{},{className:o()(e.className,u)}))},N=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:(0,c.jsx)("path",{stroke:"none",d:"M19.958 10.333a.75.75 0 0 0-1.344-.666l1.344.666ZM5.386 9.667a.75.75 0 1 0-1.344.666l1.344-.666Zm7.364 6.81a.75.75 0 0 0-1.5 0h1.5Zm-1.5 1.618a.75.75 0 0 0 1.5 0h-1.5Zm8.566-5.387a.75.75 0 1 0-1.06 1.06l1.06-1.06Zm.154 2.275a.75.75 0 1 0 1.06-1.06l-1.06 1.06ZM5.245 13.768a.75.75 0 1 0-1.061-1.06l1.06 1.06Zm-2.275.154a.75.75 0 1 0 1.06 1.06l-1.06-1.06Zm13.748 1.41a.75.75 0 1 0-1.341.67l1.341-.67Zm-.532 2.29a.75.75 0 0 0 1.342-.672l-1.342.671Zm-7.563-1.62a.75.75 0 0 0-1.341-.67l1.341.67Zm-2.151.948a.75.75 0 1 0 1.342.671l-1.342-.67Zm12.142-7.283c-2.657 5.353-10.572 5.353-13.228 0l-1.344.666c3.208 6.465 12.708 6.465 15.916 0l-1.344-.666Zm-7.364 6.81v1.618h1.5v-1.619h-1.5Zm7.505-2.709 1.215 1.215 1.06-1.06-1.214-1.215-1.06 1.06Zm-14.571-1.06L2.97 13.922l1.06 1.06 1.215-1.214-1.061-1.06Zm11.193 3.294.81 1.62 1.341-.672-.81-1.619-1.341.671Zm-8.095-.67-.81 1.618 1.342.671.81-1.619-1.342-.67Z"})})},T=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M5 6.5H8M8 6.5V5M8 6.5V8M11 6.5H19M5 16.5H12M12 16.5V15M12 16.5V18M15 16.5H19M19 11.5H15M15 11.5V10M15 11.5V13M12 11.5H5",strokeWidth:"1.25",strokeLinecap:"round",fill:"none"})})},R=function(e){var t=e.className;return(0,c.jsxs)(a.a1,{className:t,viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",children:[(0,c.jsx)("path",{d:"M19 6.25001L4.99999 6.25009C4.44771 6.25009 4 6.69781 4 7.25009V16.7577C4 17.31 4.44772 17.7577 5 17.7577H19C19.5523 17.7577 20 17.31 20 16.7577V7.25001C20 6.69772 19.5523 6.25 19 6.25001Z",stroke:"#6D758D"}),(0,c.jsx)("path",{d:"M20 13.7501L15.5 9.25008L10.5 14.2501L8.675 12.6578L4 16.9078",stroke:"#6D758D",strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M7.8248 8.40776C8.52897 8.40776 9.0998 8.9786 9.0998 9.68276C9.0998 10.3869 8.52897 10.9578 7.8248 10.9578C7.12064 10.9578 6.5498 10.3869 6.5498 9.68276C6.5498 8.9786 7.12064 8.40776 7.8248 8.40776Z",fill:"#6D758D"})]})},B=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsx)(a.a1,{viewBox:"0 0 24 24",className:t,width:r,children:(0,c.jsx)("path",{stroke:"none",transform:"translate(4 6)",d:"M0 1.002A1 1 0 0 1 1 0h15c.552 0 1 .456 1 1.002v10.996A1 1 0 0 1 16 13H1c-.552 0-1-.456-1-1.002V1.002zm1 10.996C1 11.996 16 12 16 12V1.002C16 1.004 1 1 1 1v10.998zM14.558 1.862a.5.5 0 1 1 .484.876L8.74 6.44a.488.488 0 0 1-.48 0L2.055 2.736a.5.5 0 1 1 .49-.872L8.5 5.43l6.058-3.568z",id:"a"})})},D=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return(0,c.jsx)(a.a1,{viewBox:"0 0 32 32",className:t,width:r,children:(0,c.jsx)("g",{transform:"matrix(1.2 0 0 1.2 0 0), translate(-1, -3)",children:(0,c.jsx)("path",{fill:"none",d:"M16 9.5V16.6077M19 11.3304C20.7934 12.3838 22 14.3527 22 16.6077C22 19.9724 19.3137 22.7 16 22.7C12.6863 22.7 10 19.9724 10 16.6077C10 14.3527 11.2066 12.3838 13 11.3304",strokeLinecap:"round"})})})},F=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",fill:"#15C39A",stroke:"none"}),(0,c.jsx)("path",{d:"M9.03033 12.4697C8.73744 12.1768 8.26256 12.1768 7.96967 12.4697C7.67678 12.7626 7.67678 13.2374 7.96967 13.5303L9.03033 12.4697ZM11 15.5L10.4697 16.0303L11 16.5607L11.5303 16.0303L11 15.5ZM17.0303 10.5303C17.3232 10.2374 17.3232 9.76256 17.0303 9.46967C16.7374 9.17678 16.2626 9.17678 15.9697 9.46967L17.0303 10.5303ZM7.96967 13.5303L10.4697 16.0303L11.5303 14.9697L9.03033 12.4697L7.96967 13.5303ZM11.5303 16.0303L17.0303 10.5303L15.9697 9.46967L10.4697 14.9697L11.5303 16.0303Z",fill:"white",stroke:"none"})]})},I=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsxs)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",fill:"#EA1537",stroke:"none"}),(0,c.jsx)("path",{d:"M9 9L15 15M15 9L9 15",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"})]})},x=function(e){var t=e.className,n=e.width,r=void 0===n?13:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 13 13",children:(0,c.jsx)("path",{d:"M4.5 1.39286C2.43249 2.18362 1 4.15449 1 6.5C1 8.84551 2.46821 10.8481 4.53571 11.6389M8.46429 1.39286C10.5318 2.18362 12 4.15449 12 6.5C12 8.84551 10.562 10.8481 8.49453 11.6389M1.5 1H4.5V4M11.5 12H8.5V9",stroke:"#6D758D",fill:"none"})})},O=function(e){var t=e.className,n=e.width,r=void 0===n?66:n;return(0,c.jsxs)(a.a1,{viewBox:"0 0 66 34",height:"34",className:t,width:r,children:[(0,c.jsxs)("g",{filter:"url(#filter0_d_7_24518)",children:[(0,c.jsx)("rect",{x:"10.828",y:"8.333",width:"45.724",height:"21.033",rx:"10.517",fill:"url(#paint0_linear_7_24518)"}),(0,c.jsx)("path",{d:"M26.511 14.522h-1.407v5.324h-.069l-3.677-5.324h-1.266v7.811h1.415v-5.32h.065l3.68 5.32h1.26v-7.811zm3.26 7.811h5.112v-1.186h-3.696v-2.132h3.402v-1.186h-3.402v-2.121h3.665v-1.186h-5.08v7.811zm9.887 0h1.396l1.568-5.48h.061l1.564 5.48h1.396l2.204-7.811h-1.521l-1.408 5.744h-.069l-1.506-5.744h-1.385l-1.502 5.74h-.073l-1.407-5.74h-1.522l2.204 7.811z",fill:"#0E101A"})]}),(0,c.jsx)("path",{d:"M62.63 10.667l.81 2.19 2.19.81-2.19.81-.81 2.19-.81-2.19-2.19-.81 2.19-.81.81-2.19zM57.967 0l1.35 3.65L62.968 5l-3.65 1.35-1.35 3.65-1.35-3.65L52.967 5l3.65-1.35L57.967 0zM4.704 20.333l1.08 2.92 2.92 1.08-2.92 1.08-1.08 2.92-1.08-2.92-2.92-1.08 2.92-1.08 1.08-2.92z",fill:"#fff"}),(0,c.jsxs)("defs",{children:[(0,c.jsxs)("filter",{id:"filter0_d_7_24518",x:"7.17",y:"8.333",width:"49.382",height:"24.691",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.jsx)("feMorphology",{radius:"9.145",in:"SourceAlpha",result:"effect1_dropShadow_7_24518"}),(0,c.jsx)("feOffset",{dx:"-3.658",dy:"3.658"}),(0,c.jsx)("feGaussianBlur",{stdDeviation:"4.572"}),(0,c.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,c.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_7_24518"}),(0,c.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_7_24518",result:"shape"})]}),(0,c.jsxs)("linearGradient",{id:"paint0_linear_7_24518",x1:"10.828",y1:"18.85",x2:"56.552",y2:"18.85",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{stopColor:"#FBEFB7"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#F9C7C7"})]})]})]})},L=function(e){var t=e.className;return(0,c.jsxs)(a.a1,{className:t,width:"60",height:"16",viewBox:"0 0 60 16",children:[(0,c.jsx)("rect",{width:"60",height:"16",rx:"2",fill:"#EDF5FF",stroke:"none"}),(0,c.jsx)("path",{d:"M12.1548 8.09091C12.1548 6.1875 10.973 5.10227 9.43034 5.10227C7.87921 5.10227 6.70591 6.1875 6.70591 8.09091C6.70591 9.9858 7.87921 11.0795 9.43034 11.0795C10.973 11.0795 12.1548 9.99432 12.1548 8.09091ZM10.9076 8.09091C10.9076 9.32386 10.3224 9.99148 9.43034 9.99148C8.53546 9.99148 7.95307 9.32386 7.95307 8.09091C7.95307 6.85795 8.53546 6.19034 9.43034 6.19034C10.3224 6.19034 10.9076 6.85795 10.9076 8.09091ZM18.4325 5.18182H17.208V8.84091H17.1569L14.6455 5.18182H13.566V11H14.7961V7.33807H14.8387L17.37 11H18.4325V5.18182ZM22.6448 7.6108H19.9914V8.57102H22.6448V7.6108ZM24.1988 11H26.6846C27.9914 11 28.6874 10.3182 28.6874 9.39205C28.6874 8.53125 28.071 8.01136 27.409 7.98011V7.9233C28.0142 7.78693 28.4602 7.35795 28.4602 6.6733C28.4602 5.80114 27.8124 5.18182 26.5284 5.18182H24.1988V11ZM25.4289 9.99432V8.44886H26.4602C27.0511 8.44886 27.4176 8.78977 27.4176 9.26989C27.4176 9.70739 27.1193 9.99432 26.4318 9.99432H25.4289ZM25.4289 7.61648V6.17614H26.3636C26.909 6.17614 27.2187 6.45739 27.2187 6.87784C27.2187 7.33807 26.8437 7.61648 26.3409 7.61648H25.4289ZM29.9879 11H31.218V8.9375H32.1157L33.218 11H34.5759L33.3401 8.73864C34.0021 8.45455 34.3686 7.87784 34.3686 7.08239C34.3686 5.92614 33.6044 5.18182 32.2833 5.18182H29.9879V11ZM31.218 7.94886V6.1875H32.0475C32.7578 6.1875 33.1015 6.50284 33.1015 7.08239C33.1015 7.65909 32.7578 7.94886 32.0532 7.94886H31.218ZM36.7407 11L37.1725 9.6733H39.272L39.7038 11H41.022L39.0163 5.18182H37.4311L35.4225 11H36.7407ZM37.485 8.71307L38.2009 6.51136H38.2464L38.9623 8.71307H37.485ZM47.0887 5.18182H45.8643V8.84091H45.8132L43.3018 5.18182H42.2222V11H43.4524V7.33807H43.495L46.0262 11H47.0887V5.18182ZM50.6676 11C52.4403 11 53.5142 9.90341 53.5142 8.08523C53.5142 6.27273 52.4403 5.18182 50.6846 5.18182H48.6051V11H50.6676ZM49.8352 9.94602V6.2358H50.6193C51.7102 6.2358 52.2869 6.79261 52.2869 8.08523C52.2869 9.38352 51.7102 9.94602 50.6164 9.94602H49.8352Z",fill:"#4A6EE0",stroke:"none"})]})},j=function(e){var t=e.className;return(0,c.jsxs)(a.a1,{className:t,width:"60",height:"16",viewBox:"0 0 60 16",children:[(0,c.jsx)("rect",{width:"60",height:"16",rx:"2",fill:"#FDF0F3",stroke:"none"}),(0,c.jsx)("path",{d:"M9.5554 8.09091C9.5554 6.1875 8.37358 5.10227 6.83097 5.10227C5.27983 5.10227 4.10653 6.1875 4.10653 8.09091C4.10653 9.9858 5.27983 11.0795 6.83097 11.0795C8.37358 11.0795 9.5554 9.99432 9.5554 8.09091ZM8.30824 8.09091C8.30824 9.32386 7.72301 9.99148 6.83097 9.99148C5.93608 9.99148 5.35369 9.32386 5.35369 8.09091C5.35369 6.85795 5.93608 6.19034 6.83097 6.19034C7.72301 6.19034 8.30824 6.85795 8.30824 8.09091ZM10.9666 11H12.1967V8.59659H14.5632V7.58239H12.1967V6.19602H14.8189V5.18182H10.9666V11ZM16.1463 11H17.3764V8.59659H19.7429V7.58239H17.3764V6.19602H19.9986V5.18182H16.1463V11ZM24.022 7.6108H21.3686V8.57102H24.022V7.6108ZM25.576 11H28.0618C29.3686 11 30.0646 10.3182 30.0646 9.39205C30.0646 8.53125 29.4482 8.01136 28.7862 7.98011V7.9233C29.3913 7.78693 29.8374 7.35795 29.8374 6.6733C29.8374 5.80114 29.1896 5.18182 27.9055 5.18182H25.576V11ZM26.8061 9.99432V8.44886H27.8374C28.4283 8.44886 28.7947 8.78977 28.7947 9.26989C28.7947 9.70739 28.4964 9.99432 27.8089 9.99432H26.8061ZM26.8061 7.61648V6.17614H27.7408C28.2862 6.17614 28.5959 6.45739 28.5959 6.87784C28.5959 7.33807 28.2209 7.61648 27.718 7.61648H26.8061ZM31.3651 11H32.5952V8.9375H33.4929L34.5952 11H35.9531L34.7173 8.73864C35.3793 8.45455 35.7457 7.87784 35.7457 7.08239C35.7457 5.92614 34.9815 5.18182 33.6605 5.18182H31.3651V11ZM32.5952 7.94886V6.1875H33.4247C34.1349 6.1875 34.4787 6.50284 34.4787 7.08239C34.4787 7.65909 34.1349 7.94886 33.4304 7.94886H32.5952ZM38.1179 11L38.5497 9.6733H40.6491L41.081 11H42.3991L40.3935 5.18182H38.8082L36.7997 11H38.1179ZM38.8622 8.71307L39.5781 6.51136H39.6236L40.3395 8.71307H38.8622ZM48.4659 5.18182H47.2415V8.84091H47.1903L44.679 5.18182H43.5994V11H44.8295V7.33807H44.8722L47.4034 11H48.4659V5.18182ZM52.0447 11C53.8175 11 54.8913 9.90341 54.8913 8.08523C54.8913 6.27273 53.8175 5.18182 52.0618 5.18182H49.9822V11H52.0447ZM51.2124 9.94602V6.2358H51.9964C53.0874 6.2358 53.6641 6.79261 53.6641 8.08523C53.6641 9.38352 53.0874 9.94602 51.9936 9.94602H51.2124Z",fill:"#CE1331",stroke:"none"})]})},z=function(e){var t=e.className,n=e.width,r=void 0===n?14:n,i=e.color,o=void 0===i?"#4A6EE0":i;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 14 12",children:(0,c.jsx)("path",{d:"M4.47 9.72l8.6-9.56a.4.4 0 0 1 .32-.16c.14 0 .26.04.36.13.1.1.16.22.17.35a.5.5 0 0 1-.1.36L4.5 11.16.16 6.66A.5.5 0 0 1 0 6.3a.4.4 0 0 1 .16-.33.5.5 0 0 1 .71 0l3.6 3.75z",stroke:"none",fill:o})})},Q=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10.5C12.2761 10.5 12.5 10.7239 12.5 11V14C12.5 14.2761 12.2761 14.5 12 14.5C11.7239 14.5 11.5 14.2761 11.5 14V11C11.5 10.7239 11.7239 10.5 12 10.5ZM12 8.49C12.2761 8.49 12.5 8.71386 12.5 8.99V9C12.5 9.27614 12.2761 9.5 12 9.5C11.7239 9.5 11.5 9.27614 11.5 9V8.99C11.5 8.71386 11.7239 8.49 12 8.49ZM12 16C14.4853 16 16.5 13.9853 16.5 11.5C16.5 9.01472 14.4853 7 12 7C9.51472 7 7.5 9.01472 7.5 11.5C7.5 13.9853 9.51472 16 12 16ZM12 17C15.0376 17 17.5 14.5376 17.5 11.5C17.5 8.46243 15.0376 6 12 6C8.96243 6 6.5 8.46243 6.5 11.5C6.5 14.5376 8.96243 17 12 17Z",fill:"inherit",stroke:"none"})})},G=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return(0,c.jsx)(a.a1,{className:t,width:r,viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M6 13L12 8L18 13",stroke:"inherit",fill:"none",strokeWidth:"1.5",strokeLinecap:"square"})})}},40726:function(e,t,n){"use strict";n.d(t,{I:function(){return B},n:function(){return D}});var r,i=n(18489),o=n(36222),a=n(83738),s=n(27853),u=n(84531),c=n(81020),M=n(804),m=n(72791),l=n(81694),d=n.n(l),h=n(99023),f=n(54156),p=n(96621),y="input_inputWrapper__Sihsu",g="input_input__aZcde",E="input_error__7Mbw5",v="input_fullError__UUf6s",b="input_withRightIcon__qyVym",w="input_rightIcon__uazwz",S="input_header__H7ciW",C="input_label__Li275",A="input_redText__lH0OS",_=n(80184),H=["autoFocus"],k=n(92270),P=function(e,t){var n;return(t||Number.POSITIVE_INFINITY)-(null!==(n=null===e||void 0===e?void 0:e.toString().length)&&void 0!==n?n:0)},N=function(e){var t,n,r=e.labelElement,i=e.value,a=e.showMaxLength,s=e.maxLength,u=e.id;return!!r||a&&s?(0,_.jsxs)("div",{className:S,children:[r&&(0,_.jsx)("label",{htmlFor:u,className:C,children:r}),a&&s&&(0,_.jsxs)(k.Z.Lawyer,{className:d()((0,o.Z)({},A,P(null!==(t=null===i||void 0===i?void 0:i.toString())&&void 0!==t?t:"",s)<=0)),children:["Characters: ",P(null!==(n=null===i||void 0===i?void 0:i.toString())&&void 0!==n?n:"",s)]})]}):null},T=["value","observableValue","labelElement","disabled","className","wrapperClassName","placeholder","error","showFullError","rightIcon","rightIconClassName","hideError","innerRef","handleChange","autoFocus","showMaxLength","maxLength","id"],R=(0,h.observer)(r=function(e){(0,c.Z)(n,e);var t=(0,M.Z)(n);function n(){var e;(0,s.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};(0,s.Z)(this,e),this._previewConfig=t}return(0,u.Z)(e,[{key:"lensPreviews",get:function(){var e=this;return Object.entries(this._previewConfig).reduce((function(t,n){var r=(0,q.Z)(n,2),i=r[0],o=r[1],a=e.getLens(i).get();return t[i]=Object.assign(Object.assign({},Me.Info.base),{logo:J.none,id:i,title:a.title,description:a.description,status:o.status,progress:o.progress,isUnavailable:o.isUnavailable}),t}),{})}},{key:"getLens",value:function(e){var t=function(t){return t.lensId===e};if(Me.isOutcomeId(e))return X.h.create(new Me.LensImpl(Me.Info.createOutcome(e),Me.Meta.group.empty,t));switch(e){case Me.SpecialId.AllAlerts:return X.h.create(new Me.LensImpl(Me.Info.allAlerts,Me.Meta.group.empty,t));case Me.SpecialId.Premium:return X.h.create(new Me.LensImpl(Me.Info.premium,Me.Meta.group.empty,t));case Me.SpecialId.FreePremiumAlerts:return X.h.create(new Me.LensImpl(Me.Info.freePremium,Me.Meta.group.empty,t));case Me.SpecialId.Plagiarism:return X.h.create(new Me.LensImpl(Me.Info.plagiarism,Me.Meta.group.empty,t));case Me.SpecialId.Priority:return X.h.create(new Me.LensImpl(Me.Info.priority,Me.Meta.group.empty,t));case Me.SpecialId.PredictionTakeaways:return X.h.create(new Me.LensImpl(Me.Info.predictionTakeaways,Me.Meta.group.empty,t));case Me.SpecialId.PredictionEmogenie:return X.h.create(new Me.LensImpl(Me.Info.predictionEmogenie,Me.Meta.group.empty,t));case Me.SpecialId.RealTimeProofit:return X.h.create(new Me.LensImpl(Me.Info.realTimeProofit,Me.Meta.group.empty,t));default:return(0,$.vE)(e)}}},{key:"findLens",value:function(){return J.none}}]),e}();e.Mock=t}(me||(me={})),function(e){e.isPriorityMode=function(e){return e===de.priority}}(le||(le={})),function(e){e.priority="priority",e.all="all"}(de||(de={})),function(e){e[e.EngagementHook=0]="EngagementHook",e[e.DeliveryHook=1]="DeliveryHook",e[e.PlagiarismHook=2]="PlagiarismHook",e[e.ProofitHook=3]="ProofitHook",e[e.GbVoxHook=4]="GbVoxHook",e[e.GbEnableVoxHook=5]="GbEnableVoxHook"}(he||(he={})),function(e){e.NotAvailable="NotAvailable",e.DemoDoc="DemoDoc",e.EmptyDocument="EmptyDocument"}(fe||(fe={})),function(e){e.NotAvailable="NotAvailable",e.EmptyDocument="EmptyDocument"}(pe||(pe={})),function(e){var t;!function(e){e.default="default",e.priority="priority"}(t=e.LensTitleType||(e.LensTitleType={})),e.documentActionAvailable={kind:"available"},e.proofitDisabled=function(e){return{kind:"disabled",reason:e}},e.plagiarismDisabled=function(e){return{kind:"disabled",reason:e}};var n=(0,u.Z)((function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.Z)(this,n),this.documentActions=X.h.create({proofit:e.documentActionAvailable,plagiarism:e.documentActionAvailable}),this.popover=X.h.create(J.none),this.showMuteControl=X.h.create(!1),this.isDocumentActionsDisabled=X.h.create(!1),this.lensMode=X.h.create(de.all),this.defaultLensMode=de.all,this.events=new Y.xQ,this.lensModeEvents=new Y.xQ,this.lensTitleType=t.default,this.dispose=K.Q1,this.a11yContrast=!1,this.cardVisualMode=X.h.create(U.CardVisualMode.RegularLightMode);var i=new me.Mock(r);this.lensPreviews=X.h.create(i.lensPreviews)}));e.Mock=n}(ye||(ye={}));var ge,Ee=function(e){var t=e.className;return f.createElement("svg",{className:t,width:"24",height:"32",viewBox:"0 0 24 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.createElement("rect",{width:"32",height:"32",transform:"translate(-8)",fill:"white"}),f.createElement("g",{clipPath:"url(#clip0_351_502)"},f.createElement("path",{d:"M13.7232 26.0005H1.19332C0.536995 26.0005 0 25.4645 0 24.8094V12.3027C0 11.6476 0.536995 11.1116 1.19332 11.1116H13.7232C14.3795 11.1116 14.9165 11.6476 14.9165 12.3027V24.8094C14.9165 25.4645 14.3795 26.0005 13.7232 26.0005Z",fill:"#40A7C7"}),f.createElement("circle",{cx:"2.29599",cy:"23.7965",r:"8.7413",fill:"#67B9D2",stroke:"#0E101A",strokeWidth:"0.5"}),f.createElement("circle",{cx:"2.29608",cy:"23.7963",r:"4.91522",fill:"#40A7C7",stroke:"#0E101A",strokeWidth:"0.5"})),f.createElement("rect",{x:"0.25",y:"11.3613",width:"14.4165",height:"14.389",rx:"1.28043",stroke:"#0E101A",strokeWidth:"0.5"}),f.createElement("path",{d:"M17.8902 21.8741H5.36031C4.70399 21.8741 4.16699 21.3381 4.16699 20.6829V8.17622C4.16699 7.52111 4.70399 6.98511 5.36031 6.98511H17.8902C18.5465 6.98511 19.0835 7.52111 19.0835 8.17622V20.6829C19.0835 21.3381 18.5465 21.8741 17.8902 21.8741Z",fill:"#F0F2FC"}),f.createElement("path",{d:"M17.8902 21.8741H5.36031C4.70399 21.8741 4.16699 21.3381 4.16699 20.6829V8.17622C4.16699 7.52111 4.70399 6.98511 5.36031 6.98511H17.8902C18.5465 6.98511 19.0835 7.52111 19.0835 8.17622V20.6829C19.0835 21.3381 18.5465 21.8741 17.8902 21.8741Z",stroke:"#0E101A",strokeWidth:"0.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeDasharray:"0.96 0.96"}),f.createElement("path",{d:"M16.6471 11.898H6.80224C6.63815 11.898 6.50391 11.764 6.50391 11.6003C6.50391 11.4365 6.63815 11.3025 6.80224 11.3025H16.6471C16.8112 11.3025 16.9455 11.4365 16.9455 11.6003C16.9455 11.764 16.8112 11.898 16.6471 11.898Z",fill:"#9FA6BF"}),f.createElement("path",{d:"M16.6471 14.7677H6.80224C6.63815 14.7677 6.50391 14.6337 6.50391 14.4699C6.50391 14.3061 6.63815 14.1721 6.80224 14.1721H16.6471C16.8112 14.1721 16.9455 14.3061 16.9455 14.4699C16.9455 14.6337 16.8112 14.7677 16.6471 14.7677Z",fill:"#9FA6BF"}),f.createElement("path",{d:"M11.4264 17.6373H6.80224C6.63815 17.6373 6.50391 17.5033 6.50391 17.3395C6.50391 17.1757 6.63815 17.0417 6.80224 17.0417H11.4264C11.5904 17.0417 11.7247 17.1757 11.7247 17.3395C11.7247 17.5033 11.5904 17.6373 11.4264 17.6373Z",fill:"#9FA6BF"}),f.createElement("defs",null,f.createElement("clipPath",{id:"clip0_351_502"},f.createElement("rect",{y:"11.1113",width:"14.9165",height:"14.889",rx:"1.53043",fill:"white"}))))},ve=function(e){var t=e.className;return f.createElement("svg",{className:t,width:"25",height:"17",viewBox:"0 0 32 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.createElement("path",{d:"M15.4994 12C18.5265 12 20.9987 9.55275 20.9987 6.5C20.9987 3.44725 18.5518 1 15.4994 1C12.447 1 10 3.44725 10 6.5C10 9.55275 12.447 12 15.4994 12Z",fill:"#15C39A",stroke:"#0E101A",strokeWidth:"0.5",strokeMiterlimit:"10"}),f.createElement("path",{d:"M13 6.49976L15 8.49976L18.4108 4.55933",stroke:"white",strokeWidth:"0.5",strokeLinecap:"round"}),f.createElement("path",{d:"M6.5 12C9.53756 12 12 9.53757 12 6.5C12 3.46243 9.53756 1 6.5 1C3.46243 1 1 3.46243 1 6.5C1 9.53757 3.46243 12 6.5 12Z",fill:"#F8E485",stroke:"#0E101A",strokeWidth:"0.5",strokeMiterlimit:"10"}),f.createElement("path",{d:"M4.99023 8.39847C5.41568 8.70495 5.9379 8.8855 6.50229 8.8855C7.06668 8.8855 7.58889 8.70495 8.01434 8.39847",stroke:"black",strokeWidth:"0.5"}),f.createElement("path",{d:"M4.11231 5.97981C4.37497 5.97981 4.58789 5.69746 4.58789 5.34916C4.58789 5.00086 4.37497 4.71851 4.11231 4.71851C3.84965 4.71851 3.63672 5.00086 3.63672 5.34916C3.63672 5.69746 3.84965 5.97981 4.11231 5.97981Z",fill:"#0E101A"}),f.createElement("path",{d:"M8.84278 5.97981C9.10544 5.97981 9.31836 5.69746 9.31836 5.34916C9.31836 5.00086 9.10544 4.71851 8.84278 4.71851C8.58012 4.71851 8.36719 5.00086 8.36719 5.34916C8.36719 5.69746 8.58012 5.97981 8.84278 5.97981Z",fill:"#0E101A"}))},be=function(e){var t=e.className;return f.createElement("svg",{className:t,width:"25",height:"32",viewBox:"0 0 25 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.createElement("path",{d:"M14.1953 9.1817C14.0818 9.06814 13.9455 9 13.7865 9H9.24411H4.72444C4.5541 9 4.39511 9.07949 4.29291 9.21576L1.14731 13.1222C0.954254 13.3607 0.954254 13.7354 1.15866 13.9626L8.84665 22.8429C9.07377 23.1041 9.44852 23.1041 9.67564 22.8543L17.8292 13.9966C18.0563 13.7468 18.0563 13.3493 17.8292 13.1109L14.1953 9.1817Z",fill:"#F8E485",stroke:"black",strokeWidth:"0.5",strokeMiterlimit:"10"}),f.createElement("path",{d:"M7.58668 9L5.87193 13.3153C5.81515 13.4629 5.80379 13.6332 5.86057 13.7922L9.25601 23.036",fill:"#F8E485"}),f.createElement("path",{d:"M7.58668 9L5.87193 13.3153C5.81515 13.4629 5.80379 13.6332 5.86057 13.7922L9.25601 23.036",stroke:"black",strokeWidth:"0.5",strokeMiterlimit:"10"}),f.createElement("path",{d:"M10.9144 9L12.6292 13.3153C12.686 13.4629 12.6973 13.6332 12.6406 13.7922L9.24512 23.036",fill:"#F8E485"}),f.createElement("path",{d:"M10.9144 9L12.6292 13.3153C12.686 13.4629 12.6973 13.6332 12.6406 13.7922L9.24512 23.036",stroke:"black",strokeWidth:"0.5",strokeMiterlimit:"10"}),f.createElement("path",{d:"M17.9885 13.5427H1",stroke:"black",strokeWidth:"0.5",strokeMiterlimit:"10"}))},we=function(e){var t=e.className;return f.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 32 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.createElement("path",{d:"M8.14946 10.1943C9.39647 11.4414 11.204 11.9358 13.626 11.6222C13.9557 9.34681 13.44 7.39486 12.1945 6.14933C10.948 4.90288 9.14158 4.40828 6.72121 4.72108C6.40841 7.14146 6.90301 8.94789 8.14946 10.1943Z",fill:"#99C2FF",stroke:"#2B2D38",strokeWidth:"0.5"}),f.createElement("path",{d:"M20.8508 10.1945C22.0978 8.94753 22.5923 7.14002 22.2787 4.71799C20.0033 4.38833 18.0514 4.90401 16.8058 6.14953C15.5594 7.39598 15.0648 9.20242 15.3776 11.6228C17.798 11.9356 19.6044 11.441 20.8508 10.1945Z",fill:"url(#paint0_linear_351_527)",stroke:"#2B2D38",strokeWidth:"0.5"}),f.createElement("path",{d:"M20.8505 14.8054C19.6035 13.5584 17.796 13.0639 15.374 13.3776C15.0443 15.6529 15.56 17.6049 16.8055 18.8504C18.052 20.0969 19.8584 20.5915 22.2788 20.2787C22.5916 17.8583 22.097 16.0519 20.8505 14.8054Z",fill:"#B8B4EF",stroke:"#2B2D38",strokeWidth:"0.5"}),f.createElement("path",{d:"M8.15014 14.8055C6.90313 16.0525 6.40864 17.86 6.72231 20.282C8.99767 20.6117 10.9496 20.096 12.1951 18.8505C13.4416 17.604 13.9362 15.7976 13.6234 13.3772C11.203 13.0644 9.39659 13.559 8.15014 14.8055Z",fill:"url(#paint1_linear_351_527)",stroke:"#2B2D38",strokeWidth:"0.5"}),f.createElement("defs",null,f.createElement("linearGradient",{id:"paint0_linear_351_527",x1:"15.0103",y1:"6.89005",x2:"22.6603",y2:"6.89004",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{stopColor:"#FFD0D8"}),f.createElement("stop",{offset:"0.0001",stopColor:"#F28C8C"})),f.createElement("linearGradient",{id:"paint1_linear_351_527",x1:"14.5006",y1:"18.11",x2:"6.85059",y2:"18.11",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{stopColor:"#41D9B5"}),f.createElement("stop",{offset:"0.195885",stopColor:"#41D9B5"}),f.createElement("stop",{offset:"1",stopColor:"#0FDCAC"}))))},Se=G.asks((function(e){var t;return{hideAssistant:"Hide Assistant",textRemoved:"If you didn\u2019t mean to delete that text, press ".concat(e.commandKeyLabel("Z")," to undo."),hotkeyLabelR:e.commandKeyLabel("R"),hotkeyLabelC:e.commandKeyLabel("C"),tour:{welcomeNewUserTitle:"Ready to write something brilliant?",welcomeNewUserContent:"The Grammarly Editor helps you turn your\nideas into clear, compelling writing.",welcomeOldUserTitle:"Welcome to the new Grammarly Editor",welcomeOldUserContent:"All the features you love, plus a few new ones, wrapped up in a fresh new look.",startTour:"Start a quick tour",skipTour:"Skip the tour",fastApplyHeader:"Editing made easy",fastApplyDescription:"Get detailed feedback on your\nwriting and apply suggestions\nwith just one click.",assistantHeader:"Become a better writer",assistantDescription:"See your feedback organized into categories that help you identify where your writing is strong and where you can make it stronger.",checkTypesHeader:"Go beyond grammar",checkTypesDescription:"Make your writing clear, compelling, and concise with suggestions customized to your writing goals.",goalsHeader:"Set your goals",goalsDescription:"Adjust Grammarly\u2019s feedback based on your objectives, your target audience, your writing style, and more.",finalTitle:"Enjoy\nthe Grammarly Editor",finalContent:"You\u2019re ready to start writing! You can also copy and paste or upload some existing text to the Grammarly Editor.",startWriting:"Start writing",nextStep:"Next step",previousStep:"Previous step",next:"Next",notReady:function(e){return f.createElement("span",null,"Not ready? You can return to Grammarly Classic anytime via the ",e," icon")}},dunningNotification:{title:function(e){return"Don\u2019t lose your ".concat(e?"Grammarly Business":"Premium"," features!")},description:function(e){return"Please update your billing information to avoid losing access to Grammarly ".concat(e?"Business":"Premium",".")},cta:"Update payment information",secondaryCta:"Later"},confirmUpgradeModal:{title:"Welcome to Premium",content:"Want to learn more about advanced features?",continueWritingCta:function(e){return e?"Not now, close tab":"Continue writing"},learnPremiumCta:"Learn about Premium",closeCta:"Close"},survey:{oldUser:{title:"Share a feedback",content:"Hi! I'm Igor, a product designer at Grammarly.\nPlease, help me find out how the last update of\nthe interface affected your editing experience.",takeSurvey:"Take a survey",remindLater:"Remind me later"},newUser:{title:"Share your feedback",content:"Hi! I\u2019m Igor, a product designer at Grammarly.\nPlease, let me know what you think of Grammarly and how we can improve.",takeSurvey:"Take a survey",remindLater:"Remind me later"},proofitPromo:{title:"Thorough Human Proofreading",content:"If you need extra confidence that your text is mistake-free, send it to our team of experienced proofreaders.",actions:{view:"Get Started",close:"Close"}},docx:{didYouKnow:"Did you know?",title:"You can use Grammarly in Microsoft Word!",content:"Get Grammarly\u2019s suggestions while you write\nin Word or Outlook with our free add-in.",download:"Download Grammarly for MS Office",remindLater:"Remind me later"}},performance:{title:"Performance",scoreUnder100:function(e){return"Text score: ".concat(e," out of 100. This score represents the quality of writing in this document. You can increase it by addressing Grammarly's suggestions.")},score100:"Great job! Your text scores 100 out of 100. This score represents the quality of writing in this document.",notEnoughTextToCalculateStats:"Write away! Grammarly needs at least 30 words to calculate document statistics.",wordCount:"Word count",characters:"Characters",words:"Words",sentence:"Sentence",sentences:"Sentences",readingTime:"Reading time",speakingTime:"Speaking time",readability:"Readability",readabilityScore:"Readability score",vocabulary:"Vocabulary",sectionTitleDescription:"Metrics compared to other Grammarly users",uniqueWords:"Measures vocabulary diversity by calculating\nthe number of unique words.",rareWords:"Measures depth of vocabulary by identifying words that are\nnot among the 5,000 most common English words.",readabilityDescription:"In the Flesch reading-ease test, higher scores\nindicate material that is easier to read.",uniqueWordsTitle:"Unique words",rareWordsTitle:"Rare words",wordLengthTitle:"Word length",sentenceLengthTitle:"Sentence length",notEnoughTextToGenerateReport:"We need at least 30 words to calculate document statistics and generate your report.",belowAverage:"Below average",average:"Average",aboveAverage:"Above average",report:{plagiarismDescription:function(e,t){return"".concat(e,"% of your text matches ").concat(t," sources on the web\nor in archives of academic publications")},downloadPdfReport:"Download PDF report",preparingPdfReport:"Preparing PDF report...",readingEase:"reading ease",readingEaseDescription:"Rates the text by the number of years of\neducation needed to understand it",readingEaseMeasure:"grade level",uniqueWordsDescription:"Measures vocabulary diversity by calculating\nthe percentage of words used only once in your\ndocument",wordLengthDescription:"Measures average word length",wordLengthMeasure:"characters per word",sentenceLengthDescription:"Measures average sentence length",sentenceLengthMeasure:"words per sentence"},button:{score:"Overall score",score100:"Great job!",statuses:{calculating:"Calculating...",unavailable:"Text is too short",available:"See performance",paused:"Paused"}}},sidebar:{content:{premiumIssues:{advancedAlerts:"Advanced issues",foundTitleSingular:{description1:"There is",description2:"advanced issue available only for Premium users."},foundTitlePlural:{description1:"There are",description2:"advanced issues available only for Premium users."}}},openLabel:"start assistant",fixErrorsLabel:"Correct with Assistant",checkingLabel:"Checking\u2026",advancedAlerts:"Advanced suggestions",criticalIssue:function(e){return W._6(e,"Critical issue","Critical issues")},critical:function(e){return W._6(e,"Critical","Critical")},advanced:function(e){return W._6(e,"Advanced","Advanced")},criticalLabel:function(e){return"".concat(e," ").concat(W._6(e,"Critical suggestion","Critical suggestions"))},advancedLabel:function(e){return"".concat(e," ").concat(W._6(e,"Advanced suggestion","Advanced suggestions"))},advancedIssue:function(e){return W._6(e,"Advanced issue","Advanced\nissues")},premium:function(e){return W._6(e,"Premium","Premium")},free:function(e){return W._6(e,"Suggestion","Suggestions")},premiumLabel:function(e){return"".concat(e," ").concat(W._6(e,"Premium suggestion","Premium suggestions"))},freeLabel:function(e){return"".concat(e," ").concat(W._6(e,"Suggestion","Suggestions"))},premiumAlertsTitle:"Premium\nsuggestions",allAlerts:"All suggestions",backToAllAlerts:"Back to all suggestions ",seeAlerts:function(e){return"".concat(e," more ").concat(W._6(e,"suggestion","suggestions"))},sendToProofreadersLabel:"Get Expert Writing Help",sendToProofreaders:f.createElement(f.Fragment,null,"Get Expert",f.createElement("br",null),"Writing Help")},successLens:{goPremium:"Go Premium",paidView:{title:"No critical issues"},emptyText:{title:"Nothing to check yet",firstLine:"Start writing or upload a document\nto see Grammarly\u2019s feedback."},smallText:{title:"No issues found",firstLine:"Grammarly ran hundreds of checks\non your text and found no writing issues.",secondLine:"Check back in when you\u2019re ready to write some more."},largeText:{title:"No issues found",firstLine:"Grammarly ran hundreds of checks\non your text and found no writing issues."},premiumOnboardingStartText:{title:"You've accepted your first Premium suggestion!"},premiumOnboardingCompleteText:{title:"You are a grammar star!",firstLine:"Thank you for purchasing Premium. Enjoy!"},mutedSuggestions:function(e){return"".concat(e,1===e?" suggestion has been turned off.":" suggestions have been turned off.")},fixedText:{titles:["You made that look easy!","That\u2019s quite an improvement!","Nothing can stop you now!","You must have been practicing!","Looking good!","Give yourself a pat on the back!","Great job!","Everything\u2019s clear and polished.","To err is human; to edit, divine."]},fixedTextDemoPremium:{title:"Great job!",firstLine:"You\u2019ve got the hang of it now.",secondLine:"Time to write your own masterpiece!"},priorityFirstCheck:{title:"Great job!",firstLine:"No relevant suggestions."}},uploadDropZone:"Drag a text file here to upload",uploadDropZoneTypes:"Microsoft Word (.doc, .docx), OpenOffice (.odt), TXT and RTF are welcome",rtfCompatibilityModeNotificationTitle:"Your document\u2019s formatting will be restored upon download.",notificationUploadFileText:"Upload a file in one of the following formats",denaliDocumentUploadNotification:{title:"The document was uploaded successfully",text:"Don\u2019t worry! The previous document has been saved to",link:"My documents"},goals:{title:"Set goals",header:"Get tailored writing suggestions based on your goals and audience.",sections:{audience:{general:function(e){return f.createElement(f.Fragment,null,f.createElement("b",null,"General",e?" (default)":"",":")," Easy for anyone to read with minimal effort.")},knowledgeable:function(e){return f.createElement(f.Fragment,null,f.createElement("b",null,"Knowledgeable",e?" (default)":"",":")," Requires focus to read and understand.")},expert:function(e){return f.createElement(f.Fragment,null,f.createElement("b",null,"Expert",e?" (default)":"",":")," May require rereading to understand.")}},formality:{formal:f.createElement(f.Fragment,null,f.createElement("b",null,"Formal:")," Restricts slang and colloquialisms."),informal:f.createElement(f.Fragment,null,f.createElement("b",null,"Informal:")," Allows slang and other more casual usages."),neutral:f.createElement(f.Fragment,null,f.createElement("b",null,"Neutral (default):")," Restricts slang but allows standard casual expressions.")},domain:{free:"Get customized suggestions for business writing, academic assignments, and more.",academic:f.createElement(f.Fragment,null,f.createElement("b",null,"Academic:")," Strictly applies all rules and formal writing conventions."),business:f.createElement(f.Fragment,null,f.createElement("b",null,"Business:")," Applies almost all rules but allows some informal expressions."),general:f.createElement(f.Fragment,null,f.createElement("b",null,"General (default):")," Applies most rules and conventions with medium strictness."),mail:f.createElement(f.Fragment,null,f.createElement("b",null,"Email: ")," Applies almost all rules, plus email writing conventions."),casual:f.createElement(f.Fragment,null,f.createElement("b",null,"Casual:")," Applies most rules but allows stylistic flexibility."),creative:f.createElement(f.Fragment,null,f.createElement("b",null,"Creative:")," Allows some intentional bending of rules and conventions.")},tone:{experimental:f.createElement(f.Fragment,null,f.createElement("b",null,"Experimental.")," How do you want to sound? This helps us build new suggestions and won't affect your feedback today."),options:{neutral:"\ud83d\ude10 Neutral",confident:"\ud83e\udd1d Confident",joyful:"\ud83d\ude42 Joyful",optimistic:"\u270c\ufe0f\u200cOptimistic",friendly:"\ud83e\udd17 Friendly",urgent:"\u23f0 Urgent",analytical:"\ud83d\udcca Analytical",respectful:"\ud83d\ude4c Respectful"}},type:{options:{essay:f.createElement(f.Fragment,null,f.createElement("b",null,"Experimental"),": An analytical or interpretive piece of writing, often to tell a story or argue a point."),report:f.createElement(f.Fragment,null,f.createElement("b",null,"Experimental"),": A written description intended to provide factual information (e.g. a lab report)."),other:f.createElement(f.Fragment,null,f.createElement("b",null,"Other"),": Academic writing that is neither an essay or report.")}},format:{formatTitle:function(e){return"mla"===e||"apa"===e?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1)},options:{apa:"Applies APA style to in-text and full citations.",mla:"Applies MLA style to in-text and full citations.",chicago:"Applies Chicago style to in-text and full citations.",other:f.createElement(f.Fragment,null,f.createElement("b",null,"Other"),": Any other citation format (eg: IEEE)")}},intent:{experimental:f.createElement(f.Fragment,null,f.createElement("b",null,"Experimental.")," What are you trying to do? This helps us build new suggestions and won't affect your feedback today."),options:{inform:"Inform",describe:"Describe",convince:"Convince",tellStory:"Tell a Story",sell:"Sell"}}},footer:{showModalOnStart:f.createElement(f.Fragment,null,"Show ",f.createElement("b",null,"Set Goals")," when I start a new document"),reset:"Reset to defaults"},button:{title:"Goals",subtitle:function(e,t,n){return 0===e?"Adjust goals":"".concat(Math.max(e,n)," of ").concat(t," set")},subtitleAcademic:function(e){return"Academic: "+e}}},plagiarism:{webReferenceDescription:"Click to copy reference",publicationReferenceDescription:function(e){return f.createElement(f.Fragment,null,"Click to copy reference (",e,")")},lensDescription:function(e,t,n,r){return f.createElement("span",null,f.createElement("em",null,e,"%")," of your text matches"," ",f.createElement("em",null,t," ",W._6(t,"fragment","fragments"))," ","from"," ",f.createElement("em",null,n," ",W._6(n,"source","sources"))," ","on the web or in academic databases. Cite them in ",f.createElement(r,{type:"MLA"}),","," ",f.createElement(r,{type:"APA"}),", or ",f.createElement(r,{type:"Chicago"})," format, or in another style you prefer.")},percentileDescription:function(e){return f.createElement(f.Fragment,null,e,"\xa0of your text matches this source:")},cardDescription:function(e){return f.createElement("span",null,"Regardless of what subject you're writing for, make a reference using"," ",f.createElement(e,{type:"MLA"}),", ",f.createElement(e,{type:"APA"}),", or"," ",f.createElement(e,{type:"Chicago"})," format, or another style you prefer.")},helpIconDescription:function(e,t,n){return"".concat(e,"% of your text ").concat(W._6(se.g.prism.reverseGet(e),"matches","match")," ").concat(t," ").concat(W._6(t,"fragment","fragments")," from\n").concat(n," ").concat(W._6(n,"source","sources")," on the web or in academic databases.")},loadingDescription:"Grammarly compares billions of web pages to your document and alerts you to passages that may need citations.",title:"Plagiarism",description:"Finds unoriginal text by checking against academic databases and over 16 billion web pages.",originalText:f.createElement("span",null,"Looks like your text is 100% original. ",f.createElement("br",null),"We found no matching text in our databases or on the Internet.")},documentActions:{plagiarism:{tooltip:{available:"Plagiarism Check",emptyDocument:"Add text first to check for plagiarism"}},proofit:{tooltip:{available:"Save time with human expertise.",disabled:function(e){return e===fe.DemoDoc?"Expert writing help is unavailable for Grammarly sample documents":"Add text first to get expert writing help"}}}},documentPerformanceRankText:function(e){return f.createElement("span",null,"Great job! Your text is expected to ",f.createElement("br",null),"perform ",f.createElement("b",null,"better than ",e,"%")," of comparable ",f.createElement("br",null),"texts written by other Grammarly users.")},proofitTitle:"Get Expert Writing Help",proofitDescription:"Our writing experts are ready to check your document right now.",proofitOrderModal:{promo:{stepsNavigation:{howItWorks:"How it works",editingOptions:"Editing options",provideDetails:"Provide details"},step1:{title:"Save Time\nwith Human Expertise",description:"No time to polish your text?\nSend it to our team of writing experts."},step2:{title:"How it works",li1:"Select how fast you\u2019d like your document\nreturned and place your order.",li2:f.createElement(f.Fragment,null,"Our writing experts will fix writing mechanics",f.createElement("br",null),"(like spelling, grammar, and punctuation).",f.createElement("br",null),"If you choose the ",f.createElement("b",null,"Correctness and Clarity"),f.createElement("br",null),"option, they\u2019ll also revise sentences that are",f.createElement("br",null),"unclear or hard to follow."),li3:"We will email you a link to the edited version\nin a DOCX file with all changes marked.",back:"got it"},step3:{header:{correctness:{h1:"Correctness",h2:"Fix errors only"},correctnessClarity:{h1:"Correctness\n& Clarity",h2:"Fix errors and\nimprove clarity"}},spelling:{h1:"Spelling"},grammar:{h1:"Grammar"},punctuation:{h1:"Punctuation"},conciseness:{h1:"Conciseness",h2:"Streamline wordy\nsentences"},preciseness:{h1:"Preciseness",h2:"Clarify vague sentences"},readability:{h1:"Readability",h2:"Make sentences easier\nto follow"}},step4:{title:"Optional: Get better feedback by providing some extra information",nativeLanguage:"Your native language",nativeLanguageDescription:"We\u2018ll pay special attention to issues that are common among writers with your language background",dialect:"Preferred English dialect",quotationType:"Default quotation marks",quotationTypeSingle:"\u2018Single\u2019",quotationTypeDouble:"\u201cDouble\u201d",spaceType:"Spaces after end punctuation",spaceTypeSingle:"One space",spaceTypeDouble:"Two spaces",choose:"Choose from the list"},step5:{title:"Free Reviews Terms and Conditions",credits:"Expert Writing Service Free Reviews (\u201cReviews\u201d) are subject to Grammarly, Inc.\u2019s (\u201cGrammarly\u2019s\u201d) ",termsOfService:"Terms of Service",andFollowingTerms:" and the following terms:",term1:"Grammarly may terminate or modify our Reviews programs at any time with or without notice to you. You should not rely upon the continued availability of any Reviews programs.",term2:"Reviews will have no currency or exchange value, and are not transferable or refundable.",term3:"If you delete your account or downgrade to a free account, any Reviews remaining on your account will be forfeited and may not be reinstated.",term4:"Reviews may only be used for the intended purpose and in a lawful manner."}},order:{title:"How fast do you need your document returned?",tierBase:"Correctness only",tierClarity:"Correctness and Clarity",tierTitle:"Which option would you like?",helpMeChoose:"Help me choose",warningConfirm:"We won\u2019t charge you until you confirm\nby clicking \u201cPlace Order.\u201d",iAgree:"I agree to the ",terms:"Free Reviews terms and conditions",placeOrder:"Place Order",orderForFree:"Order For Free",chooseOptions:"Choose from turnaround options to continue",confirm:"Confirm you agree to the terms to continue",recommended:"recommended",perWord:"per word",freeReviewsLeft:function(e){return"".concat(e," free review").concat((null!==e&&void 0!==e?e:0)%10===1?"":"s"," left this month")},paymentWarnings:{payPal:function(e){return f.createElement("span",null,"By placing an order you authorize a charge of"," ",f.createElement("b",{"data-name":"payment-warning-price"},"$",W.T4(e)),f.createElement("br",null),"to your PayPal account")},creditCard:function(e){return f.createElement("span",null,"By placing an order you agree that your card ",f.createElement("br",null),"will be charged"," ",f.createElement("b",{"data-name":"payment-warning-price"},"$",W.T4(e)))},updateBilling:"Update billing information"}},card:{toProtect:"To protect your security, we ask you to authorize\nthis charge by re-entering payment details\nfor Grammarly.",paymentSuccess:{title:"Success",message:"Your billing information has been updated successfully"},paymentError:{title:"Error",message:function(e){return f.createElement("span",null,"There is an issue with the payment method you provided. Please review your payment\xa0 information and try again or select a different payment method",f.createElement("br",null),"If you need further assistance, please contact our\xa0",f.createElement("a",{href:e,target:"_blank",style:{color:"#fff"}},"Support Team"))}}}},proofitSuccessModal:{title:"Your document will be ready by\u2026",description:function(e){return f.createElement("span",null,"We will email you at ",f.createElement("span",{"data-name":"useremail"},e)," with a link to the corrected version in a DOCX file with all changes marked.")}},proofitPayment:{creditCard:"Your card has been declined.",payPal:"Your PayPal account has been declined"},resolveLabel:"Mark as resolved and hide suggestion",resolve:f.createElement("span",null,"Mark as resolved and",f.createElement("br",null),"hide suggestion"),dismiss:"Dismiss",back:"Back",new:"New",done:"Done",on:"On",off:"Off",card:{less:"Less",more:"Learn more",cardActions:"Card actions for",description:"Suggestion description for",addToDict:"Add to dictionary",disabledForAnonymous:"Sign in to use this feature",like:"I'll address this",dislike:"Not helpful",wrong:"Incorrect suggestion",mute:"Turn off suggestions like this",moreActions:"More actions",offensive:"Offensive content",updatingSuggestion:"Updating suggestion\u2026",or:"or",onboarding:(t={},(0,j.Z)(t,r.ClarityAICard,{title:"Grammarly just got smarter",content:"Grammarly now helps rewrite sentences to make your point clearer."}),(0,j.Z)(t,r.PassiveVoiceCard,{title:"Improved passive voice suggestions",content:"Grammarly now helps you rewrite passive voice sentences in the active voice."}),t),progressBarLabels:{readability:{min:"Hard to read",max:"Easy to read"},sentenceVariety:{min:"Monotonous",max:"Lively"},conciseness:{min:"Cluttered",max:"Concise"}},matchesNavigation:{next:"Next match",prev:"Previous match",currentMatchPosition:function(e,t){return"".concat(e," of ").concat(t)},numberOfMatches:function(e){return"".concat(e," ").concat(W._6(e,"match","matches"))}},todoAction:function(e){return"Click to ".concat(e)},checking:"Checking...",actionDescription:{setGoals:"Set goals to get tailored writing suggestions",openPreferences:"Open settings"},fluency:{tooltip:"This suggestion is based on your language settings.",cardTitle:"Fluency improvements",cardFooter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"multilingual";return"Common issue for ".concat(e," speakers")}},takeaway:{defaultTitle:"Is this your text's main point?",feedback:"Is this your text\u2019s main point?",yes:"Yes",no:"No"},shortenIt:{acceptButtonCheckingLabel:"Rewriting",editPopupDismissButtonLabel:"Change back",editPopupKeepButtonLabel:"Looks good",collapsedButtonTooltip:"Review this change",notFoundLabel:"No shorter version found.",loadingLabel:"Looking for shorter versions..."},suggestedSnippet:{subheader:"New snippet",namePlaceholder:"Name",textPlaceholder:"Type your snippet",successStateTitle:"Snippet saved!",libraryLinkCaption:"Open library",explanation:function(e){return f.createElement(f.Fragment,null,"To use this snippet later, type ",e," and search by name")},details:function(e){return f.createElement(f.Fragment,null,"To use a snippet while typing in the browser extension, press ",e," to open your snippets library. Use the up and down arrow keys to browse your snippets or continue typing to search for a snippet by name or keyword in the content. You can edit and delete snippets from the Snippets page of your account. To use a different keyboard shortcut to insert your snippets, go to the Customize page of your account and click Features.")},validationMessages:{nameEmpty:"Name cannot be empty.",nameTooLong:"Snippet names cannot exceed 30 characters.",textEmpty:"Snippet cannot be empty.",textTooLong:"Snippets cannot exceed 1,000 characters."}},showChangesToggle:"Highlight changes",muteCitedText:function(e){return f.createElement(f.Fragment,null,"Don't want Grammarly to check quotes?",f.createElement("br",null),f.createElement("span",null,"Change this in ",e,"."))},feedbackForm:{dismissReason:"Why did you dismiss this suggestion?",submit:"Submit",skip:"Skip",error:"Select one of the reasons first"},gbPrompt:{addRule:"Add rule",dismiss:"Dismiss",saveRule:"Save",cancelSavingRule:"Cancel"},gapCard:{placeholder:"Who or what\u2026"},mutedAlertCard:{description:function(e){return f.createElement(f.Fragment,null,"You\u2019ve turned off suggestions related to ",f.createElement("b",null,e),". They won\u2019t appear in any Grammarly apps and extensions until you turn them back on.")},successButtonLabel:"Got it",undoButtonLabel:"Turn back on",settingsLabel:"Manage optional suggestions"}},placeholderRTF:{typeOrPasteText:"Type or paste (".concat(e.commandKeyLabel("V"),") your text here or "),upload:"upload",ending:" a document."},placeholder:{typeOrPasteText:"Type or paste (".concat(e.commandKeyLabel("V"),") your text here. "),upload:"Upload",ending:" a document to save original formatting."},toolbar:{label:"Document tools",loading:"Loading...",processing:"Processing your document...",backToMyGrammarly:"Back to My Grammarly",signOut:"Sign out",title:{rename:"Rename your document",untitledDocument:"Untitled document",onboarding:{title:"Add a title",message:"Give your document a name so you can find it later."}},formatting:{head:"Text formatting",bold:"Bold",italic:"Italic",underline:"Underline",header1:"Heading 1",header2:"Heading 2",link:"Link",orderedList:"Numbered list",bulletList:"Bullet list",clear:"Clear formatting",tooltips:{head:"Text format",bold:"Bold",italic:"Italic",underline:"Underline",header1:"Heading 1",header2:"Heading 2",link:"Link",orderedList:"Numbered list",bulletList:"Bullet list",clear:"Clear formatting"},links:{apply:"Apply",change:"Change",remove:"Remove",placeholder:"Enter link URL"}}},footer:{word:"word",words:"words",character:"character",characters:"characters",readingTime:"reading time",speakingTime:"speaking time",readabilityScore:"readability score",disabledReadabilityScore:"Readability score \u2014 not enough text",rtfCompatibilityInfo:{message:{plainText:"\u26a0\ufe0f Formatting tools are ",textWithTooltip:"not available"},tooltip:"Your document\u2019s formatting will be restored upon download. To preserve your document\u2019s original formatting, Grammarly\u2019s formatting tools are temporarily not available.",officeAddinPromo:{part1:"Try ",part2:"Grammarly for MS Office."}}},emogenie:{popup:{title:"Here\u2019s how your text sounds",subtitle:"Which tones did we get right?",actions:{like:"Tone is detected correctly",dislike:"Tone is detected incorrectly"},intensities:{slight:"Slight intensity",moderate:"Moderate intensity",strong:"Strong intensity",veryStrong:"Very strong intensity"},textIsTooShortMessage:"Write away! Grammarly needs at least 30 words to detect your tone."}},vox:{styleGuide:"style guide"},mutedAlerts:{dialogue:{openBtnTooltip:"Manage deactivated suggestions",header:"Deactivated Suggestions",subHeader:"You\u2019ve chosen to turn off the following types of suggestions:",on:"Turn on",off:"Turn back off",suggestions:function(e){return"".concat(e," ").concat(W._6(e,"suggestion","suggestions")," in this document")},footerSuggestions:function(e){return"".concat(e," ").concat(W._6(e,"suggestion","suggestions")," will be turned back on")}},onboarding:{cardMute:{description:"You can now deactivate certain types of suggestions (including Oxford commas and passive voice.)",buttonText:"Got it"},dialogue:{description:"Click this icon to manage deactivated suggestions."}}},preferences:{autoJumpToNextAlert:"Auto-jump to the next suggestion",autoScrollToNextAlert:"Auto-scroll to the next suggestion",autoJumpToNextAlertDescription:"When a suggestion is applied or rejected, automatically scroll the text to the next suggestion.",increaseFontSize:"Increase text font size",suggestionsVisualMode:{title:"Colorblind mode",description:"Use icons to identify different suggestion types (Clarity, Engagement, Conciseness, Delivery)"},muteQuotedAlerts:"Don\u2019t check text inside quotes",suggestionManagementDescription:"You can deactivate certain types of suggestions (including Oxford commas and passive voice) or activate them back.",suggestionManagementLink:"Suggestions management"},actions:{free:"Free",select:"Select",close:"Close",gotIt:"Got it"},statuses:{disabled:"Disabled",selected:"Selected",unavailable:"Unavailable"},subscription:{paypal:{description:"You can subscribe to Grammarly with PayPal. Click on the button below to sign in to your Paypal account.",descriptionWhenConnected:"You're already subscribed to Grammarly with PayPal. Click the button below to change your Paypal information."},apple:"Since you purchased your Grammarly Premium subscription through the App Store, please open the Grammarly app on your iOS device to manage your subscription.\nWe're working on a way to bring this functionality to you in our desktop products, but it's not quite ready yet."},desktopUpdate:{softTitle:"New version is available",hardTitle:"Please update to the latest version",soft:"The new version of the Grammarly Editor contains bug fixes and provides a better experience.",hard:"Your current version of the Grammarly Editor is outdated and will not work properly.",reload:"Update",download:"Download the latest version"},undo:"Undo",switchToDenali:"You switched to the new Grammarly Editor for this document.",feedbackSend:"Your feedback has been sent. Thank you!",statisticsError:"Error on requesting document statistics. Please try again later.",referenceCopied:"Reference copied to clipboard",documentCopied:"Document copied to clipboard",downloadDocumentNotFoundError:"Requested document was not found.",isTemporaryDownloadError:"Document wasn't downloaded.\nPlease try again.",freemiumNotifications:{engagement:"Grammarly Premium suggests ways to make your writing more specific, vivid, and interesting to keep your readers engaged.",delivery:"Grammarly\u2019s AI adjusts the level of formality, confidence, friendliness, and more in your writing so you can make the best impression.",plagiarism:"Grammarly compares billions of web pages to your document and alerts you to passages that may need citations."},whatsNew:{title:"What's New?"},fileSizeExceededNotification:{title:"Maximum document size exceeded",body:"Currently, Grammarly can support documents up to 4 MB and 100,000 characters (about 60 pages).\n Try uploading your file in multiple parts or copying and pasting your text into the editor.",link:"Alternatively, you can install Grammarly for Microsoft Office"},SignOutModal:{step1:{title:"Sign out of Grammarly Business? ",information:"This will sign you out of Grammarly Business on all websites.",noAccessText:"You won't have access to:",features:[{title:"Premium suggestions",description:"Suggestions to improve clarity, engagement and delivery",icon:f.createElement(be,null)},{title:"Snippets",description:"Reusable text Snippets that save time",icon:f.createElement(Ee,null)},{title:"Brand Tones",description:"Feedback about tones to use and avoid",icon:f.createElement(ve,null)},{title:"Style Guide",description:"Suggestions specific to your teams brand voice",icon:f.createElement(we,null)}]},step2:{title:"Before you sign out, could you tell us why?",information:"We're always trying to improve and we value your feedback",options:[{id:1,text:"Grammarly is interrupting my workflow."},{id:2,text:"It's slowing down my computer."},{id:3,text:"I'm not happy with the suggestions."},{id:4,text:"I have security or privacy concerns."},{id:5,text:"I am on a shared computer."},{id:6,text:"I will be back soon."}]}},documentSettings:{label:"Document settings",toolbarLabel:"Document settings toolbar",close:"Close",myGrammarly:"My Grammarly",documentHeader:"DOCUMENT",newDocument:"New document",uploadFile:"Upload file",download:"Download",downloadLabel:"as .docx",print:"Print",template:"Insert Template",editHeader:"EDIT",undo:"Undo",redo:"Redo",cut:"Cut",copy:"Copy",paste:"Paste",selectAll:"Select all",editorSettings:"Editor settings",accountHeader:"ACCOUNT",eduLabel:"EDU",upgradeToPremium:"Upgrade to premium",language:"Language preference",subscription:"Subscription",logout:"Sign out",support:"Support",whatsNew:"What's new",feedback:"Send product feedback",privacyPolicy:"Privacy policy",termsOfService:"Terms of service",tooltips:{close:"Close",myGrammarly:"My Grammarly",newDocument:"Create a new document",uploadFile:"Upload a file",download:"Download",print:"Print",undo:"Undo",redo:"Redo",cut:"Cut",copy:"Copy",paste:"Paste",selectAll:"Select all",editorSettings:"Editor settings",upgradeToPremium:"Upgrade to premium",language:"Personal dictionary and dialect",subscription:"Manage your subscription",logout:"This will sign you out of Grammarly on all websites",support:"Support",whatsNew:"What's new",feedback:"Send product feedback",privacyPolicy:"Privacy policy",termsOfService:"Terms of service"},onboarding:{title:"Shortcuts and settings",message:"Click to adjust your settings"},supportTitle:"Support and feedback"},hotkeyUnsupported:"This action is unavailable using the menu, but you can still use ",goPremium:"Go Premium",editorSettingsModalHeader:"Editor settings",documentUploaded:{message:"Document successfully uploaded. ",link:"Open document for editing"},documentUploadGeneralError:"Document wasn't uploaded. Please try again.",documentIsEmpty:"The submitted file is empty.",noFileToUpload:"No files to upload!",oneDocumentIsAllowed:"Only one document upload at a time is allowed",tooltipUploadElementInput:"Click here to upload document",goBackToAllAlerts:"Go back to All Suggestions",beta:"Beta",premiumAlertLabel:{tooltip:{includedWithPaid:f.createElement(f.Fragment,null,f.createElement("div",null,"This suggestion is included"),f.createElement("div",null,"with your paid subscription."))},new:"new"},premiumFreeTrial:function(e){return f.createElement(f.Fragment,null,"This advanced suggestion is included in your"," ",f.createElement("span",{style:{whiteSpace:"nowrap"}},"1-week")," Premium Trial."," ",f.createElement("a",{onClick:e},"Learn More"),".")},freePremiumAlertFooter:{beforeIcon:"Your free",afterIcon:"Premium suggestion"},freeTrialAlertFooter:"This is a Premium suggestion. Enjoy your trial!",premiumOnboardingFooter:"Premium suggestion",anonymousUserGenericSignInPrompt:function(e){return f.createElement(f.Fragment,null,f.createElement("a",{onClick:e},"Sign in")," to get key Grammarly features")},anonymousUserAddToDictionarySignInPrompt:function(e){return f.createElement(f.Fragment,null,f.createElement("a",{onClick:e},"Sign in")," to start your personalized dictionary")},inlineUpgradeHook:{suggestionIsPartOfPremium:"This suggestion is part of Grammarly Premium.",upgradeToPremium:"UPGRADE TO PREMIUM"},inlineCard:{addToDictionary:"Add to dictionary",dismiss:"Dismiss",seeMore:"See more"},changePlan:{title:function(e){return f.createElement(f.Fragment,null,"Switch and save over ",e)},confirmationDescription:function(e,t,n,r,i){return f.createElement(f.Fragment,null,"Your current plan ",e," Plan will update to Annual on"," ",t.toLocaleDateString(),", at which time you will be charged one payment of"," ",n,". Your subscription will automatically renew every ",i," months. You will be charged ",r," on each renewal.")},cancelButton:"cancel",confirmationButton:function(e){return"Switch to ".concat(e," Plan")},promoBadge:function(e){return"".concat(e," PROMO")},savedBadge:function(e){return"".concat(e," SAVED")},perYear:"year",perMonth:"mo",successfulNotificationCopy:function(e){return"You were switched to ".concat(e," Plan")},hook:{title:"Your writing looks great with Grammarly Premium! Keep up the great work!",button:{switchTo:"Switch to Annual Plan ",price:function(e){return f.createElement(f.Fragment,null,"Save ",e)},cancel:"Later"}}},review:"Review",news:{bulkAccept:{title:"Accept multiple suggestions at once",body:"Save time by accepting all high-confidence suggestions at once. This will automatically apply any suggestions that other Grammarly users almost always accept."},mutedAlerts:{title:"Turn certain suggestions off",body:"You can now deactivate certain types of suggestions (including Oxford commas and passive voice.)"},proofitClarity:{title:"Expanded options from our expert writing service",body:'Our writing experts now offer a "Correctness and Clarity" option. Select this option when submitting a text and our experts will make sure your writing is concise, precise, and easy to read.'},pdf:{title:"Expanded PDF report now available",body:"Each document\u2019s PDF report now contains the document text and shows Grammarly\u2019s suggestions for all detected writing issues. "},rtf:{title:"Rich text formatting has arrived!",body:"The Grammarly Editor now supports bold, italics, bullet points, and more. The editor can now also preserve rich text formatting in pasted text."},clarity:{title:"Go Beyond Grammar",body:"Streamline your sentences with Grammarly's new clarity suggestions. Blue underlines appear with suggested edits for hard-to-read phrases and sentences."},trash:{title:"Restore deleted documents",body:"You can now find and restore recently deleted documents in your trash."}},priorityLens:{prioritySuggestion:"Top suggestions",allSuggestion:"All suggestions",disabledAllSuggestion:"No additional suggestions",description:"Grammarly prioritizes suggestions based on the context of your writing.",descriptionLink:"goals"},feedModeSelector:{priority:"Top suggestions",priorityDescription:f.createElement(f.Fragment,null,"Prioritize suggestions based on the context ",f.createElement("br",null)," of your writing and your editing history."),all:"All"},waysToUseGrammarly:function(e,t,n,r,i,o){return f.createElement("ul",null,f.createElement("li",null,"In your browser (",f.createElement("a",{href:e,target:"_blank"},"Chrome"),","," ",f.createElement("a",{href:t,target:"_blank"},"Edge"),","," ",f.createElement("a",{href:n,target:"_blank"},"Firefox"),","," ",f.createElement("a",{href:r,target:"_blank"},"Safari"),")"),f.createElement("li",null,f.createElement("a",{href:i,target:"_blank"},"On your phone")," ","(iOS and Android)"),f.createElement("li",null,f.createElement("a",{href:o,target:"_blank"},"On your desktop")),f.createElement("li",null,"In the Grammarly Editor"))},premiumOnboardingSurvey:{firstQuestion:{question:"How has your experience with Grammarly been?",answers:{verySatisfied:"Very satisfying",somewhatSatisfied:"Somewhat satisfying",neutral:"Neither satisfying nor dissatisfying",somewhatDissatisfied:"Somewhat dissatisfying",veryDissatisfied:"Very dissatisfying"}},secondSatisfactionQuestion:{question:"Great! Is there anything in particular that you\u2019ve enjoyed?",answers:{plagiarismChecker:"Plagiarism checker",claritySuggestions:"Clarity suggestions",engagementSuggestions:"Engagement suggestions",toneSuggestions:"Delivery suggestions",usingMultipleDevices:"Using Grammarly Premium across devices"},learnMoreLink:"Learn more"},secondDissatisfactionQuestion:{question:"We\u2019re sorry to hear that. What did you have trouble with?",answers:{lowQualitySuggestions:"Low-quality suggestions",poorPlagiarismSuggestions:"Can\u2019t see plagiarism suggestions",noSupportForDesirableApp:"It doesn\u2019t integrate with an app I use",aggressivePremiumPromotion:"It keeps asking me to upgrade",noPremiumSuggestions:"I can\u2019t access Premium suggestions",premiumAndFreeAreIdentical:"The Premium and Free plans feel identical"}},completion:{enjoyment:{header:"Thank you so much for your feedback.",sub:"We hope you continue enjoying Grammarly!"},badExperience:{lowQuality:"Thanks for letting us know. We are constantly working to improve our suggestions. If you click the flag icon on suggestions that are unhelpful, it helps us understand how we can adjust our algorithms to be more accurate.",noPlagiarism:f.createElement(f.Fragment,null,"The plagiarism checker is turned off by default. To check your document for plagiarism, open a document in the Grammarly Editor and then click the Plagiarism button in the"," ",f.createElement("b",null,"lower right corner"),"."),noSupportForDesirableApp:function(t,n,r,i,o,a){return f.createElement(f.Fragment,null,"We\u2019re working hard to be wherever you write, but there are some applications that we don\u2019t yet support. Still, we may have what you\u2019re looking for. Here are a few different ways to access Grammarly:",Se(e).waysToUseGrammarly(t,n,r,i,o,a))},possibleMultipleAccounts:"We recommend double-checking to make sure you\u2019re logged into your Premium account. Try visiting app.grammarly.com and look for the Premium label in the upper left corner. If you don\u2019t see it, you may have unintentionally created a second free account."}}},gbSatisfactionSurvey:{firstQuestion:{question:"How has your experience with Grammarly been?",answers:{verySatisfied:"Very satisfying",somewhatSatisfied:"Somewhat satisfying",neutral:"Neither satisfying nor dissatisfying",somewhatDissatisfied:"Somewhat dissatisfying",veryDissatisfied:"Very dissatisfying"}},secondSatisfactionQuestion:{question:"Great! Is there anything in particular that you\u2019ve enjoyed?",answers:{admin:{CreatingStrongCompanyBrand:"Creating a strong company brand",SavingTimeWritingAndEditing:"Saving time writing and editing",CentrallyManagingGrammarlyAccount:"Centrally managing team accounts and billing",FeelingConfidentTheTeamWillSoundPolishedAndProfessional:"Feeling confident the team will sound polished and professional",EnablingTeamToCommunicateWithCustomersEffectively:"Enabling the team to communicate effectively",ImprovingTeamsOverallWritingSkills:"Improving the team's overall writing skills",Other:"Other"},teamMember:{SavingTimeWritingAndEditing:"Saving time writing and editing",SoundingFluentInEnglish:"Sounding fluent in English",SoundingMoreProfessionalAndPolished:"Sounding more professional and polished",ImprovingOverallWritingSkills:"Improving overall writing skills",FeelingConfidentWhenCommunicating:"Feeling confident when communicating",CommunicatingWithCustomersEffectively:"Communicating with customers effectively",Other:"Other"}},learnMoreLink:"Learn more"},secondDissatisfactionQuestion:{question:"We\u2019re sorry to hear that. What did you have trouble with?",answers:{admin:{DoesntIntegrateWithAnAppIUse:"It doesn't integrate with an app the team uses",LowQualitySuggestions:"Low-quality suggestions",FeaturesAreMissing:"The features I expected were missing",TechnicalDifficulties:"Technical difficulties",NotSureWhatGrammarlyBusinessDoes:"I'm still not sure what Grammarly Business does",Other:"Other",DidntFindItValuable:"I didn't find it valuable"},teamMember:{DoesntIntegrateWithAnAppIUse:"It doesn't integrate with an app I use",LowQualitySuggestions:"Low-quality suggestions",FeaturesAreMissing:"The features I expected were missing",TechnicalDifficulties:"Technical difficulties",NotSureWhatGrammarlyBusinessDoes:"I'm still not sure what Grammarly Business does",Other:"Other",DidntFindItValuable:"I didn't find it valuable"}}},thirdSatisfactionQuestion:{title:"Thank you.",question:f.createElement(f.Fragment,null,f.createElement("p",null,"We hope you continue enjoying Grammarly!"),f.createElement("p",null,"Is there anything else you'd like to share about your experience?"))},thirdDissatisfactionQuestion:{admin:{DoesntIntegrateWithAnAppIUse:function(t,n,r,i,o,a){return f.createElement(f.Fragment,null,f.createElement("p",null,"We\u2019re working hard to be wherever you write, but there are some applications that we don\u2019t yet support."),f.createElement("p",null,"Still, we may have what you\u2019re looking for. Here are a few different ways to access Grammarly:"),Se(e).waysToUseGrammarly(t,n,r,i,o,a),f.createElement("p",null,"Is there another app you need Grammarly in?"))},LowQualitySuggestions:f.createElement(f.Fragment,null,f.createElement("p",null,"Thanks for letting us know. We are constantly working to improve our suggestions. If you click the flag icon on suggestions that are unhelpful, it helps us understand how we can adjust our algorithms to be more accurate."),f.createElement("p",null,"Is there anything else you'd like to share about your experience?")),FeaturesAreMissing:"Thanks for letting us know. Which features did you expect to see?",TechnicalDifficulties:f.createElement(f.Fragment,null,f.createElement("p",null,"Thanks for letting us know. We're here to help!"),f.createElement("p",null,"Please let our support team know about the difficulties you're having here")),NotSureWhatGrammarlyBusinessDoes:"Thanks for letting us know. Grammarly Business can deliver real-time writing suggestions to help everyone on your team compose mistake-free and on-brand writing. Is there anything you need help with?",Other:"Is there anything in particular you found frustrating or annoying?",DidntFindItValuable:{title:"Is there anything in particular you need help with?",answers:{CreatingAStrongCompanyBrand:"Creating a strong company brand",SavingTimeWritingAndEditing:"Saving time writing and editing",CentrallyManagingGrammarlyAccount:"Centrally managing Grammarly account settings, security, and billing",FeelingConfidentTheTeamWillSoundPolished:"Feeling confident the team will sound polished and professional",EnablingTheTeamToCommunicateWithCustomers:"Enabling the team to communicate with customers effectively",ImprovingTheTeamsOverallWritingSkills:"Improving the team's overall writing skills",Other:"Other"}}},teamMember:{DoesntIntegrateWithAnAppIUse:function(t,n,r,i,o,a){return f.createElement(f.Fragment,null,f.createElement("p",null,"We\u2019re working hard to be wherever you write, but there are some applications that we don\u2019t yet support."),f.createElement("p",null,"Still, we may have what you\u2019re looking for. Here are a few different ways to access Grammarly:"),Se(e).waysToUseGrammarly(t,n,r,i,o,a),f.createElement("p",null,"Is there another app you need Grammarly in?"))},LowQualitySuggestions:f.createElement(f.Fragment,null,f.createElement("p",null,"Thanks for letting us know. We are constantly working to improve our suggestions. If you click the flag icon on suggestions that are unhelpful, it helps us understand how we can adjust our algorithms to be more accurate."),f.createElement("p",null,"Is there anything else you'd like to share about your experience?")),FeaturesAreMissing:"Thanks for letting us know. Which features did you expect to see?",TechnicalDifficulties:f.createElement(f.Fragment,null,"Thanks for letting us know. Can you tell us more about what happened? We'll try to help."),NotSureWhatGrammarlyBusinessDoes:function(t,n,r,i,o,a){return f.createElement(f.Fragment,null,f.createElement("p",null,"Thanks for letting us know. Grammarly helps compose polished, mistake-free writing wherever you write. Here are a few different ways to use Grammarly:"),Se(e).waysToUseGrammarly(t,n,r,i,o,a),f.createElement("p",null,"Is there anything else you'd like to share about your experience?"))},Other:"Is there anything in particular you found frustrating or annoying?",DidntFindItValuable:{title:"Is there anything in particular you need help with?",answers:{SavingTimeWritingAndEditing:"Saving time writing and editing",SoundingFluentInEnglish:"Sounding fluent in English",SoundingMoreProfessionalAndPolished:"Sounding more professional and polished",ImprovingOverallWritingSkills:"Improving overall writing skills",FeelingConfidentWhenCommunicating:"Feeling confident when communicating",CommunicatingWithCustomersEffectively:"Communicating with customers effectively",Other:"Other"}}}},thankYou:"Thank you so much for your feedback."},bulkAccept:{title:function(e){return"Accept ".concat(e," suggestions at once")},appliedTitle:function(e){return"You\u2019ve made ".concat(e," instant corrections")},apply:function(e){return"Accept all ".concat(e)},confirm:"Looks good",undoAll:"Undo all"},premiumSuggestions:"Premium suggestions",gbUpHook:{proTipBadge:"Pro Tip",dontShowAgain:"Don't Show Again",dismiss:"Dismiss",smbSpecificProfessionalism:{title:"Give your business a professional edge",description:"Help your team impress customers with clear, professional, and compelling communication.",cta:"Try Grammarly Business for free"},styleGuides:{title:"A strong business needs consistent writing",description:"Grammarly Business helps your team use a consistent voice and style everywhere they write.",cta:"Create a Grammarly Business style guide for free"}},gbVoxLensUpHook:{title:"Style guide",description:"Grammarly Business helps your whole team consistently match your company\u2019s voice and style. Create a style guide with rules specific to your business.",cta:"Try Grammarly Business for free",maybeLater:"Maybe later"},gbEnableVoxLensHook:{title:"Create a company style guide",description:"Let Grammarly Business deliver customized writing feedback to help your team stay on-brand and in your company's voice.",cta:"Create a style guide",maybeLater:"Maybe later"},gbBillingMigration:{title:"Action required: Update your subscription",description:function(e){return"Your team\u2019s subscription will expire on ".concat(e,". Please add your billing information for uninterrupted access to Grammarly Business.")},cta:"Add Billing Information"},gbRuleCreated:{ruleSaved:"Rule saved successfully",viewStyleGuide:"View style guide"},premiumUngatingRenewalNotification:{title:"Your Grammarly Business subscription is about to renew",message:function(e){return"On ".concat(e,", your free trial of Grammarly Business will end and you'll be charged for a subscription renewal.")},cta:"Manage Your Subscription"},safariExtActivationNotification:{title:"Re-activate Grammarly Today",description:"Due to a recent update, Grammarly for Safari was turned off in your browser. Re-activate it today to enhance your writing across the web!",cta:"Re-activate"},undoCard:{title:"Instantly corrected",confirm:"Looks good",revert:function(e){return f.createElement(f.Fragment,null,"Revert to ",e)}},priorityList:{expand:"More",collapse:"Less",toggleButtonTooltip:function(e){return"".concat(e?"Show":"Hide"," de-prioritized suggestion (less relevant for this text or those you often dismiss)")},hint:"Grammarly de-prioritizes suggestions that are less relevant for this text or those you often dismiss.",successState:{allAlertsHint:"No more relevant suggestions.",outcomesHint:"You\u2019ve addressed the most relevant suggestions.",firstCheckText:"No relevant suggestions."}},synfony:{back:"Back",applyTooltip:"Replace with this word",drilldownTooltip:function(e){return f.createElement(f.Fragment,null,"Explore alternatives related to"," ",f.createElement("b",null,f.createElement("i",null,e)))},onboardingTooltip:"Click the arrow to explore related words"},citation:{essayDetectionCard:{dropdownOptions:{apa:"APA",mla:"MLA",chicago:"Chicago",other:"Other"},examples:{chicago:"(Anderson 2005, 101)",mla:"(Anderson 101)",apa:"(Anderson, 2005)"}},citationStyleChangeNotification:{content:function(e){return"Citation format set to ".concat(e," and domain to Academic")}}},premiumUpHookCard:{title:{weFound:"We found ",premiumIssues:function(e){return"".concat(e," additional writing issue").concat(e>1?"s":"")},forPremium:" only for Premium users.",forPremiumExtended:" available only for Premium users."}},landmark:{sidebar:"Suggestions panel",documentMenu:"Document settings menu"},contentIsLoading:"Content is loading."}}));function Ce(e){return function(t){return("mac"===e||"ios"===e?"\u2318+":"Ctrl+")+t}}!function(e){e.holder=Se,e.getConfig=function(e){return{commandKeyLabel:Ce(e)}},e.Context=f.createContext(Q.Y.invariantContent("PlatformTextResources"))}(ge||(ge={}));var Ae=n(18833),_e=n(70091),He=n(54841),ke=_e.ux.joinClasses([He.oB.base,_e.ux.style({color:Ae.Il.CoreNeutral80,marginBottom:_e.ux.rem(1.5)})]),Pe=_e.ux.joinClasses([He.oB.header3,_e.ux.style({color:Ae.Il.CoreNeutral80,marginTop:_e.ux.rem(1.5)})]),Ne=_e.ux.joinClasses([He.oB.base,_e.ux.style({color:Ae.Il.CoreNeutral60,width:_e.ux.rem(12.8125),height:_e.ux.rem(2.625)})]),Te=_e.ux.joinClasses([He.oB.header4,_e.ux.style({color:Ae.Il.CoreNeutral80})]),Re={marginTop:_e.ux.rem(1.5),width:_e.ux.percent(50),height:_e.ux.rem(5)},Be={borderTop:"1px solid ".concat(Ae.Il.CoreNeutral30)},De=_e.ux.stylesheet({allFeaturesContainer:[{display:"flex",flexWrap:"wrap"}],featureTitleContainer:[{display:"flex",alignItems:"center"}],feature:[Re],bodyContainer:[Be]}),Fe=function(e){var t=e.feature;return f.createElement("div",{className:De.feature},f.createElement("div",{className:De.featureTitleContainer},t.icon,f.createElement("h4",{className:Te},t.title)),f.createElement("div",{className:Ne},t.description))},Ie=function(){var e=f.useContext(ge.Context).SignOutModal.step1;return f.createElement("div",null,f.createElement("div",{className:ke},e.information),f.createElement("div",{className:De.bodyContainer},f.createElement("h3",{className:Pe},e.noAccessText),f.createElement("div",{className:De.allFeaturesContainer},e.features.map((function(e){return f.createElement(Fe,{feature:e,key:e.title})})))))},xe=n(86426),Oe=n(24206),Le=n(29388),je=n(80335),ze=n(56954),Qe=n(18217),Ge=n(45385),We=n(92270);function Ue(e){return Boolean(e)?function(t){return"".concat(e,"/").concat(t)}:re.identity}function Xe(e){var t=f.useContext(ze.f.Context).name;return void 0===e?e:"string"===typeof e?Ue(t)(e):e.view(Ue(t))}var Je,Ke=function(e){return f.createElement(We.Z,(0,Le.__assign)({},Ze(e),(0,je.ak)({value:e.value})))},Ye=function(e){return f.createElement(Ke,(0,Le.__assign)({},e,(0,je.Sh)($e.textArea,e.className),{nodeType:"textarea"}))},Ze=function(e){return(0,Le.__assign)({"data-name":Xe(e.name),"data-block-extension":e.blockExtension,mount:(t=e.autofocus,!0===t?function(e){return e&&requestAnimationFrame((function(){return e.focus()}))}:void 0),styleType:We.Z.Type.P1,nodeType:e.nodeType,placeholder:e.placeholder,onFocus:e.onFocus,onBlur:e.onBlur,onKeyPress:e.onKeyPress},(0,je.Sh)($e.inputField,e.className));var t},Ve={width:_e.ux.percent(100),outline:"none",border:"1px solid ".concat(Qe.xO),borderRadius:_e.ux.rem(Ge.fx),background:Ae.Il.CoreNeutral0,$nest:{"&::placeholder":{color:Qe.FW,opacity:1},"&:focus":{borderColor:Ae.Il.CoreBlue50}}},$e=_e.ux.stylesheet({inputField:[Ve],textArea:[{resize:"none"}]}),qe=n(90384),et=_e.ux.joinClasses([We.Z.style.base,_e.ux.style({color:Ae.Il.CoreNeutral80,marginBottom:_e.ux.rem(1.5)})]),tt=_e.ux.joinClasses([We.Z.style.base,_e.ux.style({height:_e.ux.rem(1.5)})]),nt=_e.ux.style({marginTop:_e.ux.rem(1),height:_e.ux.rem(6)}),rt=n(79978),it=function(){return f.createElement("svg",{className:Mt.svg2,viewBox:"0 0 12 9",width:"12",height:"9",xmlns:"http://www.w3.org/2000/svg"},f.createElement("path",{d:"M1.386 4.115L4.561 7.29l5.81-5.81",stroke:"#FFF",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round"}))},ot=function(e){var t=e.checked,n=e.className,r=e.children,i=e.name;return f.createElement(at,{checked:t,name:i,className:n,checkedComponent:function(e){return f.createElement("div",{key:e?"checkbox1":"checkbox2",className:e?Mt.rectangleFilledBlue:Mt.rectangle},e&&f.createElement(it,null))}},r)},at=function(e){var t=e.checked,n=e.checkedComponent,r=e.className,i=e.children,o=e.name;return f.createElement(rt.F.label,(0,Le.__assign)({},(0,je.Sh)(Mt.wrapper,r),{onClick:function(e){return e.stopPropagation()}},o?{"data-name":"".concat(o,"-checkbox")}:{}),f.createElement(rt.F.input,{type:"checkbox",checked:t,onChange:function(e){return t.modify((function(e){return!e}))},className:Mt.inputCheckbox}),t.view(n),f.createElement("div",null,i))},st={display:"flex",marginRight:_e.ux.rem(.5),paddingTop:_e.ux.rem(.18),width:_e.ux.rem(1),height:_e.ux.rem(1),border:"2px solid ".concat(Ae.Il.CoreNeutral30),borderRadius:_e.ux.rem(Ge.mA),backgroundColor:"transparent",alignItems:"center"},ut={paddingTop:_e.ux.rem(.1),borderColor:Ae.Il.CoreBlue50,borderRadius:_e.ux.rem(Ge.mA),backgroundColor:Ae.Il.CoreBlue50},ct={width:_e.ux.percent(100),height:_e.ux.percent(100)},Mt=_e.ux.stylesheet({wrapper:[{display:"flex",cursor:"default",alignItems:"center",userSelect:"none"}],rectangle:[st],rectangleFilledBlue:[st,ut],inputCheckbox:[{margin:0,"-webkit-appearance":"none",appearance:"none"}],svg:[ct],svg2:[{margin:"auto"}]}),mt=function(e){var t=e.option,n=e.onOptionChange,r=X.h.create(!1);return qe.P.useSubscriptionTo(r.pipe(Y.bw(n))),f.createElement("div",null,f.createElement(ot,{className:tt,checked:r,name:t.id.toString()},f.createElement("div",null,t.text)))},lt=function(e){var t=e.onSurveyChange,n=e.onTextBoxValueChange,r=f.useContext(ge.Context).SignOutModal.step2,i=(0,xe.pipe)(r.options),o=X.h.create("");qe.P.useSubscriptionTo(o.pipe(Y.bw(n)));var a=new Oe.xQ;return qe.P.useSubscriptionTo(a.pipe(Y.Rp((function(e,t){var n=(0,q.Z)(t,2),r=n[0],i=n[1];return r?e.add(i):e.delete(i),e}),new Set),Y.bw(t))),f.createElement("div",null,f.createElement("div",{className:et},r.information),f.createElement("div",null,i.map((function(e){return f.createElement(mt,{onOptionChange:function(t){return a.next([t,e.text])},option:e,key:e.id})})),f.createElement(Ye,{placeholder:"Something else?",className:nt,value:o})))},dt=n(30097),ht=n(9272),ft=function(){var e=Object.create({getItem:function(e){return null},setItem:function(e,t){return K.Q1},removeItem:function(e){return null}});try{return Boolean(window.localStorage)?window.localStorage:e}catch(t){return e}}();!function(e){e.fromLocalStorage=function(e){return{getItem:function(t){return J.fromNullable(e.getItem(t))},setItem:function(t,n){return e.setItem(t,n)},safeRemoveItem:function(t){try{e.removeItem(t)}catch(n){}},getKeys:function(){return Object.keys(e)},removeItem:function(t){return e.removeItem(t)}}}}(Je||(Je={}));var pt=(0,u.Z)((function e(t,n,r){var i=this;(0,s.Z)(this,e),this.modal=t,this.onSignOut=n,this.gnar=r,this.selectedOptions=new Set,this.otherReasonText="",this.textResources=(0,ht.z)(ge.getConfig("windows"),ge.holder),this.cancelSignOut=function(){(0,N.Or)(i.gnar.track.cancelSignOutButtonClick(document.location.href,S.tq)),i.modal.close()},this.signOut=function(){(0,N.Or)(i.gnar.track.signOutButtonClick(document.location.href,S.tq)),i.selectedOptions.size>0&&(0,N.Or)(i.gnar.track.signOutSurveyResponse(document.location.href,S.tq,"",Array.from(i.selectedOptions))),Boolean(i.otherReasonText)&&(0,N.Or)(i.gnar.track.signOutSurveyResponse(document.location.href,S.tq,i.otherReasonText)),i.onSignOut()},this.openSignOutModal=function(e){(0,N.Or)(i.gnar.track.signOutModalOpen(document.location.href,S.tq)),i.modal.open({title:"Sign out of Grammarly Business?",content:(0,B.jsx)(ge.Context.Provider,{value:i.textResources,children:(0,B.jsx)(Ie,{})}),footer:{buttons:[{name:"close",visualStyleType:"Ghost",children:"Cancel",onClick:i.cancelSignOut},(0,B.jsx)(dt.v.Primary,{name:"signOut",onClick:e,children:(0,B.jsx)("span",{"data-qa":"signOut",children:"Yes, sign out"})})]}})},this.onSurveyChangeHandler=function(e){i.selectedOptions=e},this.onTextBoxChangeHandler=function(e){i.otherReasonText=e},this.openSurveyModal=function(){ft.setItem("hasSeenSignOutSurvey","true"),(0,N.Or)(i.gnar.track.signOutSurveyOpen(document.location.href,S.tq));var e=(0,ht.z)(ge.getConfig("windows"),ge.holder);i.modal.open({title:"Before you sign out, could you tell us why?",content:(0,B.jsx)(ge.Context.Provider,{value:e,children:(0,B.jsx)(lt,{onSurveyChange:i.onSurveyChangeHandler,onTextBoxValueChange:i.onTextBoxChangeHandler})}),footer:{buttons:[{name:"close",visualStyleType:"Ghost",children:"Cancel",onClick:i.cancelSignOut},(0,B.jsx)(dt.v.Primary,{name:"signOut",onClick:i.signOut,children:(0,B.jsx)("span",{"data-qa":"surveySignOut",children:"Sign out now"})})]}})}})),yt=n(66578),gt="sign_out_container__73DjW",Et=function(e){var t=e.logout,n=(0,w.kw)(),r=(0,w.l8)(),i=(0,w.ph)();return(0,B.jsxs)("button",{type:"button",onClick:function(){!function(e,t,n,r){if(r){var i=new pt(e,t,n);"true"===ft.getItem("hasSeenSignOutSurvey")?i.openSignOutModal((function(){(0,N.Or)(n.track.signOutButtonClick(document.location.href,S.tq)),t()})):i.openSignOutModal((function(){i.openSurveyModal()}))}else t()}(n,t,r,i.isBusinessUser)},className:b()(R.Z.item,(0,j.Z)({},gt,!S.tq)),children:[(0,B.jsx)(yt.cb,{className:R.Z.itemIcon}),(0,B.jsx)(z.XY,{"data-qa":"logout",className:R.Z.itemLabel,children:"Sign Out"})]})},vt=n(85450),bt=n(24245),wt=n(64487),St=S.tq?bt.Z:wt.Z,Ct=function(e){(0,M.Z)(n,e);var t=(0,m.Z)(n);function n(){var e;(0,s.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a1?(r="*",i=t.toString()):r=t.toString():"string"===typeof t&&t.length>0?r=t:"string"===typeof n&&n.length>0&&(r="*",i=n);e["merchant-id"]=r,e["data-merchant-id"]=i}(e);var n=Object.keys(e).filter((function(t){return"undefined"!==typeof e[t]&&null!==e[t]&&""!==e[t]})).reduce((function(t,n){var r=e[n].toString();return"data-"===n.substring(0,5)?t.dataAttributes[n]=r:t.queryParams[n]=r,t}),{queryParams:{},dataAttributes:{}}),r=n.queryParams,i=n.dataAttributes;return{url:"".concat(t,"?").concat(w(r)),dataAttributes:i}}function w(e){var t="";return Object.keys(e).forEach((function(n){0!==t.length&&(t+="&"),t+=n+"="+e[n]})),t}function S(e,t){void 0===t&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach((function(e){n.setAttribute(e,t[e]),"data-csp-nonce"===e&&n.setAttribute("nonce",t["data-csp-nonce"])})),n}function C(e,t){if(void 0===t&&(t=A()),H(e,t),"undefined"===typeof window)return t.resolve(null);var n=b(e),r=n.url,i=n.dataAttributes,o=i["data-namespace"]||"paypal",a=_(o);return function(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(null===n)return null;var r=S(e,t),i=n.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(r.dataset).length)return null;var o=!0;return Object.keys(i.dataset).forEach((function(e){i.dataset[e]!==r.dataset[e]&&(o=!1)})),o?n:null}(r,i)&&a?t.resolve(a):function(e,t){void 0===t&&(t=A());H(e,t);var n=e.url,r=e.attributes;if("string"!==typeof n||0===n.length)throw new Error("Invalid url.");if("undefined"!==typeof r&&"object"!==typeof r)throw new Error("Expected attributes to be an object.");return new t((function(e,t){if("undefined"===typeof window)return e();!function(e){var t=e.url,n=e.attributes,r=e.onSuccess,i=e.onError,o=S(t,n);o.onerror=i,o.onload=r,document.head.insertBefore(o,document.head.firstElementChild)}({url:n,attributes:r,onSuccess:function(){return e()},onError:function(){var e=new Error('The script "'.concat(n,'" failed to load.'));return window.fetch?fetch(n).then((function(n){return 200===n.status&&t(e),n.text()})).then((function(e){var n=function(e){var t=e.split("/* Original Error:")[1];return t?t.replace(/\n/g,"").replace("*/","").trim():e}(e);t(new Error(n))})).catch((function(e){t(e)})):t(e)}})}))}({url:r,attributes:i},t).then((function(){var e=_(o);if(e)return e;throw new Error("The window.".concat(o," global variable is not available."))}))}function A(){if("undefined"===typeof Promise)throw new Error("Promise is undefined. To resolve the issue, use a Promise polyfill.");return Promise}function _(e){return window[e]}function H(e,t){if("object"!==typeof e||null===e)throw new Error("Expected an options object.");if("undefined"!==typeof t&&"function"!==typeof t)throw new Error("Expected PromisePonyfill to be a function.")}var k,P,N,T,R,B,D,F,I,x,O,L,j;function z(e){var t="Your payment is currently being processed. Payment issues may occur if you leave or reload this page until the processing is complete.";return e.returnValue=t,t}!function(e){e.braintree="braintree",e.paypal="paypal",e.unknown="unknown"}(O||(O={})),function(e){e.number="number",e.cvv="cvv",e.expirationDate="expirationDate"}(L||(L={})),function(e){e[e.UNMOUNTED=0]="UNMOUNTED",e[e.MOUNTING=1]="MOUNTING",e[e.READY=2]="READY",e[e.LOADING=3]="LOADING",e[e.ERROR=4]="ERROR"}(j||(j={}));var Q=(k=function(){function e(t,n){var r,o=this;(0,i.Z)(this,e),this.subscriptionApi=t,this.disabledPaymentMethods=n,this.hostedFieldsInstance=g.Wx.none(),this.paypalCheckoutInstance=g.Wx.none(),this.settings=void 0,this.subscribes=[],this.paypalCancelSubscribes=[],this.paypalSandbox=!1,this.submitNotAllowedReason=void 0,this.log=(0,l.jl)("braintree"),this.tokenReceivedAt=void 0,(0,p.Z)(this,"currentProcessor",P,this),(0,p.Z)(this,"payload",N,this),(0,p.Z)(this,"cardError",T,this),(0,p.Z)(this,"paypalError",R,this),(0,p.Z)(this,"cardStatus",B,this),(0,p.Z)(this,"paypalStatus",D,this),(0,p.Z)(this,"submitAllowed",F,this),(0,p.Z)(this,"hasSubmitted",I,this),(0,p.Z)(this,"sessionId",x,this),this.fieldErrors=(0,v.observable)((r={},(0,f.Z)(r,L.number,void 0),(0,f.Z)(r,L.expirationDate,void 0),(0,f.Z)(r,L.cvv,void 0),r)),this.getFieldErrors=function(e){return o.fieldErrors[e]}}return(0,o.Z)(e,[{key:"disabledCards",get:function(){return this.disabledPaymentMethods.map((function(e){return e.cardType.flatMap((function(e){return e.toOption()}))})).filter((function(e){return e.nonEmpty()})).map((function(e){return e.get()}))}},{key:"maybeSetCardTypeError",value:function(e){if(0!==e.cards.length){var t=e.cards[0].type;1===e.cards.length&&this.disabledCards.includes(t)&&(this.fieldErrors.number="".concat("Sorry, we can\u2019t accept ").concat(e.cards[0].niceType))}}},{key:"subscribeCardSubmitAttempt",value:function(e){var t=this;this.subscribes.push((0,v.reaction)((function(){return t.hasSubmitted}),(function(t){return t&&e()})))}},{key:"subscribeSubmit",value:function(e){var t=this;this.subscribes.push((0,v.reaction)((function(){return t.cardStatus}),(function(n){return n===j.LOADING&&(t.submitAllowed?e(O.braintree,!0):e(O.braintree,!1,t.submitNotAllowedReason))}),{fireImmediately:!0}),(0,v.reaction)((function(){return t.paypalStatus}),(function(n){return n===j.LOADING&&(t.submitAllowed?e(O.paypal,!0):e(O.paypal,!1,t.submitNotAllowedReason))}),{fireImmediately:!0}))}},{key:"subscribeProcessorRejection",value:function(e){var t=this;this.subscribes.push((0,v.reaction)((function(){return t.cardError}),(function(n){return n&&t.cardStatus===j.READY&&e(O.braintree,JSON.stringify(n))}),{fireImmediately:!0}),(0,v.reaction)((function(){return t.paypalError}),(function(n){return n&&t.paypalStatus===j.READY&&e(O.paypal,JSON.stringify(n))}),{fireImmediately:!0}))}},{key:"subscribePaypalCancel",value:function(e){this.paypalCancelSubscribes.push(e)}},{key:"setPaypalSandbox",value:function(e){this.paypalSandbox=e}},{key:"subscribePayload",value:function(e){var t=this;this.subscribes.push((0,v.reaction)((function(){return t.payload}),function(){var n=(0,r.Z)(c().mark((function n(r){var i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.currentProcessor,n.prev=1,r){n.next=4;break}throw new Error("payload is empty");case 4:return window.onbeforeunload=z,n.next=7,e(r,i);case 7:n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),t.log.error("Unexpected error while submitting nonce to server",n.t0);case 12:return n.prev=12,i===O.braintree?t.cardStatus=j.READY:t.paypalStatus=j.READY,window.onbeforeunload=null,n.finish(12);case 16:case"end":return n.stop()}}),n,null,[[1,9,12,16]])})));return function(e){return n.apply(this,arguments)}}(),{fireImmediately:!1}))}},{key:"isCardNotMounted",get:function(){return this.cardStatus===j.MOUNTING||this.cardStatus===j.UNMOUNTED}},{key:"isCardLoading",get:function(){return this.cardStatus===j.LOADING}},{key:"teardown",value:function(){var e=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.subscribes.forEach((function(e){return e()})),this.subscribes=[],this.paypalCancelSubscribes=[],this.submitAllowed=!0,this.paypalSandbox=!1,this.cleanFieldErrors(),e.prev=6,this.cardStatus===j.UNMOUNTED){e.next=11;break}return e.next=10,this.hostedFieldsInstance.map((function(e){return e.teardown()})).getOrElse(Promise.resolve());case 10:this.cardStatus=j.UNMOUNTED;case 11:e.next=17;break;case 13:e.prev=13,e.t0=e.catch(6),this.log.error("error occurred during teardown",e.t0),this.setCardError(e.t0,!0);case 17:if(e.prev=17,this.paypalStatus===j.UNMOUNTED){e.next=22;break}return e.next=21,this.paypalCheckoutInstance.map((function(e){return e.teardown()})).getOrElse(Promise.resolve());case 21:this.paypalStatus=j.UNMOUNTED;case 22:e.next=28;break;case 24:e.prev=24,e.t1=e.catch(17),this.log.error("error occurred during teardown",e.t1),this.setPaypalError(e.t1,!0);case 28:case"end":return e.stop()}}),e,this,[[6,13],[17,24]])})));return function(){return e.apply(this,arguments)}}()},{key:"cleanFieldErrors",value:function(){var e=this;Object.keys(this.fieldErrors).forEach((function(t){return e.fieldErrors[t]=void 0}))}},{key:"setSubmitAllowed",value:function(){this.submitAllowed=!0}},{key:"setSubmitNotAllowed",value:function(e){this.submitAllowed=!1,this.submitNotAllowedReason=e,this.paypalStatus=j.READY}},{key:"create",value:function(){var e=(0,r.Z)(c().mark((function e(t){var n,r,i,o=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.settings=t,this.paypalStatus=j.MOUNTING,this.cardStatus=j.MOUNTING,this.subscribes.push((0,v.reaction)((function(){return o.cardStatus}),(function(e){return e===j.ERROR&&o.logError(O.braintree)})),(0,v.reaction)((function(){return o.paypalStatus}),(function(e){return e===j.ERROR&&o.logError(O.paypal)}))),e.next=7,this.subscriptionApi.generateClientToken();case 7:return n=e.sent,r=n.token,this.tokenReceivedAt=new Date,e.next=12,E.client.create({authorization:r});case 12:return i=e.sent,e.next=15,Promise.all([this.setupHostedFields(i),this.setupPaypalCheckout(i)]);case 15:e.next=22;break;case 17:e.prev=17,e.t0=e.catch(0),this.log.error("error occurred during initial create for both processors",e.t0),this.setCardError(e.t0,!0),this.setPaypalError(e.t0,!0);case 22:case"end":return e.stop()}}),e,this,[[0,17]])})));return function(t){return e.apply(this,arguments)}}()},{key:"setupHostedFields",value:function(){var e=(0,r.Z)(c().mark((function e(t){var n,r=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E.hostedFields.create({client:t,fields:this.settings.fields,styles:this.settings.styles});case 3:n=e.sent,this.hostedFieldsInstance=g.Wx.of(n),e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(0),this.log.error("error occurred during setup hosted fields",e.t0),e.abrupt("return",this.setCardError(e.t0,!0));case 11:this.cardStatus=j.READY,n.on("inputSubmitRequest",(function(){return r.tokenizeCard()})),n.on("cardTypeChange",(function(e){return r.maybeSetCardTypeError(e)})),n.on("focus",(function(e){r.hasSubmitted||(r.fieldErrors[e.emittedBy]=void 0),r.hasSubmitted=!1}));case 15:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"setupPaypalCheckout",value:function(){var e=(0,r.Z)(c().mark((function e(t){var r,i,o=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E.paypalCheckout.create({client:t});case 3:return r=e.sent,e.t0=C,e.next=7,r.getClientId();case 7:return e.t1=e.sent,e.t2=null===(i=Grammarly)||void 0===i?void 0:i.cspNonce,e.t3={"client-id":e.t1,vault:!0,"data-csp-nonce":e.t2},e.next=12,(0,e.t0)(e.t3);case 12:this.paypalCheckoutInstance=g.Wx.of(r),e.next=19;break;case 15:return e.prev=15,e.t4=e.catch(0),this.log.error("error occurred during setup paypal checkout",e.t4),e.abrupt("return",this.setPaypalError(e.t4,!0));case 19:if(document.getElementById(this.settings.paypalButtonId)){e.next=22;break}return this.log.error("error occurred during setup paypal checkout: element #".concat(this.settings.paypalButtonId," is not present in the document")),e.abrupt("return");case 22:return e.next=24,n.e(8858).then(n.t.bind(n,48858,23)).then((function(e){return e.Button.render({env:o.paypalSandbox?"sandbox":"production",style:{label:"checkout",size:"medium",shape:"rect",color:"gold"},validate:function(e){o.subscribes.push((0,v.reaction)((function(){return o.submitAllowed}),(function(t){return t?e.enable():e.disable()}),{fireImmediately:!0}))},onClick:function(){o.paypalStatus=j.LOADING,o.currentProcessor=O.paypal},payment:function(){return r.createPayment({flow:"vault"})},onAuthorize:function(e){return r.tokenizePayment(e).then((function(e){return o.payload=e,new Promise((function(e){var t=(0,v.reaction)((function(){return o.paypalStatus}),(function(n){n===j.READY&&(t(),e())}),{fireImmediately:!1})}))}))},onCancel:function(){o.paypalStatus=j.READY,o.paypalCancelSubscribes.forEach((function(e){return e()}))},onError:function(e){o.paypalStatus=j.READY,o.setPaypalError(e),o.log.error("Braintree paypal checkout component error",e)}},"#".concat(o.settings.paypalButtonId)).then((function(){return o.paypalStatus=j.READY}))}));case 24:case"end":return e.stop()}}),e,this,[[0,15]])})));return function(t){return e.apply(this,arguments)}}()},{key:"tokenizeCard",value:function(){var e=(0,r.Z)(c().mark((function e(){var t,n,r,i,o=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasSubmitted=!0,this.cardStatus===j.READY){e.next=3;break}return e.abrupt("return");case 3:if(t=this.hostedFieldsInstance.map((function(e){return e.getState()})).getOrElse({}),n=Object.keys(t.fields).reduce((function(e,n){return t.fields[n].isValid?(o.fieldErrors[n]=void 0,e):(o.log.error("Braintree field error",{field:n}),o.fieldErrors[n]="Invalid",[n].concat((0,h.Z)(e)))}),[]),this.maybeSetCardTypeError(t),r=Object.entries(this.fieldErrors).some((function(e){var t=(0,d.Z)(e,2);t[0];return!!t[1]})),this.cardStatus=j.LOADING,!n.length&&this.submitAllowed&&!r){e.next=11;break}return this.cardStatus=j.READY,e.abrupt("return");case 11:if(!this.hostedFieldsInstance.isEmpty()){e.next=13;break}return e.abrupt("return");case 13:return e.prev=13,e.next=16,this.hostedFieldsInstance.get().tokenize({vault:!0});case 16:i=e.sent,this.currentProcessor=O.braintree,this.payload=i,e.next=25;break;case 21:switch(e.prev=21,e.t0=e.catch(13),this.cardStatus=j.READY,e.t0.code){case"HOSTED_FIELDS_FIELDS_EMPTY":case"HOSTED_FIELDS_FIELDS_INVALID":case"HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE":case"HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED":case"HOSTED_FIELDS_FAILED_TOKENIZATION":case"HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR":default:this.setCardError(e.t0)}case 25:case"end":return e.stop()}}),e,this,[[13,21]])})));return function(){return e.apply(this,arguments)}}()},{key:"setCardError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cardError=e,this.log.error("Braintree card error",e),t&&(this.cardStatus=j.ERROR)}},{key:"setPaypalError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.paypalError=e,t&&(this.paypalStatus=j.ERROR)}},{key:"logError",value:function(t){var n=t===O.braintree?this.cardError:this.paypalError,r=t===O.braintree?"hostedFields":"paypalCheckout";this.log.error("Braintree ".concat(r," non-recoverable error"),{error:n,tokenMetrics:this.tokenReceivedAt?e.getMetrics(this.tokenReceivedAt):null})}}],[{key:"getMetrics",value:function(e){return{receivedAt:e,lifespanInSeconds:Math.round(((new Date).getTime()-e.getTime())/1e3)}}}]),e}(),P=(0,y.Z)(k.prototype,"currentProcessor",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,y.Z)(k.prototype,"payload",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,y.Z)(k.prototype,"cardError",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,y.Z)(k.prototype,"paypalError",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,y.Z)(k.prototype,"cardStatus",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return j.UNMOUNTED}}),D=(0,y.Z)(k.prototype,"paypalStatus",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return j.UNMOUNTED}}),F=(0,y.Z)(k.prototype,"submitAllowed",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),I=(0,y.Z)(k.prototype,"hasSubmitted",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,y.Z)(k.prototype,"sessionId",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,y.Z)(k.prototype,"isCardNotMounted",[v.computed],Object.getOwnPropertyDescriptor(k.prototype,"isCardNotMounted"),k.prototype),(0,y.Z)(k.prototype,"isCardLoading",[v.computed],Object.getOwnPropertyDescriptor(k.prototype,"isCardLoading"),k.prototype),(0,y.Z)(k.prototype,"teardown",[v.action],Object.getOwnPropertyDescriptor(k.prototype,"teardown"),k.prototype),(0,y.Z)(k.prototype,"cleanFieldErrors",[v.action],Object.getOwnPropertyDescriptor(k.prototype,"cleanFieldErrors"),k.prototype),(0,y.Z)(k.prototype,"setSubmitAllowed",[v.action],Object.getOwnPropertyDescriptor(k.prototype,"setSubmitAllowed"),k.prototype),(0,y.Z)(k.prototype,"setSubmitNotAllowed",[v.action],Object.getOwnPropertyDescriptor(k.prototype,"setSubmitNotAllowed"),k.prototype),(0,y.Z)(k.prototype,"create",[v.action],Object.getOwnPropertyDescriptor(k.prototype,"create"),k.prototype),(0,y.Z)(k.prototype,"setupHostedFields",[v.action],Object.getOwnPropertyDescriptor(k.prototype,"setupHostedFields"),k.prototype),(0,y.Z)(k.prototype,"tokenizeCard",[v.action],Object.getOwnPropertyDescriptor(k.prototype,"tokenizeCard"),k.prototype),k),G=n(18489),W=n(62436),U=n(68279),X=n(43568),J=n(81694),K=n.n(J),Y=n(54156),Z=n(79900),V=n(4528),$=n(25684),q=n(32938),ee="billing_address_dropdownContainer__cN6I6",te="billing_address_label__nrmkj",ne="billing_address_error__kvDOJ",re=n(80184),ie=(0,m.observer)((function(e){var t=e.className,n=(0,W.usePaymentCountryCode)(),r=n.countryCode,i=n.countryOptions,o=n.onChange,a=M.useMemo((function(){return i.filter((function(e){return!e.disabled}))}),[i]);return(0,re.jsxs)("label",{className:K()(t,ee),children:[(0,re.jsx)(q.XY,{className:te,children:"Country"}),(0,re.jsx)($.C,{name:"billing.address.country",ariaLabelledBy:"billing.address.country",options:a,handleChange:function(e){return o(e)},initialValue:r,theme:"payment",allowSearch:!0,menuPortalTarget:window.document.body}),(0,re.jsx)("div",{className:ne})]})})),oe=n(40726),ae=Y.tq?{gray60:"#E4E6F2",zipCode:"postal_code_m_zipCode__BKhZk"}:{gray60:"#E4E6F2",zipCode:"postal_code_d_zipCode__xqnQn"},se=(0,m.observer)((function(){var e=(0,W.usePaymentPostalCode)(),t=e.postalCode,n=e.label,r=e.placeholder,i=e.isDisabled,o=e.error,a=e.onChange;return(0,re.jsx)(oe.I,{value:t,className:ae.zipCode,labelElement:n,placeholder:r,disabled:i,error:o,handleChange:a,"data-qa":"postal-code"})})),ue=(0,m.observer)((function(e){var t=e.className,n=(0,W.usePaymentRegionCode)(),r=n.shouldShowRegionCode,i=n.regionCode,o=n.regionOptions,a=n.label,s=n.error,u=n.onChange;return r?(0,re.jsxs)("label",{className:K()(t,ee),children:[(0,re.jsx)(q.XY,{className:te,children:a}),(0,re.jsx)($.C,{name:"billing.address.".concat(a),ariaLabelledBy:"billing.address.".concat(a),initialValue:i,options:o.slice(1),handleChange:u,theme:"payment",allowSearch:!0,placeholder:"Select",menuPortalTarget:window.document.body}),(0,re.jsx)("div",{className:ne,children:s})]}):null})),ce={gray60:"#E4E6F2",neutral50:"#6D758D",gray50:"#C6CBDE",deprecated_red10:"#F23452",form:"credit_card_d_form__5EP4J",formHide:"credit_card_d_formHide__+jl8P",card:"credit_card_d_card__BuAQU",button:"credit_card_d_button__MnkG5",field:"credit_card_d_field__OMZBZ",creditCardLabel:"credit_card_d_creditCardLabel__AlP35",creditCardIcons:"credit_card_d_creditCardIcons__zPrxF",fieldLabel:"credit_card_d_fieldLabel__VHq7I",fieldInput:"credit_card_d_fieldInput__uyo5D",fieldError:"credit_card_d_fieldError__fSMMP",tooltip:"credit_card_d_tooltip__ktMRg",tooltipContent:"credit_card_d_tooltipContent__mBu5c",cvv:"credit_card_d_cvv__ilMeA",tooltipCvv:"credit_card_d_tooltipCvv__aYFL0",tooltipCard:"credit_card_d_tooltipCard__GAE7j",number:"credit_card_d_number__uieet",expirationDate:"credit_card_d_expirationDate__2bDPS",expirationDateLong:"credit_card_d_expirationDateLong__rue2w"},Me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAADeCAMAAACqsi1vAAAAulBMVEVHcEzAzdKftsUcPInKpqa6y9GvuL/E09fuVUTAzNXF09ixwcvnUUYcRY9riJylu8oZTpW/ytAZWZ2rwM4ZZaQCvd8Xb6ubscMGttoWebIUg7g+YptdYWgJr9XC0NXM2+IMqNETi74RksMOos0uVpJ0eH8OnMqUrL11kaQPmMaIjpNSeaWqs7jlWlCNprh+mKyGn7EvRG1oi6+Yn6Q7OTlLZYJ/nbrNuLrWk5Hgb2jbgHzRpaVAjrQVmMUOsqqKAAAACnRSTlMAc///QVW7wQ+cHjvEkAAAFlBJREFUeNrsmgtzm0gSx32ktlwRUTDGySSHgncdeZU1CLkwpZfrvv/Xuu559jxAQjG6za0aJBDCD378/z09M1xdXeKY+O39dTG5hI70+v1vFM/1ZHJ/oeLEtUb0/gIjEKCY9xc+B+Jf3F8XDt2BLksvGHqS9UVAByV0yUC98f7q+gKhrym7vrrUh71RXF0Y9McF0AXQBdC4gD7+OH6xYvVjJeNZRv1ci1jIYAsmI/pl4+rj0LBAaUqHIUXsnwBICOmjwSMAPeNi86kVnoWkw/4ZCqJWW/0wLjN8nql+tIB+VT7DAHnpSCF6XnkOq7WAFpyPFNEv93Z1egLSBtN8SAKq3Qz0f2ExZmLB5N23vSIPa9s4DVSCC48M1yyGNdMrLpl4JVmWxHiGONGLiL/kItdQsNHfLEDe35Y3nluEUSy+Hqzrg0tGBhm++kKdBds46QoOPdLAehhVYqfSn/BjJb6shp4iL7EbkOLjcNFwmCUcox0tHxpCRPJNsBH4ErUgUpdSpOkIESVKpJRTRd7fNKqDgJhZJSORae1GW/7Hmg+/XnX9WcbKvGSaksUITmFNvsoET1868CVGWWtMBExSBSyhJe/tsVNPcQA5bteqoQJyxGOlHqmexLhrnc/n68QBoyNaNzWHGWLEynleQtQkH5ms5Nks0A6w6OCRzlNYIEk7f1eitXTjl3yWuRIHT5bBRc7LCITUNGW5bsoG9mGviRZ47XBwLT7XSV2CWtYLOKUsV5EAVNbYPMAhfK3gB/JmgZuSrUCZ60j8TFQ3fGPffWETRi6mio49pdKMenOQ0JB0mNKhJSHjL9N6JRnJz4s8h39+AVsANc9RTmg6uFCQVg4s5k3UwA5cX4OHyxUSnaNqENAcLRat4W2erxv8+bxp4GizgkPwqxv8FUCPb+i1RRX5L1nFrHt+6JSIVCWegoh+DRNmNq4mE0dCmaWfDP71ugSPASAgkMM+kMELA27zFcho3izKfMXqRcRAX3BYnLE2FmsgGSETeM/XICrY1DVuxX7ZgOrge1QQcwRCbybzvNF1CqOk/BwUaMeItVgfHd0maUQJigAEwUBJeJ/hmhEOmgQUVGf4GWyyTkCiXEECUKkAlTXcFQOoxBesCJazA+eBgxd8ky8C6Yh1lAT9p5BjIQX1ErLtFcmSzkJEJAQU4Krn87o2gLiCmvUanYefGVdDjisKC91XUgWVNbdYueZWRIuVEapp1TQrMBb8DKY2OKfuzLbMTTys5xR9qArkoES3TERlITohBcmy2HIY3N6E5ZyKAoQpBYxXK0DJGm8/JhJ+/QZQBPKbo3ZK7lP0E/4gAgIJ4f4CExloS27If+w3TyT9so4WTFYOFVWRm6STYI6OIi/7JF72SbzyEKQUJfI9ivhGvNA3KD/c5W8LOBCJbm2EnmL89+q+LnwNfR6kzff4/wPdPdyvyUbfenm9zNTFjCZgXTUHTnGVZQEKdnxCypFn6C4TLaAJpTg7IkgtHSwXdVnNuHRkOe3VMW7uYE6Xyb4I5p3it//RcQqinf8+BWWOuUwPI81wjXt4EUbBnphcFuuFun3BbhkLt1EuQOb1N0NuU78kXEknlscClWriF4ickoWIA0nFvqAkO/SZ3SNLbEpZFybSMHiXzeiVeeCqUB+cOfkn1PD310FdxXhi+NgCchWUUjb6QBxWEBn4yLzuKum0JuYOBXTD3IEIagSrTA63XhWL7HLKtxhpyIJzGGYAOjAGzUeOyDRGYJjHaMLNakkURZ0jP7ZyI79XFG60HAsxKwVVhztmob6Y+dP2UKs1mGiGWlcU1MKf8fFHE08foLYG0BLHXcxLPyyqvMtmoZRkycg+2Ksge7RVj0WvyGyPHqx/Ds5mvPVgfbgz3zXU6GVkg6UKiY1+qaoFV0GW0ulItDscbY3VK6MZPnoyA+u/fP5Gqxfky48LdeOrkEoqT0JuUmaV26KFK2lyg9zheiKgH46Cnu1MpBUEnaZ354mp6IsFUk9FE3IVdlgUKm/6WrGEAHInnsl06sqbTq1tgzXn4gOEyvDUCQv3R217MX+gIzho36WgH1YKkoieV2a6R0wX1rUjIJa/O1/kdJBGWY2FimTm6afyMhfrrKQTXc+HFUQMFp6QJxkoOiegeVeuDveyAuWQqTNVn5b5I4o9CnIspgoirxgic2fnBDQNDeP3DV2H84/901dxope4cB5YjPsilW+pWjDEO4mzKigdIeQDVJxMce/E0AceC/W7DOizAjrDE2YOoZ9/BHYwoCmuUx5i/28GaPITCvp5QAoNbtXu9GhI4wMqXA2dE5Ah4sdxjM4AqLARnU9BlM7N9EYHhfQ3AJS+PaF8EJ6bQExvjkU0PiBopC1EZ1GQT+dWv3lS+l8rKI0Liug8gCw6tze3dmhShwmdCGized1ivG7SgwoCCWWoItninwGQhee2K45T0SmA0s12v1suP3xYLpe7/XZTHADEERVKRKMDIngIjrvbOx6w4+iov0kbDqjYbHcAR8dyt90cAJShhFQqGhsQxSMJ3flhyahPQ4MBpdvdBzd2r2kPoIxrCCAV6RsRyo+Rj8Rz1xkEUQ+hoYA226WQzX4PKWi/F7SWtog8i8UZF9FbIToAyJhLovh899kJi1EvooGANnvpKsjOxaRIIVcLRBYhV0GooSyOhc3GBGTkc6PxaChf+RJAxHNRF6FhgFLOZ0fzMqYkPLhPexSUYR6K+SRfOiIgxYfIR8GxwoKkRNRBaD4s/3AUr4XdlXjdcZf15iAuIz6yMx4gKh9C52swbEIoojChQYBeMf/sN77xOKFNr4Ji+VB8PBag6TuiH2zUReZRQP6NC187EHUQmg812PK1k1zRk4MyNWI4noJIetb6kXDccBERQj8DaOM4iQT33qZXQVJAWTGWgoh+Anj+wIW/UUiHCQ0AVKCAduHrK9Bk+94cpGIkBfl8DB1EY4eHqJPQAECbZYfBuMlQXWkIEKJJpIBwGQXQ9F2QD6cj4+GPhwd8UUZHEDoeUPHKBVRVmI2qqkr1BlRSVZiFXsMWy6yJi3EsZvEh8pFwePznQYWHyCJ0KiB02L6azWD3qW1nT4XY4FeP7WxLPOYqiK+JlNA4CnL4fCby4Uj+IqEhHUNoACBMM4+ztgVRtO1j28Yx4GlbkFAFoLi+upJ0YgQ0SpI2Cciyl8IjuPzJgzDSiIzLJKDpKYDSJQH0BOp5qWYv8ayNJ+kMFMSbuDCgRNbSXEajKMjh81nzUXSAzPc/TUhGRkQuoVMBLYsUAU2gnpm1FfTFHvHjUwtaKroBxVREYyioUz8cD0fy/TusMhQjjugQoQGAOAEBaBKDZibCW2naPgIg/PpDZ6GYSUjZKAoigJR+sGV/UHw4lt9x/Z0wChAKtGQDchAqKOWACtDPDKxVpdWsfXlpwWLtywEFKUhvr6BAAuL6sfGQUIi4iDghT0InKWiH/S0OKAU+VRVX7RMo6emlxXjsTNI88yQK0wgK4oBulYA4H2Mvi843ykiLSGdq1ZJRCQ0AhM38aypbsdkMMrRozCbQRe9p5mOdhDipURREDEb1I+Qj0JBQiCQhS0NeFhpQSXMEKdRBRYWSmWFL1rZP/Lv2EfFtw3WQSUKjdDWUgHgFbfg8ED7fnJCIPELKZCcBKja0N3EvnkbRnXNeBGz6FJTJHsdbKyggIGEwzofg+cIXgsgiZAG6OUlBnMG2R17LSUclnUg2oyiICMgymM0H2Mj1yxeNSBEKSmg6vDePEHabzo6sgRdUUCz7G0VfvAkglYA4H4Hni2Qjt5SQLyErCQ0aD7KHxdx+mrZfKAeZlizref6Oj8lKTvfug1cmcrsbbxxmGYzyUXQ0pG5CjscGDbnyYbFtER6rJkNpvoJMKx+TkQ81kmYxUojuuxHlhwUk87OSD8YnvlJEilAgC51iMVEKAaE0OJZPhtICOUhXigkBkpEiUk58pJmYyBfz1JMhgHiKFgJSBjN8PnE+n/gqEXFCtoRMS38aIGGyD3trNj4Vc2U0OQVykIRjIOnZMstyqZlglIQmBywWcJhlMOEuxKLwfDIaCkrI9tjQicOlnEhNxSOsRaqmWvsnDjPaXY0DEtL7SIhkosn9EYCMw7AJe9CAtIAEHxmakS0hWU67Hhs89SyeW1juXzcY2734vDsw9axcphp8WVYbNJ6OCuWzgIjyXofxJkwLiOIRIlIu+0YIOR67OR3QZGM92qEe8Nh0P7yQURZOWA7LHJ8JFd0HCHUAch1GExAJk4d8QF+9JHTC4y/bpY1ouXQbtnBvXuUg/Z4Y9WQONvG8TFeyzvtSEHfYdwLIxuOYTGQh6bFQEjrpAartbikh4SNUXqsWGFFMYrsMyuxRtFCBlKn2bOL5zFIQB6RTEHFYh4AUpLCEvFrxtEfwCnzGjDdo283hR/BIHk7Iu55O1BLKrDQUYyIKFkW+gmxAlsM+hUJo6L/tnftz2jgQx0lJhws+kygBEoLx9KZ2HraOl+v0F+7//7du9Zb8gsaEmnQ1nUll8ZA/fLUr2au1cGQlQK0VZF9hrCx1VxQd0VyX7ZFTE1MiMymyEFUpaFoB6GFRJ6AHLiFhpqsUdNtSQb8EyL4aJMlcF47dlRGRKks0rFSQ9PLVNnpSLSHlyTig7w1u7OMB3Rk0lpSsCbVtp++IrSeRPqBsiqqGmFGQcfL1FqhohOSSvmIufSoFWbNoa3p47crGTIhAP0TZIi4ixxTNG6dBBRu9T0CVgIQN8lsBCg8GZGG4NkK69goTRReVCP0UgWmckiWigg0qDLHyNLFeQiUFzX6XDTq4CNMsJMT/yg2HambNJDR3b2g0KmjSpKBODDFLc6X/tL+i2GiDmhT0MOkeoKOVef1a1XXz+4zQos7NH8MGdQJQ8zyowc8/TB5qJ4ondvMfr6DmpcakhpA1wgrzoCPNpMMuKei2cS02qVutLv4YBRVX80+Nq/mJuer6Iav5btmgqutBr6ULigcLqP31oK4CGlddUSxfcHUFtHeEnT2gkhuruybt4JkUrrge8Zp0JxW0/66GVpF1d2zxEXc1OufFDr0vpm+N6ZuHe++LfZoh5syEbCukCElf9uDcWV3oOdBT4835swfUL0S/2Pfmv1uxC4Wb85X35qdt7813VEH10R2K0KJMpyG64/a90R1dVVBRQi4hHV4mg4NMaIeMD9IhZpWBrucPyLrz4wbAuISs6LIin2NFmHXTi9VIyCFUCFL8trCiOFW8vQkEfncQZ1eHWIWEVBS5FQW8+OZEcFZGuY7bRbl2dYjVxgHrQGAnjNwKJTex9rVRwJ8NUIlQOdT++7fiXoR/mjZrfAZAdYTMXha5Q+ObvZ9FbkSQBnrWfjNLhxXUr9/tU0DE4Wg8ZnzN9N7e4wEKu6Ogxv1iHNHr01Nhu9jx94t1eIjV7Th8dHccAqVXd8dhaU9mmx2HXQbUNwmVxrYdMntW1abV//57FZufK/es3rTZs3pMQISQn55HQx4GystPXhuKA6xNRWVBld1vdQHNn+EV8C/LxVmkrE7pas4Jbe9fgNDueQuMdl/kHdvljmHa3a93atczw7N7Y7e46fPW2tMbrcWHUzoSgEhIMmpMC++Q2lEROlVe+ym7+35AHo0DKHGSkCHh/4VKHHjFNvYlvKpqGlCayLdtxK8sq0kcMUJpkkfT6TbJx7PHNFCfn88YoFU8f7RSC2wT+XW55tOP9FvYx0dDksVxrDpAvER0iFZUiep8TFoByuBUsiwJOBOa8AK94RKi7PMzVWXfCC+FWhY6gKDvoggFyVoQ54xQmgTReJpChQ0f/qyjPA/yKWDZvcS5Tk8BrXN4ZxRt8jiIrEWq+jQBaOgBRQkopNBt1r2YMxDVTFVZ5zN9Lu8HFFLKAhIS/jlyiGXiQ0OnbehlQQZVqjtoAXJs0IbbIThPH+wQtHJAQWRS44zifMqG1EuQc+M0kwlORO63OXzeTXG3aq4AwY+oAbF+esSTgi9Uh9B5j59L1grQUMRpwNdy0TgVlh5ZVDMijrIMD/A7eY2AhKEeWYDGFiAAogCNgkinyDHJX+YJB+TmpcgTBcjTgEjGexLK31NVaWx6r1/e1ouFRDEZDi1AcqgLMvBV7LeA/iRewQZtKtJTrOOgD+fJhtjtGGxQZHLAbGNmkWY7ADXbPZo0VCJ/UJoFG7/Ax68CFMJPRcTQ4oJ3q6rzWWtA3Hdp7C4gu40mQAacCI1dBeUwztfL9Uo/PmK+Xa3XFE6z7zNA8Wj7tkyAicxdxofYGP6ADUrAPdF1KulMt29vy2f49k0pvZIGFFoKcomQIiDRean7FoBAoQGzbOasDSDVpn4hOKGsOMTyQLq6WJzLijJDGQQ/OCAwHszvwIFcp+ligABUOhL+Lh7lXDzpPU3UGwt83qUgKjofeO1sEHxjwk+gChDJRBuvwk8U/IDvLABy/AzoJ5NeTSw6It7GJgGRzrUEgG7hTzqCgzdRDv6ON20z6QB5fp3+XkB7FZTF3ItlbWfSbHaV1Awx1pYpx074jK0ESPouCShlp7LhrkynkGY62tzoTIoM0JgBiiOuHG7Hx/OXeFOXXPpdCoIh5nnS6bYz0tJTVRpp48Wky5POogQoSgSgkeXUdHrtlM9tZD6zOQBiRNKRkM4o4Y1zMPZ+TXY3v9oG8SmjUZCcAJneh/rlLeZBYrOZV+XFqtr4XNYBFAnrzJxPEZBcufockMp2C0QEIAkqXWlAufReDYDY92caEO8JlWZGVj1RlZ2H3zNrAwjmgnwyCBPqEiDVRoOC33QBjbJsvVotqQQDZnHEn1Oyzo2IUjH5E4Q4GJY8MI/jl/XymXktaIQ1SrxiTzVZjqI6QGzIg2WhfL3FiMDU1ZNeQ1XhVDgn2fm4pRdLxEKHJbewlx+cSGbarGyfRRuklks/hHDyQBejohzMr8+zkDJCOTNIUKJcLeLYzDky7yzPq3L+8b5a9gVxKLQiChVLR6eqO5+082LMT4Gxz6hni0QQMW322oImlLg2yFmKqZo+wH3Shvl8X+Rpv42AiMi46St3x21P4Y3u+oUdjLxEFoGE8MWj7rtTJWzOwFautN1idRjKbQahfYiEdW1Wa931oJqHjXBj5Ffm/L/xbw56LAIMMc/uEvdTnk7a61ZF52VnW82kK2LJ9bHKxnD4q4B04v8SI3HwwOdGREMV+B66TnhYV1X979QVxT0JuK2na9h0DnnyyCe55Fo/zMzM8T3PZfksdzUOEVL/1+F8fgUV1XTSx2edG6A+AkJACOjAsvVPByg9Ry92wueIRvfnqKDwVM8y9ufL8BwBDcO7L/enKF/apMX8nYDOoiAgBNTSDiAgVBACQkAICAGhF0MFISAEhIAQEAJCL4YKQkAICAEhIASEXuwUCgoRTxOgsEcQTxMg0hsgniZAg94V4mkCdNW7RCPU4MXCyx6OsSYFDXq93iWa6VpABATU631FQjWAyEWPl4tBiIDKgMKB5AOj7GpAwhABWXBCMri67Jny9eJq8CcXBsg5cHVh4/njy1/s6VCIoRnQv4gBFYQKQgWhglBBqCBUECoICyoIFYQKQgWhglBBqCBUEBZUECoIFYQKQgWhglBBqCAEhApCBaGCUEGoIFQQKggV1Oly+ffHFQTUXFBBqCBU0O8o/wNFOeI7TEP8PgAAAGR6VFh0UmF3IHByb2ZpbGUgdHlwZSBpcHRjAAB4nOPyDAhxVigoyk/LzEnlUgADYxMuYwsTIxNLkxQDEyCEA0NTw2QDI0NLINPSJM3cwNzEzNIsxczSPNHM1MwEJAdWBiKBurgAzsYUK2BwTzUAAAAASUVORK5CYII=";var me=n.p+"static/media/info.8b5943f8726e68cadf74a99779900177.svg";var le=n.p+"static/media/lock.07fe55c61a82336cfd2453ee71dc4aed.svg";var de,he=n.p+"static/media/mask.d.d6519a865a3df2574cecf39a27d67a71.svg",fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAADeCAMAAACuR/1SAAAAq1BMVEVHcEzx9PoAdM8hHh4Ab8wAasjmUEQAc8/mUEYAZsX+/v8EOn/nUUbh7fggJCnsJC4RSHf8sjF4tOXufQPq6u8JXKbZ3+XMztJkZWXeV1F5d3RTUlKNkJIOcceAuecBV54xNTdBQkS6ur2kpqn0XzH01cp1b4Y4dK7wlTMghdWyzeX3w43rgXztp6W5j0lonMqLsdL98OW5JkHzqFtSi72tW2h7K1c+Vm5HMml6AKxFAAAACnRSTlMA////35k/wPBSGdIcvAAACuBJREFUeNrt3A1b4roSAODtVe9eObaruyENSZA0tVRBvhSV///L7kzSAhWo2t0VPMzsCpIWsa8zk1L69Ns3infG+dnpfyhW0T09O68Ckc+WOF1DOiOO7XFGQu81OieJ3eFrjfpQXT+iJHpXGlEnerMbUZ29WWldYqgNICIEIiKiTyCKKGoDiE4oaoOIiIiIiIiIiIiIiIiCiIiIiIiIiIiIiIiIgoiIiIiIiIiIiIiIiIKIiIiIiIiIiIiIiIiCiIjorxJdUtQGnTFLJxUTERF9TnTzvI+R510i2urTf3rqdDoX8PX01N9UOnoiAOpcLAOU+jkRVVKo/3TxOp76XSJaE3IZhAWG8eS9OlWjYybqdl2NYW1hB+pi1/ZVVzE6aqInX1d5tXe7we42op9HF67K7u11ZXBq712twbcbRMGxReaEss1xZwTjR0/ESomNBd6OiIIMhUZbF42wHWVHT+SS6J7VLCOizvYyW2UYOyAiFscx/jkZj7l7xN0jfxcEvFiM3/iV+eo5y4FgdceKYf/T3QCuFOPIcq2R7zf4U1nl2XgXYDfKDoeIWaFECr8nl4kOWKqUtIxxK6T7bXHALWZpIvzKmi2fsxyI3V1Q3OHKygu5Aa4gYAQeKb8W7v6MUFIncbEWLxf7bnR/OETwe2khY9yqSAcWhJSIuVaRJ7LwywvcDKsi5RhFYrlIJNwFwXJAGi2NZfjIwHisIuOApZHSpExKKU4Uw7UiWCuSLk/gh0oTwUvDgIxSt/jEFpV2QERpImML2R5LBVlkRRroJI1hSwsibTkMBICmIA2UCKzRsdR4h8DFACzjRjKteWrSgMHKjohLGcRGessYFrM00kwK14ogX1KZOCJRPJvZE102o8Mh0ga2PWVMS42FxrFmLCaNJwIFnSgOBZUiUSLiFDaGc649kR+IVRJbyDKsSxMDXCqM72QcUbAg3ep+MQzivO4KVQKRW+tEusWR62G4+ICIIiUTZa3QkE/wW8dQLHydyAqjYkgHqEEGCSVUJGCjoDPhxhQDACawEAMuDGSLFLEyRTuHroQIIsEfx3AxgmGaBEsiGEjcuDBYpodGlCaaQSVp6C5AgUIyDlZEMM1hwlgjZAL1BhUIfcjJxH7mKgeEMCLAlSPNcWWoN3x6ajAny7L02QJsnUoWMb9WsRgeH1ahWaWx2UAZJVGSQt+VFqf7kigVKWwmNpskggqLLXemsEncpUUxAHex0RymQQt9HkrXRG5b0yjBFeEJFpNE8hgMbJSUu0WeyOIrc1zMT8Th9SJo0ziHMcZwU9PECCHXehFOcTh5wbyOhYZTlophwlJC6HJGgzqERIN5D8oMchHaNYPvMEk4zGO4Ijzkq/kNBp+Ktx+OiLm1pFscpYc36QfLfRwrU0gahftBKKd9oUF6+Z0VnJ3cHkzqdmBgtNzxSXEh9Hz3SElfQMI9260oy4d+MYPbp3LXUQsk8mstn43vQEaH9AaEcVa/mNetXAyU45WVN6Nc7N9j7FjMDmzven/v0S5GOxaO3Hx39AdDRtvTaI2PDql1dh0N8QfbGBH5A2ejTSPmF9BRxyJZNo28EE52ROSP71/cZ6xy4NrBuSZFRKVRZwR7rd6HZSM/5A5HEtHS6KJzP8oylmWje/+4+OSIiHw/6myc9tAppzkiKppzp4rUWX1wRERLpPulUgdKbtW8iWhtFhvd3xctaX2ciKpM5VFIIiIiIiIiIiKifz9ReNThiF6N0Rmz1bNn1z44o7P3iYiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIKIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIjobxHdDRqdBze4K1+q90+T6LWLl580en1+ffdpRHdh0GoSQXj3O0KI5J5/Hbaavf7g7rOIBq2m4X/HxkI+jya86cuH159FFDYmChzRP80DiX4GjV8+/CyiVvP4E0TXzV+eiIjomIkuF88PEM+LS//4RY4x5MslEXmg54cfRTw8A8rL+PbKx+1YXG7O+sdHtFgCOaSFLIE80iVl0XNFCGJdCGL8so3ICiFT3uJas1iqftxqxVqpPm/Nho+Pw4ylOAS3VgohUrd28FWJFq+Fbm5eG11uIUojY6LExrD9wqhEM5tEJknS2eMviNuhjfqglihrjFJaR4kxeh9E2RAjw2+nk8m0NZngjm8wnef5fIp/tAGMDGqJLjeFXhNdrfejshdpo/GajakQ2kiOF8JMNNza4S8XtzZRLMBL9BnJGNcmtUYFeyCazYawBY+425q329MQbgYtPoe7djsP/Gh7GtQRPb8SurjZNFovtfaSKG2xvukDUQI4rdT08W1JduuJfg37Bi8xG8dGWBtrY2Oj9lNoM/t4dTWDdGn32py3e72wNYfbPHdEMNrrzeuINpII0miz1NbSaJ0IXMSLiNPEqFS7OmplhdCvRws2eJHLCOoPCk0l+yk0CJ6Pr6DS5kiBTgE6TTkfYH3BaK/XDmuIFj826+ymrhtViLSBXhyzGO8LomUWcWEErAPJg1kUmUizfbXrvD0etkJwGbSm7V6OTj2sLfgPWjk84jVEz1s6EXxd7ay03hpRDG1aCMsZXrQ5ERZeNHssetEwSE8ixYBIwsymTT8RfF9Ek14+dDghJs0kQK32fOAX9aZQdoNgN9HDtla02bBfNrMIr8prNMzmfSUlFJU2SV/LtEijxxlMZxEkVoxlBmWY6qgf7IkIskYHOWBAQrnbKTagHBIpxP4EjyYfICoK7eZNojRJYD5jXPbxct3KXega5ncLu0WYQzNMnYTjvG8SpVMFvVvZPREhhGvWrcBVWysYYAtqu7qbhwO8eT/RzXuzyF9Lv4XX6cSr7sNfgRX3syzLZq5NxjjV4sX0YW+A4dXz97XrCLmTu3mLl30HUwf6ES6YQKG1ww/1oi1Ety9f+z0adByfPm5CC7nPrN4U+zbsFvXcsvcS7ZjRXv7Qe7RZvBcit/ODe0F+Qsvnk0mOhTZ3Qu1ignvvpP/jAneMXhHJyz9DlD2O90KELQjbtJ/QwMlljkuiAed8Uu3Xb+1dv1Fnv0M0G8Jst5+3sZM8z0N/P20N8O1HPh+EU3if5t6mzfM6om37jre7k6h5L3JA+yIKIVdcl+Y8xCkGcicMlqNBcb/rnf6WblR3NKRhFsG+gN9h+prHi143o3cdL2oG9EWJFlWjh4dxtRFVD802IJplwxLoixKB0doO5MPzYnXoesvB6w/3omyVQRDjr0nkkB58Bj0v8AiJGI+xZd+Ox+Lltz4BmVWBvmwW+U+JFs/Pi8WifPgiMDY/I/oQ0YbPlyb68x81ZtuAjoLoXb1otsOHsmjZf3b5fGK7bn7yTPib5xf5k2fC2v680+cziRqf4BP4U6Dazeus604j3KpTmz6FUP/TTuRreCZdWJ5s2NTIn+yIpzpuNh/gqfdBoe7nnQ46+Xn98fg5WZ5q6I+SVP/v/lf+bxdbeHdXffmf04mW74j8N4X+BScVd/1Xd+u/cgU673qP5113CegtolMCqiPqEtFbRKdAdEZAdURnQHROQHVE50D07TsJ7Sb6jkLfzqkb7SQ6dUlERruJSiEy2kW0EgKjs9PTLhFVfU7P1oQc0tn3Yw4kqgycvQKiAKL/kQIRERERERERERERURAREREREREREREREVEQERERERERERERERFREBERERERERERERERURDRsRP99+KvBRERERER0SHH/wH3fBqBUVgaEwAAAGR6VFh0UmF3IHByb2ZpbGUgdHlwZSBpcHRjAAB4nOPyDAhxVigoyk/LzEnlUgADYxMuYwsTIxNLkxQDEyCEA0NTw2QDI0NLINPSJM3cwNzEzNIsxczSPNHM1MwEJAdWBiKBurgAzsYUK2BwTzUAAAAASUVORK5CYII=",pe=n(76043),ye=(0,m.observer)((function(e){var t=e.id,n=e.label,r=e.tooltip,i=e.className,o=e.getFieldErrors,a=e.style;return(0,re.jsxs)("div",{className:K()(a.field,i),children:[(0,re.jsx)("div",{className:a.fieldLabel,children:n}),(0,re.jsx)("div",{id:t,className:K()(a.fieldInput),children:r}),(0,re.jsx)("div",{"data-qa":"error".concat((0,pe.Ig)(t)),className:a.fieldError,children:o(t)})]})})),ge=(0,m.observer)(de=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"cardNumberTooltip",get:function(){return(0,re.jsxs)("div",{className:ce.tooltip,children:[(0,re.jsx)("img",{"aria-describedby":"cardNumberTooltipContent",src:le,alt:"lock"}),(0,re.jsx)("div",{role:"tooltip",id:"cardNumberTooltipContent",className:ce.tooltipContent,children:"Payments are secured using SSL and client-side encryption."})]})}},{key:"cvvTooltip",get:function(){return(0,re.jsxs)("div",{className:K()(ce.tooltip,ce.tooltipCvv),children:[(0,re.jsx)("img",{"aria-describedby":"cvvTooltipContent",src:me,alt:"cvvInfo"}),(0,re.jsx)("div",{role:"tooltip",id:"cvvTooltipContent",className:K()(ce.tooltipContent,ce.cvv),children:[{src:fe,title:"Visa, Master Card, Discover",text:"3-digit number on back"},{src:Me,title:"American Express",text:"4-digit number on front"}].map((function(e,t){var n=e.src,r=e.title,i=e.text;return(0,re.jsxs)("div",{className:ce.tooltipCard,children:[r,(0,re.jsx)("img",{src:n,alt:""}),(0,re.jsx)("span",{children:i})]},t)}))})]})}},{key:"fields",get:function(){return[{id:L.number,label:(0,re.jsxs)("div",{className:ce.creditCardLabel,children:["Card Number",(0,re.jsx)("div",{className:ce.creditCardIcons,"aria-hidden":"true",children:this.props.icons.map((function(e,t){return(0,re.jsx)("img",{alt:"",src:e},t)}))})]}),tooltip:this.cardNumberTooltip,className:ce.number},{id:L.expirationDate,label:"Expiration Date",className:ce.expirationDate},{id:L.cvv,label:(0,re.jsxs)("span",{children:["Security Code",this.cvvTooltip]}),className:ce.cvv}]}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.cardNotMounted,r=e.getFieldErrors,i=e.handleSubmit,o=(0,V.Z)(this.fields),a=o[0],s=o.slice(1);return(0,re.jsxs)("form",{id:"paymentForm",className:K()(ce.form,t&&ce.formHide),onSubmit:i,children:[(0,re.jsxs)("div",{className:ce.card,children:[(0,re.jsx)(ye,(0,G.Z)((0,G.Z)({},a),{},{getFieldErrors:r,style:ce})),(0,re.jsx)(ie,{}),(0,re.jsx)(ue,{}),s.map((function(e){return(0,re.jsx)(ye,(0,G.Z)((0,G.Z)({},e),{},{getFieldErrors:r,style:ce}),e.id)})),(0,re.jsx)(se,{}),n&&(0,re.jsx)("div",{"data-qa":"cardLoader",className:"cardLoaderD","aria-live":"polite","aria-busy":"true",children:(0,re.jsx)("img",{src:he,alt:"mounting"})})]}),(0,re.jsx)("button",{"aria-hidden":"true",tabIndex:-1,type:"submit"})]})}}]),n}(M.Component))||de,Ee={gray60:"#E4E6F2",gray20:"#8189A9",gray50:"#C6CBDE",neutral0:"#FFFFFF",red60:"#CE1331",spacing_w:"2vw",form:"credit_card_m_form__2m4PY",formHide:"credit_card_m_formHide__N-WQt",card:"credit_card_m_card__1vQFc",button:"credit_card_m_button__noPIY",field:"credit_card_m_field__8b+WS",creditCardLabel:"credit_card_m_creditCardLabel__AVzuL",creditCardIcons:"credit_card_m_creditCardIcons__JXeUE",fieldLabel:"credit_card_m_fieldLabel__eai2O",fieldInput:"credit_card_m_fieldInput__FOkGM",fieldError:"credit_card_m_fieldError__-n9+F",tooltip:"credit_card_m_tooltip__Cz+xy",tooltipContent:"credit_card_m_tooltipContent__QX+qN",cvv:"credit_card_m_cvv__Kk89B",tooltipCvv:"credit_card_m_tooltipCvv__snTDo",tooltipCard:"credit_card_m_tooltipCard__tqr9U",number:"credit_card_m_number__eDDho",expirationDate:"credit_card_m_expirationDate__otdUw",zipPositioning:"credit_card_m_zipPositioning__s181q"};var ve,be,we,Se,Ce,Ae=n.p+"static/media/mask.m.5524ef39a8ad7687138cf771ac5cb089.svg",_e=(0,m.observer)(ve=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"cardNumberTooltip",get:function(){return(0,re.jsxs)("div",{className:Ee.tooltip,children:[(0,re.jsx)("img",{src:le,alt:"ssl"}),(0,re.jsxs)("div",{className:Ee.tooltipContent,children:["Payments are secured using SSL",(0,re.jsx)("br",{}),"and client-side encryption."]})]})}},{key:"cvvTooltip",get:function(){return(0,re.jsxs)("div",{className:K()(Ee.tooltip,Ee.tooltipCvv),children:[(0,re.jsx)("img",{src:me,alt:"cvvInfo"}),(0,re.jsx)("div",{className:K()(Ee.tooltipContent,Ee.cvv),children:[{src:fe,title:"Visa, Master Card, Discover",text:"3-digit number on back"},{src:Me,title:"American Express",text:"4-digit number on front"}].map((function(e){var t=e.src,n=e.title,r=e.text;return(0,re.jsxs)("div",{className:Ee.tooltipCard,children:[n,(0,re.jsx)("img",{src:t,alt:"".concat(n," icon")}),(0,re.jsx)("span",{children:r})]},t)}))})]})}},{key:"fields",get:function(){return[{id:L.number,label:(0,re.jsxs)("div",{className:Ee.creditCardLabel,children:["Card Number",(0,re.jsx)("div",{className:Ee.creditCardIcons,"aria-hidden":"true",children:this.props.icons.map((function(e,t){return(0,re.jsx)("img",{alt:"",src:e},t)}))})]}),tooltip:this.cardNumberTooltip,className:Ee.number},{id:L.expirationDate,label:"Expiration Date",className:Ee.expirationDate},{id:L.cvv,label:(0,re.jsxs)("span",{children:["Security Code",this.cvvTooltip]}),className:Ee.cvv}]}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.cardNotMounted,r=e.getFieldErrors,i=e.handleSubmit,o=(0,V.Z)(this.fields),a=o[0],s=o.slice(1);return(0,re.jsx)("form",{id:"paymentForm",className:K()(Ee.form,t&&Ee.formHide),onSubmit:i,children:(0,re.jsxs)("div",{className:Ee.card,children:[(0,re.jsx)(ye,(0,G.Z)((0,G.Z)({},a),{},{getFieldErrors:r,style:Ee})),(0,re.jsx)(ie,{}),(0,re.jsx)(ue,{}),s.map((function(e){return(0,re.jsx)(ye,(0,G.Z)((0,G.Z)({},e),{},{getFieldErrors:r,style:Ee}),e.id)})),(0,re.jsx)("div",{className:Ee.zipPositioning,children:(0,re.jsx)(se,{})}),n&&(0,re.jsx)("div",{"data-qa":"cardLoader",className:"cardLoaderM","aria-live":"polite","aria-busy":"true",children:(0,re.jsx)("img",{src:Ae,alt:"loading"})})]})})}}]),n}(M.Component))||ve,He=Y.tq?_e:ge,ke=n(26560),Pe="paypal_checkout_hide__fc6+y",Ne="paypal_checkout_button__Ess7h",Te="paypal_checkout_preloader__UDxwy",Re="paypal_checkout_disableButton__-EkIl",Be="paypal_checkout_warning__HjIH6",De="paypal_checkout_buttonWrapper__ldUFy",Fe="billing_address_d_container__mlALo",Ie="billing_address_d_region__97AWh",xe=Y.tq?function(){return(0,re.jsxs)("section",{children:[(0,re.jsx)(ie,{}),(0,re.jsx)(ue,{}),(0,re.jsx)(se,{})]})}:function(){return(0,re.jsxs)("section",{className:Fe,children:[(0,re.jsx)(ie,{}),(0,re.jsx)(se,{}),(0,re.jsx)(ue,{className:Ie})]})},Oe=n(30525),Le=(0,m.observer)((function(e){var t=e.hide,n=(0,W.useBillingAddress)(),r=(0,M.useState)(!1),i=(0,d.Z)(r,2),o=i[0],a=i[1],s=!n.isValid&&o;return(0,re.jsxs)("section",{className:K()(t&&Pe),children:[(0,re.jsx)(xe,{}),(0,re.jsx)(q.x4,{className:Be,children:s?(0,re.jsx)(re.Fragment,{children:"Please fill in the fields above."}):(0,re.jsx)("br",{})}),(0,re.jsx)("div",{className:De,children:(0,re.jsx)("button",{type:"button",onClick:function(){n.isValid||((0,ke.Or)(n.invalidatePostalCode()),a(!0))},children:(0,re.jsx)("div",{id:"paypalButton",className:K()(Ne,!n.isValid&&Re),"data-qa":"linkPaypal",children:(0,re.jsx)("div",{className:Te,children:(0,re.jsx)(Oe.p,{})})})})})]})})),je=Y.tq?{neutral0:"#FFFFFF",blue50:"#4A6EE0",neutral90:"#0E101A",neutral20:"#E7E9F5",gray20:"#8189A9",form:"payment_form_m_form__1KQNC",title:"payment_form_m_title__ohiEE",switchForm:"payment_form_m_switchForm__BxOuH",item:"payment_form_m_item__biNhz",active:"payment_form_m_active__f6z3c"}:{neutral0:"#FFFFFF",blue60:"#3659B5",neutral90:"#0E101A",neutral50:"#6D758D",neutral20:"#E7E9F5",form:"payment_form_d_form__X8m8i",title:"payment_form_d_title__kUBBr",switchForm:"payment_form_d_switchForm__0XyIj",item:"payment_form_d_item__pCMHg",active:"payment_form_d_active__CK7Qb"},ze=(0,m.observer)(be=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a="a"&&n<="z"&&(e=e.slice(0,t)+n.toUpperCase()+e.slice(t+1))}return e}function L(e){return!!B.test(e)&&(!D.test(e)&&!F.test(e))}function j(e){for(var t,n,r=1,i=(n=(e=e.toLowerCase()).split("-")).length;r1&&(t.sort(),e=e.replace(RegExp("(?:"+I.source+")+","i"),p.call(t,""))),c.call(x.tags,e)&&(e=x.tags[e]);for(var o=1,a=(n=e.split("-")).length;o-1)return n;var r=n.lastIndexOf("-");if(r<0)return;r>=2&&"-"===n.charAt(r-2)&&(r-=2),n=n.substring(0,r)}}function U(e,t){for(var n,r,i,o=0,a=t.length;o1){var s=e.substring(a,o-1);n.push(s)}var u=e.substring(o,i);n.push(u),a=i+1,r=!1}else if(!0===r){var c=e.substring(o,i);n.push(c),a=i+1}o=i+1}i+=1}if(t-o==2){if(o-a>1){var M=e.substring(a,o-1);n.push(M)}a=o}var m=e.substring(a,t);return n.push(m),n}(o["[[extension]]"])).length);var M=new b;M["[[dataLocale]]"]=u;for(var l="-u",d=0,h=r.length;d2){var w=a[v+1];-1!==E.call(p,w)&&(g="-"+f+"-"+(y=w))}else{-1!==E(p,"true")&&(y="true")}}if(c.call(n,"[["+f+"]]")){var S=n["[["+f+"]]"];-1!==E.call(p,S)&&S!==y&&(y=S,g="")}M["[["+f+"]]"]=y,l+=g,d++}if(l.length>2){var C=u.indexOf("-x-");if(-1===C)u+=l;else{var A=u.substring(0,C),_=u.substring(C);u=A+l+_}u=j(u)}return M["[[locale]]"]=u,M}function J(e,t){for(var n=t.length,r=new w,i=0;ir)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(o)}return i}var V={};Object.defineProperty(V,"getCanonicalLocales",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=G(e),n=[],r=t.length,i=0;ie)}(Math.abs(e));var a=Math.round(Math.exp(Math.abs(i-o+1)*Math.LN10));r=Math.round(i-o+1<0?e*a:e/a)+""}if(i>=o)return r+p.call(Array(i-o+1+1),"0");if(i===o-1)return r;i>=0?r=r.slice(0,i+1)+"."+r.slice(i+1):i<0&&(r="0."+p.call(Array(1-(i+1)),"0")+r);if(r.indexOf(".")>=0&&n>t){for(var s=n-t;s>0&&"0"===r.charAt(r.length-1);)r=r.slice(0,-1),s--;"."===r.charAt(r.length-1)&&(r=r.slice(0,-1))}return r}(t,n["[[minimumSignificantDigits]]"],n["[[maximumSignificantDigits]]"]):function(e,t,n,r){var i,o,a=r,s=Math.pow(10,a)*e,u=0===s?"0":s.toFixed(0),c=(i=u.indexOf("e"))>-1?u.slice(i+1):0;c&&(u=u.slice(0,i).replace(".",""),u+=p.call(Array(c-(u.length-1)+1),"0"));if(0!==a){var M=u.length;if(M<=a)u=p.call(Array(a+1-M+1),"0")+u,M=a+1;var m=u.substring(0,M-a),l=u.substring(M-a,u.length);u=m+"."+l,o=m.length}else o=u.length;var d=r-n;for(;d>0&&"0"===u.slice(-1);)u=u.slice(0,-1),d--;"."===u.slice(-1)&&(u=u.slice(0,-1));if(o-1&&cm){var d=n.substring(m,c);f.call(u,{"[[type]]":"literal","[[value]]":d})}var h=n.substring(c+1,M);if("number"===h)if(isNaN(t)){var p=s.nan;f.call(u,{"[[type]]":"nan","[[value]]":p})}else if(isFinite(t)){"percent"===r["[[style]]"]&&(t*=100);var g=re(e,t);ae[o]?function(){var e=ae[o];g=(g+"").replace(/\d/g,(function(t){return e[t]}))}():g+="";var v=void 0,b=void 0,S=g.indexOf(".",0);if(S>0?(v=g.substring(0,S),b=g.substring(S+1,S.length)):(v=g,b=void 0),!0===r["[[useGrouping]]"]){var C=s.group,A=[],_=a.patterns.primaryGroupSize||3,k=a.patterns.secondaryGroupSize||_;if(v.length>_){var P=v.length-_,N=P%k,T=v.slice(0,N);for(T.length&&f.call(A,T);Ni;i++)r+=n[i]["[[value]]"];return r}M(V,"NumberFormat",{configurable:!0,writable:!0,value:q}),M(V.NumberFormat,"prototype",{writable:!1}),E.NumberFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["nu"],"[[localeData]]":{}},M(V.NumberFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:g.call((function(e){if(!c.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=S(),n=arguments[1],r=this["[[availableLocales]]"],i=G(e);return t(),K(r,i,n)}),E.NumberFormat)}),M(V.NumberFormat.prototype,"format",{configurable:!0,get:ne}),Object.defineProperty(V.NumberFormat.prototype,"formatToParts",{configurable:!0,enumerable:!1,writable:!0,value:function(e){void 0===e&&(e=void 0);var t=null!==this&&"object"==typeof this&&H(this);if(!t||!t["[[initializedNumberFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.NumberFormat object.");return function(e,t){for(var n=ie(e,t),r=[],i=0,o=0;n.length>o;o++){var a=n[o],s={};s.type=a["[[type]]"],s.value=a["[[value]]"],r[i]=s,i+=1}return r}(this,+e)}});var ae={arab:["\u0660","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"],arabext:["\u06f0","\u06f1","\u06f2","\u06f3","\u06f4","\u06f5","\u06f6","\u06f7","\u06f8","\u06f9"],bali:["\u1b50","\u1b51","\u1b52","\u1b53","\u1b54","\u1b55","\u1b56","\u1b57","\u1b58","\u1b59"],beng:["\u09e6","\u09e7","\u09e8","\u09e9","\u09ea","\u09eb","\u09ec","\u09ed","\u09ee","\u09ef"],deva:["\u0966","\u0967","\u0968","\u0969","\u096a","\u096b","\u096c","\u096d","\u096e","\u096f"],fullwide:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"],gujr:["\u0ae6","\u0ae7","\u0ae8","\u0ae9","\u0aea","\u0aeb","\u0aec","\u0aed","\u0aee","\u0aef"],guru:["\u0a66","\u0a67","\u0a68","\u0a69","\u0a6a","\u0a6b","\u0a6c","\u0a6d","\u0a6e","\u0a6f"],hanidec:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"],khmr:["\u17e0","\u17e1","\u17e2","\u17e3","\u17e4","\u17e5","\u17e6","\u17e7","\u17e8","\u17e9"],knda:["\u0ce6","\u0ce7","\u0ce8","\u0ce9","\u0cea","\u0ceb","\u0cec","\u0ced","\u0cee","\u0cef"],laoo:["\u0ed0","\u0ed1","\u0ed2","\u0ed3","\u0ed4","\u0ed5","\u0ed6","\u0ed7","\u0ed8","\u0ed9"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["\u1946","\u1947","\u1948","\u1949","\u194a","\u194b","\u194c","\u194d","\u194e","\u194f"],mlym:["\u0d66","\u0d67","\u0d68","\u0d69","\u0d6a","\u0d6b","\u0d6c","\u0d6d","\u0d6e","\u0d6f"],mong:["\u1810","\u1811","\u1812","\u1813","\u1814","\u1815","\u1816","\u1817","\u1818","\u1819"],mymr:["\u1040","\u1041","\u1042","\u1043","\u1044","\u1045","\u1046","\u1047","\u1048","\u1049"],orya:["\u0b66","\u0b67","\u0b68","\u0b69","\u0b6a","\u0b6b","\u0b6c","\u0b6d","\u0b6e","\u0b6f"],tamldec:["\u0be6","\u0be7","\u0be8","\u0be9","\u0bea","\u0beb","\u0bec","\u0bed","\u0bee","\u0bef"],telu:["\u0c66","\u0c67","\u0c68","\u0c69","\u0c6a","\u0c6b","\u0c6c","\u0c6d","\u0c6e","\u0c6f"],thai:["\u0e50","\u0e51","\u0e52","\u0e53","\u0e54","\u0e55","\u0e56","\u0e57","\u0e58","\u0e59"],tibt:["\u0f20","\u0f21","\u0f22","\u0f23","\u0f24","\u0f25","\u0f26","\u0f27","\u0f28","\u0f29"]};M(V.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e,t=new b,n=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],r=null!==this&&"object"==typeof this&&H(this);if(!r||!r["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var i=0,o=n.length;ir&&(r=s,n=a),i++}return n}(a,_);else{var k=Y(n,"hour12","boolean");a.hour12=void 0===k?A.hour12:k,C=function(e,t){var n=[];for(var r in Se)c.call(Se,r)&&void 0!==e["[["+r+"]]"]&&n.push(r);if(1===n.length){var i=function(e,t){var n,r;if(ge[e]&&ge[e][t])return(r={originalPattern:ge[e][t],_:(n={},n[e]=t,n),extendedPattern:"{"+e+"}"})[e]=t,r.pattern12="{"+e+"}",r.pattern="{"+e+"}",r}(n[0],e["[["+n[0]+"]]"]);if(i)return i}var o,a=-1/0,s=0,u=t.length;for(;s=2||g>=2&&y<=1?E>0?l-=6:E<0&&(l-=8):E>1?l-=3:E<-1&&(l-=6)}}M._.hour12!==e.hour12&&(l-=1),l>a&&(a=l,o=M),s++}return o}(a,_)}for(var P in Se)if(c.call(Se,P)&&c.call(C,P)){var N=C[P];N=C._&&c.call(C._,P)?C._[P]:N,r["[["+P+"]]"]=N}var T,R=Y(n,"hour12","boolean");if(r["[[hour]]"])if(R=void 0===R?A.hour12:R,r["[[hour12]]"]=R,!0===R){var B=A.hourNo0;r["[[hourNo0]]"]=B,T=C.pattern12}else T=C.pattern;else T=C.pattern;return r["[[pattern]]"]=T,r["[[boundFormat]]"]=void 0,r["[[initializedDateTimeFormat]]"]=!0,u&&(e.format=Ae.call(e)),i(),e}M(V,"DateTimeFormat",{configurable:!0,writable:!0,value:be}),M(be,"prototype",{writable:!1});var Se={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};function Ce(e,t,n){if(void 0===e)e=null;else{var r=C(e);for(var i in e=new b,r)e[i]=r[i]}e=l(e);var o=!0;return"date"!==t&&"any"!==t||void 0===e.weekday&&void 0===e.year&&void 0===e.month&&void 0===e.day||(o=!1),"time"!==t&&"any"!==t||void 0===e.hour&&void 0===e.minute&&void 0===e.second||(o=!1),!o||"date"!==n&&"all"!==n||(e.year=e.month=e.day="numeric"),!o||"time"!==n&&"all"!==n||(e.hour=e.minute=e.second="numeric"),e}function Ae(){var e=null!==this&&"object"==typeof this&&H(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var t=g.call((function(e){return void 0===e&&(e=void 0),He(this,void 0===e?Date.now():A(e))}),this);e["[[boundFormat]]"]=t}return e["[[boundFormat]]"]}function _e(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var n=e.__getInternalProperties(v);S();for(var r=n["[[locale]]"],i=new V.NumberFormat([r],{useGrouping:!1}),o=new V.NumberFormat([r],{minimumIntegerDigits:2,useGrouping:!1}),a=function(e,t,n){var r=new Date(e),i="get"+(n||"");return new b({"[[weekday]]":r[i+"Day"](),"[[era]]":+(r[i+"FullYear"]()>=0),"[[year]]":r[i+"FullYear"](),"[[month]]":r[i+"Month"](),"[[day]]":r[i+"Date"](),"[[hour]]":r[i+"Hours"](),"[[minute]]":r[i+"Minutes"](),"[[second]]":r[i+"Seconds"](),"[[inDST]]":!1})}(t,n["[[calendar]]"],n["[[timeZone]]"]),s=n["[[pattern]]"],u=new w,c=0,M=s.indexOf("{"),m=0,l=n["[[dataLocale]]"],d=E.DateTimeFormat["[[localeData]]"][l].calendars,h=n["[[calendar]]"];-1!==M;){var p=void 0;if(-1===(m=s.indexOf("}",M)))throw new Error("Unclosed pattern");M>c&&f.call(u,{type:"literal",value:s.substring(c,M)});var y=s.substring(M+1,m);if(Se.hasOwnProperty(y)){var g=n["[["+y+"]]"],C=a["[["+y+"]]"];if("year"===y&&C<=0?C=1-C:"month"===y?C++:"hour"===y&&!0===n["[[hour12]]"]&&0===(C%=12)&&!0===n["[[hourNo0]]"]&&(C=12),"numeric"===g)p=oe(i,C);else if("2-digit"===g)(p=oe(o,C)).length>2&&(p=p.slice(-2));else if(g in Ee)switch(y){case"month":p=ve(d,h,"months",g,a["[["+y+"]]"]);break;case"weekday":try{p=ve(d,h,"days",g,a["[["+y+"]]"])}catch(A){throw new Error("Could not find weekday data for locale "+r)}break;case"timeZoneName":p="";break;case"era":try{p=ve(d,h,"eras",g,a["[["+y+"]]"])}catch(A){throw new Error("Could not find era data for locale "+r)}break;default:p=a["[["+y+"]]"]}f.call(u,{type:y,value:p})}else if("ampm"===y){p=ve(d,h,"dayPeriods",a["[[hour]]"]>11?"pm":"am",null),f.call(u,{type:"dayPeriod",value:p})}else f.call(u,{type:"literal",value:s.substring(M,m+1)});c=m+1,M=s.indexOf("{",c)}return mi;i++)r+=n[i].value;return r}E.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},M(V.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:g.call((function(e){if(!c.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=S(),n=arguments[1],r=this["[[availableLocales]]"],i=G(e);return t(),K(r,i,n)}),E.NumberFormat)}),M(V.DateTimeFormat.prototype,"format",{configurable:!0,get:Ae}),Object.defineProperty(V.DateTimeFormat.prototype,"formatToParts",{enumerable:!1,writable:!0,configurable:!0,value:function(e){void 0===e&&(e=void 0);var t=null!==this&&"object"==typeof this&&H(this);if(!t||!t["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");return function(e,t){for(var n,r=_e(e,t),i=[],o=0;r.length>o;o++)n=r[o],i.push({type:n.type,value:n.value});return i}(this,void 0===e?Date.now():A(e))}}),M(V.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var e,t=new b,n=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],r=null!==this&&"object"==typeof this&&H(this);if(!r||!r["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var i=0,o=n.length;i2&&4===i[1].length&&f.call(r,i[0]+"-"+i[2]);for(;n=y.call(r);)f.call(E.NumberFormat["[[availableLocales]]"],n),E.NumberFormat["[[localeData]]"][n]=e.number,e.date&&(e.date.nu=e.number.nu,f.call(E.DateTimeFormat["[[availableLocales]]"],n),E.DateTimeFormat["[[localeData]]"][n]=e.date);void 0===k&&function(e){k=e}(t)}(e,e.locale)}}),M(V,"__disableRegExpRestore",{value:function(){E.disableRegExpRestore=!0}});var Re=V;var Be=function(){function e(t){(0,r.Z)(this,e),this.data=t}return(0,i.Z)(e,[{key:"value",get:function(){return this.data.value}},{key:"currency",get:function(){return this.data.currency}},{key:"map",value:function(t){var n=Number(t(this.value).toFixed(2));if(isNaN(n))throw Error("Cannot create a price from NaN value");return e.From({currency:this.currency,value:n})}},{key:"format",value:function(){var t;switch(t=["en-US","es-MX","en-PH","ms-MY","id-ID","hi-IN","pt-BR"],n.g.Intl=Re,t.forEach((function(e){return Re.__addLocaleData(n(67023)("./".concat(e,".json")))})),this.currency){case"USD":var r=this.value<0;return"".concat(r?"-":"","$").concat(e.formatNumber(Math.abs(this.value),"en-US",!0)," USD");case"MXN":return"Mex$".concat(e.formatNumber(Math.ceil(this.value),"es-MX"));case"PHP":return"\u20b1".concat(e.formatNumber(Math.ceil(this.value),"en-PH"));case"MYR":return"RM".concat(e.formatNumber(this.value,"ms-MY",!0));case"IDR":return"Rp".concat(e.formatNumber(Math.ceil(this.value),"id-ID"));case"INR":return"\u20b9 ".concat(e.formatNumber(Math.ceil(this.value),"hi-IN"));case"BRL":return"R$".concat(e.formatNumber(this.value,"pt-BR",!0));default:return new Intl.NumberFormat("en-US",{style:"currency",currency:this.currency,minimumFractionDigits:0}).format(this.value)}}},{key:"toString",value:function(){return this.format()}}],[{key:"formatNumber",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Intl.NumberFormat(t,n?{minimumFractionDigits:2,maximumFractionDigits:2}:void 0);return r.format(e)}},{key:"Equals",value:function(e,t){return e.value===t.value&&e.currency===t.currency}}]),e}();Be.From=function(e){return new Be(e)}},72080:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});n(72791);var r=n(88946),i=n(80184);var o=function(e){return(0,i.jsx)(i.Fragment,{children:r.f.From((t=e,t.hasOwnProperty("money")?e.money:e)).format()});var t}},25684:function(e,t,n){"use strict";n.d(t,{C:function(){return q},i:function(){return $}});var r=n(18489),i=n(31303),o=n(83738),a=n(72791),s=n(54156),u=n(36222),c=n(33032),M=n(84322),m=n.n(M),l=n(81694),d=n.n(l),h=n(50704),f=n(30097),p=n(90494),y="dropdown_dropdownWrapper__AF1WH",g="dropdown_arrowIcon__j7oJV",E="dropdown_option__U+ok1",v="dropdown_selectedOption__nzcF6",b="dropdown_placeholder__Os4+7",w="dropdown_selectedOptionLabel__mmiWi",S="dropdown_nativeSelect__uABkx",C={blue50:"#4A6EE0",neutral50:"#6D758D",selectedOption:"theme_default_selectedOption__CnGcK",placeholder:"theme_default_placeholder__OR6Kd"},A={gray60:"#E4E6F2",neutral50:"#6D758D",neutral90:"#0E101A",selectedOption:"theme_payment_selectedOption__Vf1RK",placeholder:"theme_payment_placeholder__EMOFy"},_=n(80184),H=function(e){var t,n,r=e.name,i=e.initialValue,o=e.fallbackLabel,a=e.options,s=e.placeholder,M=e.handleChange,l=e.theme,H=void 0===l?"default":l,k=function(){var e=(0,c.Z)(m().mark((function e(t){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.target,e.next=3,M(n.value);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(e){switch(e){case"payment":return A;default:return C}}(H),N=a.find((function(e){return(null===e||void 0===e?void 0:e.value)===i})),T=$("forMobile",N,o);return(0,_.jsxs)("div",{className:y,children:[(0,_.jsx)(p.L,{small:!0}),(0,_.jsxs)(f.v.Ghost,{name:"".concat(r,".box"),className:d()(E,v,P.selectedOption,(t={},(0,u.Z)(t,b,!T),(0,u.Z)(t,P.placeholder,!T),t)),children:[(0,_.jsx)("span",{className:w,children:null!==T&&void 0!==T?T:s}),(0,_.jsx)(h.JO.Arrow,{className:g})]}),(0,_.jsxs)("select",{"data-name":"".concat(r,".select"),className:S,onChange:k,value:null!==(n=null===N||void 0===N?void 0:N.value)&&void 0!==n?n:"",children:[!N&&(0,_.jsx)("option",{disabled:!0,value:"",children:null!==s&&void 0!==s?s:"-- select an option --"}),a.map((function(e,t){return(0,_.jsx)("option",{value:e.value,"data-name":"dropdown-".concat(r,"/").concat(e.value),children:$("forMobile",e)},t)}))]})]})},k=n(8003),P=n(2717),N=n(32680),T=(n(83361),n(54164),n(51672),(0,a.forwardRef)((function(e,t){var n=(0,k.u)(e);return a.createElement(N.S,(0,P.Z)({ref:t},n))}))),R=n(52303),B=n(96621),D="dropdown_select__Oi6Ga",F={blue50:"#4A6EE0",themeOverride:"theme_default_themeOverride__S+IfA",selectTheme:"theme_default_selectTheme__XJCaQ"},I={gray60:"#E4E6F2",neutral90:"#0E101A",themeOverride:"theme_light_themeOverride__IJV6z",selectTheme:"theme_light_selectTheme__7GNCu"},x={gray60:"#E4E6F2",neutral50:"#6D758D",neutral90:"#0E101A",themeOverride:"theme_payment_themeOverride__PclIE",selectTheme:"theme_payment_selectTheme__J9AkO",select:"theme_payment_select__xqbYu"},O={blue50:"#4A6EE0",themeOverride:"theme_phone_themeOverride__ajA-f",selectTheme:"theme_phone_selectTheme__JSBlz"},L=["theme"],j=function(e){var t=e.theme,n=void 0===t?"default":t,s=(0,o.Z)(e,L),u=function(e){var t=(e.defaultOption?[].concat((0,i.Z)(e.options),[e.defaultOption]):e.options).map((function(e){return{value:e.value,label:e.label}})),n=e.name,r=e.ariaLabelledBy,o=e.ariaLabel,a=e.placeholder,s=e.allowSearch,u=e.handleChange,M=e.initialValue,l=e.menuPortalTarget,d=e.menuPosition,h=e.fallbackLabel,f=e.vAlign,p=void 0===f?"auto":f,y=t.find((function(e){return(null===e||void 0===e?void 0:e.value)===M})),g=h&&M?{value:M,label:h}:void 0,E=y||g;return{options:t,name:n,"aria-labelledby":r,"aria-label":o,placeholder:a,isSearchable:s,onChange:function(){var e=(0,c.Z)(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,u(t.value);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),value:E,menuPortalTarget:l,menuPosition:d,menuPlacement:p,getOptionLabel:function(e){var t=e.label;return"string"===typeof t?t:t.forMobile}}}(s),M=Q(s),l=Y(n),h=(0,a.useRef)((0,B.Y)()).current;return(0,_.jsx)(T,(0,r.Z)((0,r.Z)({},u),{},{className:d()(D,l.selectTheme,l.themeOverride),classNamePrefix:"rs",filterOption:M,menuIsOpen:s.menuIsOpen,menuId:"dropdown.".concat(h),components:{IndicatorSeparator:null,ValueContainer:W,DropdownIndicator:G,SingleValue:J,Option:K,MenuList:U,Input:X}}))};var z=(0,N.c)(),Q=function(e){return function(t,n){return!(!e.defaultOption||t.value!==e.defaultOption.value)||z(t,n)}},G=function(e){return(0,_.jsx)(R.c.DropdownIndicator,(0,r.Z)((0,r.Z)({},e),{},{children:(0,_.jsx)(h.JO.Arrow,{})}))},W=function(e){var t=e.selectProps.name;return(0,_.jsx)("div",{"data-name":"".concat(t,".box"),children:(0,_.jsx)(R.c.ValueContainer,(0,r.Z)({},e))})},U=function(e){var t=a.useCallback((function(t){var n;null===t||void 0===t||t.setAttribute("tabIndex","0"),(null===e||void 0===e?void 0:e.innerRef)instanceof Function&&(null===e||void 0===e||null===(n=e.innerRef)||void 0===n||n.call(e,t))}),[null===e||void 0===e?void 0:e.innerRef]),n=(0,r.Z)((0,r.Z)({},e.innerProps),{},{id:e.selectProps.menuId,role:"listbox","aria-expanded":!0,"aria-label":"Options"});return(0,_.jsx)(R.c.MenuList,(0,r.Z)((0,r.Z)({},e),{},{innerRef:t,innerProps:n,children:e.children}))},X=function(e){return(0,_.jsx)(R.c.Input,(0,r.Z)((0,r.Z)({},e),{},{role:e.selectProps.isSearchable?"combobox":"listbox","aria-owns":e.selectProps.menuId,"aria-autocomplete":"list"}))},J=function(e){var t=e.data.label,n="string"===typeof t?t:t.forDesktop;return(0,_.jsx)(R.c.SingleValue,(0,r.Z)((0,r.Z)({},e),{},{children:n}))},K=function(e){var t=e.selectProps.name,n=e.data,i=n.label,o=n.value,a="string"===typeof i?i:i.forDesktop,s=(0,r.Z)((0,r.Z)({},e.innerProps),{},{role:"option","aria-disabled":e.isDisabled});return(0,_.jsx)(R.c.Option,(0,r.Z)((0,r.Z)({},e),{},{"data-name":"dropdown-".concat(t,"/").concat(o),innerProps:s,children:(0,_.jsx)("span",{"data-name":"dropdown-".concat(t,"/").concat(o),children:a})}))},Y=function(e){switch(e){case"payment":return x;case"light":return I;case"countyCode":return O;default:return F}},Z=["options","defaultOption"],V=function(e,t){return"string"===typeof e?e:e[t]},$=function(e,t,n){return t&&t.label?V(t.label,e):n?V(n,e):null},q=function(e){var t=e.options,n=e.defaultOption,a=(0,o.Z)(e,Z),u=n?[].concat((0,i.Z)(t),[n]):t;return s.tq?(0,_.jsx)(H,(0,r.Z)({options:u},a)):(0,_.jsx)(j,(0,r.Z)({options:t,defaultOption:n},a))}},36275:function(e,t,n){"use strict";n.d(t,{E:function(){return m}});var r=n(18489),i=n(83738),o=n(81694),a=n.n(o),s=(n(72791),n(30847)),u="radio_button_radio__CL5XS",c=n(80184),M=["id","qa"],m=function(e){var t=e.id,n=e.qa,o=(0,i.Z)(e,M),m=null!==n&&void 0!==n?n:o.name;return(0,c.jsx)("input",(0,r.Z)((0,r.Z)({},o),{},{id:t,type:"radio",className:a()(u,o.className),"data-qa":"radio-"+m,onKeyDown:function(e){var t,n=e.currentTarget;(0,s.Wd)(e)&&(null===(t=o.onChange)||void 0===t||t.call(o,e));if((0,s.tH)(e)&&n){var r=n.closest("form");null!==r&&void 0!==r&&r.requestSubmit&&r.requestSubmit()}}}))}},41684:function(e,t,n){"use strict";n.d(t,{S:function(){return l},M:function(){return m}});var r=n(18489),i=n(81694),o=n.n(i),a=n(72791),s=n(76020),u=n(36275),c={neutral20:"#E7E9F5",group:"radio_button_group_group__xuvLV",section:"radio_button_group_section__ck+bk",disabled:"radio_button_group_disabled__xUyb-",header:"radio_button_group_header__SJw-f",title:"radio_button_group_title__yYHa2",body:"radio_button_group_body__KPcUT"},M=n(80184),m=function(e){var t=e.radioButton,n=e.title,i=e.description,m=e.children,l=e.tooltipProps,d=e.className,h=l?s.u:a.Fragment;return(0,M.jsx)("label",{htmlFor:t.id,className:o()(c.section,t.checked&&c.selected,t.disabled&&c.disabled,d),children:(0,M.jsxs)(h,(0,r.Z)((0,r.Z)({},l),{},{children:[(0,M.jsxs)("div",{className:c.header,children:[(0,M.jsx)(u.E,(0,r.Z)((0,r.Z)({},t),{},{"aria-labelledby":"label-for-".concat(t.id),"aria-describedby":"description-for-".concat(t.id)})),(0,M.jsx)("span",{className:c.title,id:"label-for-".concat(t.id),children:n})]}),(0,M.jsxs)("div",{className:c.body,id:"description-for-".concat(t.id),children:[i,m]})]}))})},l=function(e){var t=e.children,n=e.name,r=e.className;return(0,M.jsx)("div",{className:o()(c.group,r),role:"radiogroup","aria-label":n,children:t})}},78717:function(e,t,n){"use strict";n.d(t,{C:function(){return a},E:function(){return o}});var r=n(25400),i=n(47697),o=new Map([[i.i4.Owner,r.User.InstitutionRoleName.Owner],[i.i4.Contributor,r.User.InstitutionRoleName.Contributor],[i.i4.InstitutionUser,r.User.InstitutionRoleName.InstitutionUser],[i.i4.GroupContributor,r.User.UserGroupRoleName.GroupContributor]]),a=new Map([[r.User.InstitutionRoleName.Owner,i.i4.Owner],[r.User.InstitutionRoleName.Contributor,i.i4.Contributor],[r.User.InstitutionRoleName.InstitutionUser,i.i4.InstitutionUser],[r.User.UserGroupRoleName.GroupContributor,i.i4.GroupContributor]])},20620:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(36222),i=(n(72791),n(81694)),o=n.n(i),a={spinner:"style_spinner__MOySy",loaded:"style_loaded__YpmQd","sk-bounce-delay":"style_sk-bounce-delay__iUiUB",bounce1:"style_bounce1__6nddt",bounce2:"style_bounce2__zMDd1"},s=n(80184),u=function(e){var t=e.loaded;return t?null:(0,s.jsxs)("div",{className:o()(a.spinner,(0,r.Z)({},a.loaded,t)),"data-name":"loader",role:"alert","aria-live":"polite","aria-label":"loading",children:[(0,s.jsx)("div",{className:a.bounce1}),(0,s.jsx)("div",{className:a.bounce2}),(0,s.jsx)("div",{className:a.bounce3})]})}},66578:function(e,t,n){"use strict";n.d(t,{DB:function(){return d},E1:function(){return o},J1:function(){return a},Jo:function(){return c},Ko:function(){return m},Pe:function(){return h},c3:function(){return l},cb:function(){return M},op:function(){return s},wr:function(){return u}});n(72791);var r=n(50704),i=n(80184),o=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,viewBox:"0 0 32 32",children:(0,i.jsx)("path",{d:"M15.5000008,15.4982271 C15.5009583,14.3944725 16.3960215,13.5 17.5,13.5 C18.6045695,13.5 19.5,14.3954305 19.5,15.5 C19.5,16.6045695 18.6045695,17.5 17.5,17.5 C16.3960215,17.5 15.5009583,16.6055275 15.5000008,15.5017729 C15.5000987,15.671515 15.514294,15.8379599 15.5414792,16 L7.50020972,16 C7.22758651,16 7,15.7761424 7,15.5 C7,15.2319336 7.22395152,15 7.50020972,15 L15.5414792,15 C15.514294,15.1620401 15.5000987,15.328485 15.5000005,15.4982271 Z M12.5000005,21.5017729 C12.5000987,21.671515 12.514294,21.8379599 12.5414792,22 L7.50020972,22 C7.22395152,22 7,21.7680664 7,21.5 C7,21.2238576 7.22758651,21 7.50020972,21 L12.5414792,21 C12.514294,21.1620401 12.5000987,21.328485 12.5000005,21.4982271 C12.5009583,20.3944725 13.3960215,19.5 14.5,19.5 C15.6045695,19.5 16.5,20.3954305 16.5,21.5 C16.5,22.6045695 15.6045695,23.5 14.5,23.5 C13.3960215,23.5 12.5009583,22.6055275 12.5000008,21.5017729 Z M10.5000005,9.50177289 C10.5000987,9.67151505 10.514294,9.83795987 10.5414792,10 L7.50020972,10 C7.22395152,10 7,9.76806641 7,9.5 C7,9.22385763 7.22758651,9 7.50020972,9 L10.5414792,9 C10.514294,9.16204013 10.5000987,9.32848495 10.5000005,9.49822711 C10.5009583,8.39447252 11.3960215,7.5 12.5,7.5 C13.6045695,7.5 14.5,8.3954305 14.5,9.5 C14.5,10.6045695 13.6045695,11.5 12.5,11.5 C11.3960215,11.5 10.5009583,10.6055275 10.5000008,9.50177289 Z M12.5,10.5 C13.0522847,10.5 13.5,10.0522847 13.5,9.5 C13.5,8.94771525 13.0522847,8.5 12.5,8.5 C11.9477153,8.5 11.5,8.94771525 11.5,9.5 C11.5,10.0522847 11.9477153,10.5 12.5,10.5 Z M16.4585208,9 L24.4997903,9 C24.7760485,9 25,9.23193359 25,9.5 C25,9.77614237 24.7724135,10 24.4997903,10 L16.4585208,10 C16.4858006,9.83739576 16.5,9.67035611 16.5,9.5 C16.5,9.32964389 16.4858006,9.16260424 16.4585208,9 Z M14.5,22.5 C15.0522847,22.5 15.5,22.0522847 15.5,21.5 C15.5,20.9477153 15.0522847,20.5 14.5,20.5 C13.9477153,20.5 13.5,20.9477153 13.5,21.5 C13.5,22.0522847 13.9477153,22.5 14.5,22.5 Z M18.4585208,21 L24.4997903,21 C24.7760485,21 25,21.2319336 25,21.5 C25,21.7761424 24.7724135,22 24.4997903,22 L18.4585208,22 C18.4858006,21.8373958 18.5,21.6703561 18.5,21.5 C18.5,21.3296439 18.4858006,21.1626042 18.4585208,21 Z M17.5,16.5 C18.0522847,16.5 18.5,16.0522847 18.5,15.5 C18.5,14.9477153 18.0522847,14.5 17.5,14.5 C16.9477153,14.5 16.5,14.9477153 16.5,15.5 C16.5,16.0522847 16.9477153,16.5 17.5,16.5 Z M21.4585208,15 L24.4997903,15 C24.7724135,15 25,15.2238576 25,15.5 C25,15.7680664 24.7760485,16 24.4997903,16 L21.4585208,16 C21.4858006,15.8373958 21.5,15.6703561 21.5,15.5 C21.5,15.3296439 21.4858006,15.1626042 21.4585208,15 Z",stroke:"none"})})},a=function(e){var t=e.className;return(0,i.jsx)("svg",{className:t,width:"29px",height:"13px",viewBox:"0 0 29 13",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("g",{id:"FINAL",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,i.jsx)("g",{id:"promo-with-still-copy",transform:"translate(-167.000000, -299.000000)",children:(0,i.jsxs)("g",{id:"Group-Copy-3",transform:"translate(167.000000, 299.000000)",children:[(0,i.jsx)("rect",{id:"Rectangle",fill:"#4A6EE0",x:"0",y:"0",width:"29",height:"13",rx:"2"}),(0,i.jsx)("text",{id:"NEW",fontFamily:"'Inter'",fontSize:"10",fontWeight:"normal",letterSpacing:"0.4761905",fill:"#FFFFFF",children:(0,i.jsx)("tspan",{x:"2.57800872",y:"10",children:"NEW"})})]})})})})},s=function(e){var t=e.className;return(0,i.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:(0,i.jsx)("circle",{cx:"50%",cy:"50%",r:"5",fill:"#EA1537",fillRule:"evenodd",stroke:"none",strokeWidth:"1"})})},u=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32px",height:"32px",viewBox:"0 0 32 32",children:(0,i.jsx)("g",{id:"symbols",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(5.500000, 8.000000)",children:(0,i.jsx)("g",{id:"primary_admin_nav",transform:"translate(-5.000000, -627.000000)",stroke:"#8AA0BA",children:(0,i.jsx)("g",{id:"Icon/Email/Gray",transform:"translate(0.000000, 619.000000)",children:(0,i.jsxs)("g",{id:"Group-15",transform:"translate(5.333333, 8.000000)",children:[(0,i.jsx)("path",{d:"M0.5,0.5 L0.5,15.5 L20.8333333,15.5 L20.8333333,0.5 L0.5,0.5 Z",id:"Rectangle-7"}),(0,i.jsx)("polyline",{id:"Rectangle-9",strokeLinecap:"square",points:"20.3336589 1.17871094 10.6666667 9.33333333 0.936523438 1.17871094 2.66666667 2.66666667"})]})})})})})},c=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32",height:"32",viewBox:"0 0 32 32",children:(0,i.jsx)("g",{transform:"translate(2, 0)",children:(0,i.jsx)("path",{d:"M9.98291 20.5198L6.4811 20.5198L5.49999 17L21.5 6.50002L25.5001 20.5198L16.5001 20.5198M9.98291 20.5198L16.5001 20.5198M9.98291 20.5198L10.2124 21.842C10.3786 22.8003 11.2103 23.5 12.1829 23.5L14.6366 23.5C15.8733 23.5 16.8136 22.3888 16.609 21.1691L16.5001 20.5198",fill:"none",strokeLinejoin:"round"})})})},M=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,i.jsx)("g",{transform:"matrix(1.2 0 0 1.2 0 0), translate(-1, -3)",children:(0,i.jsx)("path",{fill:"none",d:"M16 9.5V16.6077M19 11.3304C20.7934 12.3838 22 14.3527 22 16.6077C22 19.9724 19.3137 22.7 16 22.7C12.6863 22.7 10 19.9724 10 16.6077C10 14.3527 11.2066 12.3838 13 11.3304",strokeLinecap:"round"})})})},m=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"42",height:"16",fill:"none",viewBox:"0 0 42 16",children:[(0,i.jsx)("title",{children:"Invite"}),(0,i.jsx)("path",{fill:"#4A6EE0",d:"M0 3a3 3 0 013-3h36a3 3 0 013 3v10a3 3 0 01-3 3H3a3 3 0 01-3-3V3z"}),(0,i.jsx)("path",{fill:"#EDF5FF",d:"M5.761 4.727h-.88V12h.88V4.727zm7.933 0h-.866v5.725h-.071L8.779 4.727h-.852V12h.88V6.29h.072L12.842 12h.852V4.727zm2.46 0h-.922L17.901 12h.909l2.67-7.273h-.923L18.4 10.85h-.085l-2.16-6.122zm7.741 0h-.88V12h.88V4.727zm1.768.782h2.287V12h.88V5.509h2.288v-.782h-5.455v.782zM32.877 12h4.446v-.781h-3.566V8.747h3.282v-.781h-3.282V5.509h3.509v-.782h-4.39V12z"})]})},l=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,width:"31",height:"13",viewBox:"0 0 31 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:"31",height:"13",rx:"2",fill:"#15C39A"}),(0,i.jsx)("path",{d:"M8.44122 7.94C8.44122 7.28 8.09122 6.65 7.42122 6.34C8.02122 6.07 8.29122 5.42 8.29122 4.84C8.29122 4.23 7.99122 3.64 7.47122 3.3C6.99122 2.99 6.40122 2.91 5.83122 2.91H3.01122V10.01H5.83122C6.51122 10.01 7.17122 9.95 7.72122 9.53C8.23122 9.14 8.44122 8.57 8.44122 7.94ZM6.98122 4.92C6.98122 5.59 6.49122 5.8 5.91122 5.8H4.29122V4.02H5.88122C6.46122 4.02 6.98122 4.24 6.98122 4.92ZM7.13122 7.91C7.13122 8.63 6.48122 8.85 5.88122 8.85H4.29122V6.88H5.92122C6.60122 6.88 7.13122 7.15 7.13122 7.91ZM15.178 10V8.83H11.418V6.89H14.728V5.73H11.418V4.08H15.178V2.91H10.128V10H15.178ZM21.6035 4.11V2.91H16.1135V4.11H18.2135V10H19.5035V4.11H21.6035ZM27.8221 10L25.3321 2.91H23.9221L21.4321 10H22.7321L23.1921 8.64H26.0121L26.4721 10H27.8221ZM25.6121 7.48H23.5921L24.6021 4.49L25.6121 7.48Z",fill:"white"})]})},d=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,width:"24",height:"24",viewBox:"-6 -4 32 32",stroke:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M8.5 5.5H6.5C5.39543 5.5 4.5 6.39543 4.5 7.5L4.5 17.5C4.5 18.6046 5.39543 19.5 6.5 19.5H8.5",fill:"none",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M16 9L19.5 12.5M19.5 12.5L16 16M19.5 12.5H9.5",stroke:"#6D758D",strokeLinecap:"round"})]})},h=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,width:"119",height:"16",viewBox:"0 0 119 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H116C117.657 0 119 1.34315 119 3V13C119 14.6569 117.657 16 116 16H3C1.34315 16 0 14.6569 0 13V3Z",fill:"#FFDF80"}),(0,i.jsx)("path",{d:"M6 7.10345L8.52632 4H11.0526M6 7.10345L12 13M6 7.10345H9.47368M18 7.10345L15.4737 4H12.9474M18 7.10345L12 13M18 7.10345H14.2105M12 13L9.47368 7.10345M12 13L14.2105 7.10345M9.47368 7.10345H14.2105M9.47368 7.10345L11.0526 4M14.2105 7.10345L12.9474 4M12.9474 4H11.0526",stroke:"#8C5404",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M24.9688 12V4H27.6719C28.2995 4 28.8125 4.11328 29.2109 4.33984C29.612 4.5638 29.9089 4.86719 30.1016 5.25C30.2943 5.63281 30.3906 6.0599 30.3906 6.53125C30.3906 7.0026 30.2943 7.43099 30.1016 7.81641C29.9115 8.20182 29.6172 8.50911 29.2188 8.73828C28.8203 8.96484 28.3099 9.07812 27.6875 9.07812H25.9375V12H24.9688ZM25.9375 8.21875H27.6563C28.2995 8.21875 28.7565 8.05729 29.0273 7.73437C29.3008 7.41146 29.4375 7.01042 29.4375 6.53125C29.4375 6.04948 29.3008 5.65104 29.0273 5.33594C28.7539 5.01823 28.2917 4.85937 27.6406 4.85937H25.9375V8.21875ZM32.3912 12V4H35.0943C35.7193 4 36.2323 4.10677 36.6334 4.32031C37.0344 4.53125 37.3313 4.82161 37.524 5.19141C37.7167 5.5612 37.813 5.98177 37.813 6.45312C37.813 6.98437 37.6907 7.44792 37.4459 7.84375C37.2037 8.23698 36.8274 8.52083 36.317 8.69531L38.1255 12H37.0005L35.313 8.87109C35.2479 8.8737 35.1802 8.875 35.1099 8.875H33.3599V12H32.3912ZM33.3599 8H35.0787C35.7193 8 36.1763 7.86198 36.4498 7.58594C36.7232 7.3099 36.8599 6.93229 36.8599 6.45312C36.8599 5.97135 36.7219 5.58594 36.4459 5.29688C36.1724 5.00521 35.7115 4.85937 35.063 4.85937H33.3599V8ZM39.8673 12V4H44.6954V4.85937H40.8361V7.5625H44.4454V8.42187H40.8361V11.1406H44.7579V12H39.8673ZM46.8815 4H48.0378L50.7565 10.6406H50.8503L53.569 4H54.7253V12H53.819V5.92188H53.7409L51.2409 12H50.3659L47.8659 5.92188H47.7878V12H46.8815V4ZM58.0764 4V12H57.1077V4H58.0764ZM65.7088 4H66.6775V9.29687C66.6775 9.89583 66.5356 10.4076 66.2518 10.832C65.9679 11.2565 65.5903 11.5807 65.1189 11.8047C64.6476 12.0286 64.1307 12.1406 63.5682 12.1406C63.0057 12.1406 62.4887 12.0286 62.0174 11.8047C61.546 11.5807 61.1684 11.2565 60.8846 10.832C60.6007 10.4076 60.4588 9.89583 60.4588 9.29687V4H61.4275V9.29687C61.4275 9.71354 61.5265 10.0664 61.7244 10.3555C61.9223 10.6419 62.1841 10.8607 62.5096 11.0117C62.8351 11.1602 63.188 11.2344 63.5682 11.2344C63.9484 11.2344 64.3012 11.1602 64.6268 11.0117C64.9523 10.8607 65.214 10.6419 65.4119 10.3555C65.6098 10.0664 65.7088 9.71354 65.7088 9.29687V4ZM69.0521 4H70.2084L72.9271 10.6406H73.0209L75.7396 4H76.8959V12H75.9896V5.92188H75.9115L73.4115 12H72.5365L70.0365 5.92188H69.9584V12H69.0521V4ZM82.3745 4.85937V4H88.3745V4.85937H85.8589V12H84.8901V4.85937H82.3745ZM90.3096 12V4H93.0127C93.6377 4 94.1508 4.10677 94.5518 4.32031C94.9528 4.53125 95.2497 4.82161 95.4424 5.19141C95.6351 5.5612 95.7315 5.98177 95.7315 6.45312C95.7315 6.98437 95.6091 7.44792 95.3643 7.84375C95.1221 8.23698 94.7458 8.52083 94.2354 8.69531L96.044 12H94.919L93.2315 8.87109C93.1664 8.8737 93.0987 8.875 93.0284 8.875H91.2784V12H90.3096ZM91.2784 8H92.9971C93.6377 8 94.0948 7.86198 94.3682 7.58594C94.6416 7.3099 94.7784 6.93229 94.7784 6.45312C94.7784 5.97135 94.6403 5.58594 94.3643 5.29688C94.0909 5.00521 93.6299 4.85937 92.9815 4.85937H91.2784V8ZM98.7545 4V12H97.7857V4H98.7545ZM101.465 12H100.449L103.387 4H104.387L107.324 12H106.309L105.504 9.73437H102.27L101.465 12ZM102.574 8.875H105.199L103.918 5.26562H103.856L102.574 8.875ZM109.01 12V4H109.979V11.1406H113.698V12H109.01Z",fill:"#8C5404"})]})}},49830:function(e,t,n){"use strict";n.d(t,{B6:function(){return l},BQ:function(){return E},Bt:function(){return o},CJ:function(){return a},CL:function(){return g},KE:function(){return d},Nw:function(){return u},PJ:function(){return p},WL:function(){return c},XV:function(){return s},Xy:function(){return y},cp:function(){return f},fm:function(){return m},kI:function(){return M},os:function(){return v},wd:function(){return h}});n(72791);var r=n(50704),i=n(80184),o=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,viewBox:"0 0 32 32",children:(0,i.jsx)("g",{transform:"translate(7.000000, 6.000000)",children:(0,i.jsxs)("g",{transform:"scale(1.25)",children:[(0,i.jsx)("circle",{cx:"8",cy:"8",r:"7",fill:"none",strokeWidth:"1px",vectorEffect:"non-scaling-stroke"}),(0,i.jsx)("path",{d:"M7.402 10.175H8.51v-.056c.018-1.145.314-1.643 1.126-2.151.813-.494 1.293-1.205 1.293-2.225 0-1.44-1.053-2.493-2.678-2.493-1.495 0-2.682.923-2.751 2.493h1.163c.07-1.09.831-1.533 1.588-1.533.868 0 1.57.573 1.57 1.478 0 .734-.42 1.26-.96 1.588-.905.549-1.445 1.084-1.459 2.843v.056zm.59 2.733a.833.833 0 00.832-.831.833.833 0 00-.831-.831.833.833 0 00-.831.83c0 .458.374.832.83.832z",stroke:"none"})]})})})},a=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,viewBox:"0 0 32 32",children:(0,i.jsx)("path",{d:"M17,26.5 C11.2010101,26.5 6.5,21.7989899 6.5,16 C6.5,10.2010101 11.2010101,5.5 17,5.5 C22.7989899,5.5 27.5,10.2010101 27.5,16 C27.5,21.7989899 22.7989899,26.5 17,26.5 Z M17,25.5 C22.2467051,25.5 26.5,21.2467051 26.5,16 C26.5,10.7532949 22.2467051,6.5 17,6.5 C11.7532949,6.5 7.5,10.7532949 7.5,16 C7.5,21.2467051 11.7532949,25.5 17,25.5 Z M20.532,18.144 C20.532,18.942 20.182,19.572 19.72,20.034 C19.146,20.594 18.348,20.902 17.48,20.986 L17.48,22.26 L16.668,22.26 L16.668,20.986 C15.786,20.916 15.03,20.608 14.442,20.076 C13.826,19.516 13.448,18.718 13.448,17.808 L14.68,17.808 C14.68,18.382 14.932,18.942 15.338,19.306 C15.702,19.642 16.15,19.824 16.668,19.894 L16.668,16.492 C16.5,16.464 16.318,16.436 16.15,16.422 C14.778,16.254 13.7,15.358 13.7,13.902 C13.7,13.188 14.022,12.502 14.526,12.026 C15.142,11.438 15.856,11.158 16.668,11.088 L16.668,9.8 L17.48,9.8 L17.48,11.102 C18.25,11.186 18.95,11.48 19.482,11.998 C20.056,12.558 20.378,13.216 20.406,14.028 L19.16,14.028 C19.132,13.524 18.964,13.09 18.656,12.768 C18.362,12.46 17.984,12.25 17.48,12.18 L17.48,15.372 L17.9,15.428 C19.412,15.624 20.532,16.52 20.532,18.144 Z M16.668,15.288 L16.668,12.166 C16.15,12.222 15.688,12.39 15.324,12.782 C15.072,13.062 14.932,13.44 14.932,13.874 C14.932,14.714 15.506,15.134 16.262,15.232 L16.668,15.288 Z M19.3,18.172 C19.3,17.262 18.642,16.73 17.704,16.618 L17.48,16.59 L17.48,19.894 C18.012,19.838 18.446,19.67 18.796,19.334 C19.09,19.054 19.3,18.69 19.3,18.172 Z",stroke:"none"})})},s=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,viewBox:"0 0 32 32",children:(0,i.jsx)("g",{transform:"translate(4.000000, 4.000000)",children:(0,i.jsx)("path",{d:"M23 14.325h-1.997c-1.436 0-1.99 1.409-.998 2.401l1.413 1.413a.5.5 0 0 1 0 .707l-2.577 2.576a.5.5 0 0 1-.707 0l-1.414-1.414c-1.003-1.002-2.401-.382-2.401.994V23a.5.5 0 0 1-.5.5h-3.645a.5.5 0 0 1-.5-.5v-2c0-1.23-1.544-1.851-2.397-.998L5.86 21.418a.5.5 0 0 1-.707 0L2.578 18.84a.5.5 0 0 1 0-.707l1.417-1.417c1.067-1.067.477-2.398-.993-2.398H1a.5.5 0 0 1-.5-.5v-3.645a.5.5 0 0 1 .5-.5h2.003c1.29 0 1.908-1.484.996-2.397L2.582 5.861a.5.5 0 0 1 0-.707L5.16 2.577a.5.5 0 0 1 .707 0l1.416 1.416c.824.821 2.4.152 2.4-.994V1a.5.5 0 0 1 .5-.5h3.643a.5.5 0 0 1 .5.5v2c0 1.228 1.512 1.884 2.4.995l1.414-1.413a.5.5 0 0 1 .707 0l2.576 2.577a.5.5 0 0 1 0 .707l-1.413 1.413c-.94.94-.343 2.402.995 2.402H23a.5.5 0 0 1 .5.5v3.644a.5.5 0 0 1-.5.5zm-.5-3.644h-1.496c-2.232 0-3.27-2.542-1.702-4.109l1.06-1.06-1.87-1.869-1.06 1.06c-1.526 1.526-4.107.405-4.107-1.703V1.5h-2.644V3c0 2.03-2.647 3.154-4.106 1.701L5.512 3.638l-1.869 1.87L4.706 6.57c1.543 1.544.476 4.104-1.703 4.104H1.5v2.645h1.502c2.345 0 3.408 2.396 1.7 4.105l-1.064 1.064 1.87 1.869 1.062-1.062c1.479-1.48 4.104-.422 4.104 1.705v1.5h2.645v-1.498c0-2.251 2.464-3.345 4.108-1.7l1.06 1.06 1.87-1.87-1.06-1.058c-1.614-1.615-.632-4.109 1.706-4.109H22.5v-2.644zM12 16.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z",stroke:"none"})})})},u=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,viewBox:"0 0 32 32",children:(0,i.jsx)("g",{transform:"translate(7.000000, 7.000000)",children:(0,i.jsx)("path",{d:"M1.49336087,16.5812099 C1.44850989,16.8536856 1.19126579,17.0382119 0.918790101,16.9933609 C0.646314414,16.9485099 0.461788137,16.6912658 0.506639126,16.4187901 C1.08786035,12.8877943 3.34805334,11.5077683 8.99931273,11.5000005 C14.6392114,11.4922482 16.9103404,12.8840707 17.4933343,16.4186289 C17.5382743,16.6910899 17.3538321,16.9483943 17.0813711,16.9933343 C16.8089101,17.0382743 16.5516057,16.8538321 16.5066657,16.5813711 C16.0157757,13.6052176 14.2006548,12.492852 9.00068727,12.4999995 C3.78786498,12.5071647 1.98252611,13.6094664 1.49336087,16.5812099 Z M9,9.5 C6.51471863,9.5 4.5,7.48528137 4.5,5 C4.5,2.51471863 6.51471863,0.5 9,0.5 C11.4852814,0.5 13.5,2.51471863 13.5,5 C13.5,7.48528137 11.4852814,9.5 9,9.5 Z M9,8.5 C10.9329966,8.5 12.5,6.93299662 12.5,5 C12.5,3.06700338 10.9329966,1.5 9,1.5 C7.06700338,1.5 5.5,3.06700338 5.5,5 C5.5,6.93299662 7.06700338,8.5 9,8.5 Z",stroke:"none"})})})},c=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32px",height:"32px",viewBox:"0 0 32 32",children:(0,i.jsx)("g",{transform:"translate(7.000000, 6.000000)",stroke:"none",strokeWidth:"1",children:(0,i.jsx)("path",{d:"M9,0.455374683 L17.5,4.12582923 L17.5,9.63636364 C17.5,14.679668 13.910356,19.3489024 9.1154206,20.4864957 L9,20.5138791 L8.8845794,20.4864957 C4.08964398,19.3489024 0.5,14.679668 0.5,9.63636364 L0.5,4.12582923 L9,0.455374683 Z M9,1.54462532 L1.5,4.78326168 L1.5,9.63636364 C1.5,14.1810456 4.71888115,18.4083995 9,19.4852968 C13.2811189,18.4083995 16.5,14.1810456 16.5,9.63636364 L16.5,4.78326168 L9,1.54462532 Z"})})})},M=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,i.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,i.jsxs)("g",{transform:"translate(-353.000000, -1082.000000)",children:[(0,i.jsx)("rect",{fill:"#FFFFFF",x:"0",y:"0",width:"1280",height:"1940"}),(0,i.jsxs)("g",{id:"Icon/Information/Grey",transform:"translate(349.000000, 1078.000000)",children:[(0,i.jsx)("circle",{stroke:"#C6CBDE",strokeWidth:"1",cx:"12",cy:"12",r:"7.5"}),(0,i.jsx)("rect",{id:"Rectangle-15",fill:"#C6CBDE",fillRule:"evenodd",x:"11",y:"11",width:"2",height:"6",rx:"0.5"}),(0,i.jsx)("circle",{stroke:"#C6CBDE",strokeWidth:"0.5",fill:"#C6CBDE",fillRule:"evenodd",strokeLinecap:"square",cx:"12",cy:"8",r:"1"})]})]})})})},m=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32px",height:"32px",viewBox:"0 0 32 32",children:(0,i.jsx)("g",{transform:"translate(0, 0)",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,i.jsx)("g",{transform:"translate(16.500000, 15.410408) rotate(45.000000) translate(-16.500000, -15.410408) translate(3.000000, 2.410408)",children:(0,i.jsx)("g",{transform:"translate(0.564185, 0.440483)",children:(0,i.jsxs)("g",{transform:"translate(-0.000000, 0.000000)",children:[(0,i.jsx)("path",{d:"M19.1786155,16.1428571 C21.3877545,16.1428571 23.3877545,14.952381 25.1786155,12.5714286 C23.3877545,10.1904762 21.3877545,9 19.1786155,9 C16.9694765,9 14.9694765,10.1904762 13.1786155,12.5714286"}),(0,i.jsx)("path",{d:"M13,22.3214726 C15.209139,22.3214726 17.209139,21.1309964 19,18.7500441 C17.209139,16.3690917 15.209139,15.1786155 13,15.1786155 C10.790861,15.1786155 8.790861,16.3690917 7,18.7500441",transform:"translate(13.000000, 18.750044) rotate(90.000000) translate(-13.000000, -18.750044) "}),(0,i.jsx)("path",{d:"M7.01435787,6.40717095 C8.80521887,8.78812333 10.8052189,9.97859952 13.0143579,9.97859952 L13.0143579,9.97859952 C15.2234969,9.97859952 17.2234969,8.78812333 19.0143579,6.40717095 C17.2234969,4.02621857 15.2234969,2.83574238 13.0143579,2.83574238",transform:"translate(13.014358, 6.407171) scale(1, -1) rotate(90.000000) translate(-13.014358, -6.407171) "}),(0,i.jsx)("path",{d:"M0.835742379,12.5857864 C2.62660338,14.9667388 4.62660338,16.157215 6.83574238,16.157215 L6.83574238,16.157215 C9.04488138,16.157215 11.0448814,14.9667388 12.8357424,12.5857864 C11.0448814,10.2048341 9.04488138,9.01435787 6.83574238,9.01435787",transform:"translate(6.835742, 12.585786) scale(1, -1) rotate(180.000000) translate(-6.835742, -12.585786) "})]})})})})})},l=function(e){var t=e.className;return(0,i.jsxs)(r.a1,{className:t,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,i.jsx)("rect",{fill:"none",x:"10.5",y:"5",width:"16",height:"16",rx:"2",strokeLinecap:"round",strokeDasharray:"1 2"}),(0,i.jsx)("path",{fill:"none",d:"M13.5 10H23.5",strokeLinecap:"round"}),(0,i.jsx)("path",{fill:"none",d:"M13.5 13H23.5",strokeLinecap:"round"}),(0,i.jsx)("path",{fill:"none",d:"M13.5 16H18.5",strokeLinecap:"round"}),(0,i.jsx)("path",{fill:"none",d:"M7.5 10.5005H7C5.89543 10.5005 5 11.3959 5 12.5005V24.5005C5 25.6051 5.89543 26.5005 7 26.5005H19C20.1046 26.5005 21 25.6051 21 24.5005V24.0005",strokeLinecap:"round"})]})},d=function(e){var t=e.className;return(0,i.jsxs)(r.a1,{className:t,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,i.jsx)("path",{d:"M8.48832 16.8179L6.45122 17.994C5.8496 18.3413 5.8496 19.2097 6.45122 19.5571L16.6216 25.4289C17.18 25.7513 17.868 25.7513 18.4265 25.4289L25.5487 21.3169C26.1504 20.9695 26.1504 20.1012 25.5487 19.7538L23.5 18.571",stroke:"#9FA6BF",strokeMiterlimit:"10",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M23.5 14.7509L25.5487 15.9338C26.1504 16.2811 26.1504 17.1495 25.5487 17.4968L18.4265 21.6089C17.868 21.9313 17.18 21.9313 16.6216 21.6089L6.45122 15.737C5.8496 15.3897 5.8496 14.5213 6.45122 14.174L8.48459 13",stroke:"#9FA6BF",strokeMiterlimit:"10",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M25.5487 13.6767L18.4265 17.7888C17.868 18.1112 17.18 18.1112 16.6216 17.7888L6.45122 11.9169C5.8496 11.5696 5.8496 10.7012 6.45122 10.3539L13.5735 6.24181C14.1319 5.9194 14.8199 5.9194 15.3784 6.24181L25.5487 12.1137C26.1504 12.461 26.1504 13.3294 25.5487 13.6767Z",fill:"white",stroke:"#9FA6BF",strokeMiterlimit:"10",strokeLinejoin:"round"})]})},h=function(e){var t=e.className;return(0,i.jsxs)(r.a1,{className:t,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,i.jsx)("circle",{fill:"none",cx:"22.2941",cy:"9.6046",r:"4.20592"}),(0,i.jsx)("path",{fill:"none",d:"M25.8237 15.8024V19.0167C25.8237 20.3162 24.7702 21.3697 23.4707 21.3697H17.4602L11.7111 26.1833V21.3697H9.35296C8.05346 21.3697 7 20.3162 7 19.0167V9.60491C7 8.30541 8.05346 7.25195 9.35296 7.25195H14.629H15.2173",strokeLinecap:"round"}),(0,i.jsx)("path",{fill:"none",d:"M16.4119 16.6637L19.3531 13.1343",strokeLinecap:"round"})]})},f=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32",viewBox:"0 0 32 32",children:(0,i.jsx)("path",{d:"M25,5.5c-1.4,0-2.5,1.1-2.5,2.5c0,0.8,0.3,1.5,0.9,1.9l-3.7,6.7c-0.2-0.1-0.5-0.1-0.7-0.1 c-0.6,0-1.2,0.2-1.6,0.6l-3.2-2.5c0.2-0.3,0.3-0.7,0.3-1.1c0-1.4-1.1-2.5-2.5-2.5s-2.5,1.1-2.5,2.5c0,0.7,0.3,1.4,0.8,1.9 l-2.5,4.3c-0.2-0.1-0.5-0.1-0.8-0.1c-1.4,0-2.5,1.1-2.5,2.5s1.1,2.5,2.5,2.5s2.5-1.1,2.5-2.5c0-0.7-0.3-1.4-0.8-1.9l2.5-4.3 C11.4,16,11.7,16,12,16c0.6,0,1.2-0.2,1.6-0.6l3.2,2.5c-0.2,0.3-0.3,0.7-0.3,1.1c0,1.4,1.1,2.5,2.5,2.5s2.5-1.1,2.5-2.5 c0-0.8-0.3-1.5-0.9-1.9l3.7-6.7c0.2,0.1,0.5,0.1,0.7,0.1c1.4,0,2.5-1.1,2.5-2.5S26.4,5.5,25,5.5z M8.1,21c0.2,0.3,0.4,0.6,0.4,1 c0,0.8-0.7,1.5-1.5,1.5S5.5,22.8,5.5,22s0.7-1.5,1.5-1.5c0.1,0,0.2,0,0.3,0C7.6,20.6,7.9,20.8,8.1,21z M13.4,14 c-0.1,0.3-0.3,0.6-0.6,0.8C12.6,14.9,12.3,15,12,15c-0.1,0-0.2,0-0.3,0c-0.3-0.1-0.6-0.2-0.9-0.5c-0.2-0.3-0.4-0.6-0.4-1 c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5C13.5,13.7,13.5,13.8,13.4,14z M19,20.5c-0.8,0-1.5-0.7-1.5-1.5c0-0.2,0-0.3,0.1-0.5 c0.1-0.3,0.3-0.6,0.6-0.8c0.2-0.2,0.5-0.2,0.8-0.2c0.1,0,0.2,0,0.2,0c0.4,0,0.7,0.2,0.9,0.5c0.2,0.3,0.4,0.6,0.4,1 C20.5,19.8,19.8,20.5,19,20.5z M25,9.5c-0.1,0-0.2,0-0.2,0c-0.4,0-0.7-0.2-0.9-0.5c-0.2-0.3-0.4-0.6-0.4-1c0-0.8,0.7-1.5,1.5-1.5 s1.5,0.7,1.5,1.5S25.8,9.5,25,9.5z",stroke:"none"})})},p=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32",height:"32",fill:"none",viewBox:"0 0 32 32",children:(0,i.jsx)("path",{fill:"none",stroke:"#9FA6BF",strokeLinecap:"round",strokeLinejoin:"round",d:"M19 15v0a3 3 0 013 3v3a3 3 0 01-3 3h-7a3 3 0 01-3-3v-3a3 3 0 013-3h7zm0 0v-3.5A3.5 3.5 0 0015.5 8v0a3.5 3.5 0 00-3.5 3.5v.5m3.5 6.5v2"})})},y=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,i.jsx)("path",{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 7.5H11.5C10.3954 7.5 9.5 8.39543 9.5 9.5V22.5M22.5 24.5H11.5C10.3954 24.5 9.5 23.6046 9.5 22.5V22.5M22.5 16.5V20.5H11.5C10.3954 20.5 9.5 21.3954 9.5 22.5V22.5M22.5 22.5H11.5M22.5 4.5V7.5M22.5 10.5V7.5M22.5 7.5H25.5H19.5M25.5 13.5H19.5"})})},g=function(e){var t=e.className;return(0,i.jsxs)(r.a1,{className:t,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,i.jsx)("path",{fill:"none",strokeLinecap:"round",stroke:"#97A0BF",d:"M26.054 15.915c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10zm-10-2.3v7.594"}),(0,i.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",stroke:"#97A0BF",d:"M16.054 10.621v.022"})]})},E=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,i.jsx)("path",{fill:"none",d:"M21 17.5V24.5M24.5 21H17.5M18.5 7.5H23.5C24.0523 7.5 24.5 7.94772 24.5 8.5V13.5C24.5 14.0523 24.0523 14.5 23.5 14.5H18.5C17.9477 14.5 17.5 14.0523 17.5 13.5V8.5C17.5 7.94772 17.9477 7.5 18.5 7.5ZM8.5 7.5H13.5C14.0523 7.5 14.5 7.94772 14.5 8.5V13.5C14.5 14.0523 14.0523 14.5 13.5 14.5H8.5C7.94772 14.5 7.5 14.0523 7.5 13.5V8.5C7.5 7.94772 7.94772 7.5 8.5 7.5ZM8.5 24.5H13.5C14.0523 24.5 14.5 24.0523 14.5 23.5V18.5C14.5 17.9477 14.0523 17.5 13.5 17.5H8.5C7.94772 17.5 7.5 17.9477 7.5 18.5V23.5C7.5 24.0523 7.94772 24.5 8.5 24.5Z",strokeLinecap:"round",strokeLinejoin:"round"})})},v=function(e){var t=e.className;return(0,i.jsx)(r.a1,{className:t,viewBox:"0 0 32 32",fill:"none",children:(0,i.jsx)("g",{transform:"translate(8.500000, 2.000000)",stroke:"none",strokeWidth:"1",children:(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.25 0.5C16.4451 0.5 16.6223 0.613444 16.704 0.790577L18.4912 4.66522L22.7285 5.16761C22.9222 5.19058 23.0849 5.32411 23.1452 5.50963C23.2054 5.69515 23.1523 5.89879 23.0091 6.03123L19.8764 8.92828L20.708 13.1134C20.746 13.3047 20.6693 13.5007 20.5114 13.6154C20.3536 13.73 20.1435 13.7424 19.9733 13.6472L16.25 11.563L14 12.8225V23C14 23.2761 13.7761 23.5 13.5 23.5H9.25H5.25H1C0.723858 23.5 0.5 23.2761 0.5 23V6.5C0.5 6.22386 0.723858 6 1 6H9.45996C9.34029 5.86809 9.29912 5.68112 9.35484 5.50963C9.41512 5.32411 9.57779 5.19058 9.7715 5.16761L14.0088 4.66522L15.796 0.790577C15.8777 0.613444 16.0549 0.5 16.25 0.5ZM12.5267 13.6472L13 13.3822V22.5H9.75V18C9.75 17.7239 9.52614 17.5 9.25 17.5H5.25C4.97386 17.5 4.75 17.7239 4.75 18V22.5H1.5V7H10.5385L12.6236 8.92828L11.792 13.1134C11.754 13.3047 11.8307 13.5007 11.9886 13.6154C12.1464 13.73 12.3565 13.7424 12.5267 13.6472ZM16.25 2.19376L14.7996 5.33821C14.7268 5.49611 14.5771 5.60483 14.4044 5.62531L10.9657 6.03303L13.5081 8.38412C13.6357 8.50219 13.6929 8.6781 13.659 8.84866L12.9841 12.2451L16.0058 10.5537C16.1575 10.4688 16.3425 10.4688 16.4942 10.5537L19.5159 12.2451L18.841 8.84866C18.8071 8.6781 18.8643 8.50219 18.9919 8.38412L21.5343 6.03303L18.0956 5.62531C17.9229 5.60483 17.7732 5.49611 17.7004 5.33821L16.25 2.19376ZM5.75 22.5H8.75V18.5H5.75V22.5ZM4 10C4 9.72386 4.22386 9.5 4.5 9.5H5.5C5.77614 9.5 6 9.72386 6 10V11C6 11.2761 5.77614 11.5 5.5 11.5H4.5C4.22386 11.5 4 11.2761 4 11V10ZM8.5 10C8.5 9.72386 8.72386 9.5 9 9.5H10C10.2761 9.5 10.5 9.72386 10.5 10V11C10.5 11.2761 10.2761 11.5 10 11.5H9C8.72386 11.5 8.5 11.2761 8.5 11V10ZM4 14C4 13.7239 4.22386 13.5 4.5 13.5H5.5C5.77614 13.5 6 13.7239 6 14V15C6 15.2761 5.77614 15.5 5.5 15.5H4.5C4.22386 15.5 4 15.2761 4 15V14ZM8.5 14C8.5 13.7239 8.72386 13.5 9 13.5H10C10.2761 13.5 10.5 13.7239 10.5 14V15C10.5 15.2761 10.2761 15.5 10 15.5H9C8.72386 15.5 8.5 15.2761 8.5 15V14Z"})})})}},9490:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});n(72791);var r=n(80184),i=function(e){var t=e.className;return(0,r.jsxs)("svg",{className:t,width:"124",height:"16",viewBox:"0 0 124 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-qa":"start-trial-badge",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,r.jsx)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H120C122.209 0 124 1.79086 124 4V12C124 14.2091 122.209 16 120 16H4C1.79086 16 0 14.2091 0 12V4Z",fill:"#EDF5FF"}),(0,r.jsx)("path",{d:"M6 7.10345L8.52632 4H11.0526M6 7.10345L12 13M6 7.10345H9.47368M18 7.10345L15.4737 4H12.9474M18 7.10345L12 13M18 7.10345H14.2105M12 13L9.47368 7.10345M12 13L14.2105 7.10345M9.47368 7.10345H14.2105M9.47368 7.10345L11.0526 4M14.2105 7.10345L12.9474 4M12.9474 4H11.0526",stroke:"#4A6EE0",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M29.2583 6.54545C29.2157 6.18561 29.0429 5.90625 28.7399 5.70739C28.4368 5.50852 28.0652 5.40909 27.6248 5.40909C27.1419 5.40909 26.7536 5.52391 26.46 5.75355C26.1665 5.98082 26.0197 6.26847 26.0197 6.61648C26.0197 6.87689 26.099 7.08759 26.2576 7.24858C26.4186 7.4072 26.608 7.53149 26.8258 7.62145C27.046 7.70904 27.246 7.77651 27.426 7.82386L28.1646 8.02273C28.354 8.07244 28.5647 8.1411 28.7967 8.22869C29.0311 8.31629 29.2548 8.43584 29.4679 8.58736C29.6833 8.73651 29.8609 8.92827 30.0005 9.16264C30.1402 9.39702 30.21 9.68466 30.21 10.0256C30.21 10.4186 30.1071 10.7737 29.9011 11.0909C29.6975 11.4081 29.3992 11.6603 29.0062 11.8473C28.6156 12.0343 28.1409 12.1278 27.5822 12.1278C26.801 12.1278 26.1807 11.9432 25.7214 11.5739C25.2621 11.2045 25.0112 10.7216 24.9686 10.125H25.8777C25.9013 10.3996 25.9937 10.6269 26.1547 10.8068C26.318 10.9844 26.524 11.117 26.7725 11.2045C27.0235 11.2898 27.2934 11.3324 27.5822 11.3324C27.9184 11.3324 28.2202 11.2779 28.4877 11.169C28.7553 11.0578 28.9672 10.9039 29.1234 10.7074C29.2797 10.5085 29.3578 10.2765 29.3578 10.0114C29.3578 9.76989 29.2903 9.57339 29.1554 9.42188C29.0204 9.27036 28.8429 9.14725 28.6227 9.05256C28.4025 8.95786 28.1646 8.875 27.9089 8.80398L27.014 8.5483C26.4458 8.38494 25.996 8.15175 25.6646 7.84872C25.3332 7.54569 25.1674 7.14915 25.1674 6.65909C25.1674 6.25189 25.2775 5.89678 25.4977 5.59375C25.7202 5.28835 26.0185 5.05161 26.3926 4.88352C26.769 4.71307 27.1892 4.62784 27.6532 4.62784C28.122 4.62784 28.5386 4.71188 28.9032 4.87997C29.2678 5.04569 29.5566 5.27296 29.7697 5.56179C29.9851 5.85062 30.0988 6.1785 30.1106 6.54545H29.2583ZM31.6603 5.50852V4.72727H37.1148V5.50852H34.8279V12H33.9472V5.50852H31.6603ZM38.3227 12H37.3994L40.0699 4.72727H40.979L43.6494 12H42.7261L41.9946 9.94034H39.0543L38.3227 12ZM39.3313 9.15909H41.7176L40.5528 5.87784H40.496L39.3313 9.15909ZM45.1822 12V4.72727H47.6396C48.2078 4.72727 48.6742 4.82434 49.0388 5.01847C49.4034 5.21023 49.6732 5.47419 49.8484 5.81037C50.0236 6.14654 50.1112 6.52888 50.1112 6.95739C50.1112 7.44034 50 7.86174 49.7774 8.22159C49.5572 8.57907 49.2152 8.83712 48.7511 8.99574L50.3953 12H49.3726L47.8385 9.15554C47.7793 9.15791 47.7178 9.15909 47.6538 9.15909H46.0629V12H45.1822ZM46.0629 8.36364H47.6254C48.2078 8.36364 48.6233 8.23816 48.8719 7.98722C49.1205 7.73627 49.2447 7.39299 49.2447 6.95739C49.2447 6.51941 49.1193 6.16903 48.8683 5.90625C48.6197 5.6411 48.2007 5.50852 47.6112 5.50852H46.0629V8.36364ZM51.581 5.50852V4.72727H57.0355V5.50852H54.7486V12H53.8679V5.50852H51.581ZM62.0072 12V4.72727H66.368V5.50852H62.8879V7.96591H66.0413V8.74716H62.8879V12H62.0072ZM68.2764 12V4.72727H70.7338C71.302 4.72727 71.7683 4.82434 72.1329 5.01847C72.4975 5.21023 72.7674 5.47419 72.9426 5.81037C73.1178 6.14654 73.2054 6.52888 73.2054 6.95739C73.2054 7.44034 73.0941 7.86174 72.8716 8.22159C72.6514 8.57907 72.3093 8.83712 71.8453 8.99574L73.4895 12H72.4667L70.9326 9.15554C70.8734 9.15791 70.8119 9.15909 70.748 9.15909H69.1571V12H68.2764ZM69.1571 8.36364H70.7196C71.302 8.36364 71.7174 8.23816 71.966 7.98722C72.2146 7.73627 72.3389 7.39299 72.3389 6.95739C72.3389 6.51941 72.2134 6.16903 71.9625 5.90625C71.7139 5.6411 71.2949 5.50852 70.7054 5.50852H69.1571V8.36364ZM75.0729 12V4.72727H79.4621V5.50852H75.9536V7.96591H79.2348V8.74716H75.9536V11.2188H79.5189V12H75.0729ZM81.4494 12V4.72727H85.8386V5.50852H82.3301V7.96591H85.6114V8.74716H82.3301V11.2188H85.8955V12H81.4494ZM90.6408 5.50852V4.72727H96.0953V5.50852H93.8084V12H92.9277V5.50852H90.6408ZM97.8545 12V4.72727H100.312C100.88 4.72727 101.346 4.82434 101.711 5.01847C102.076 5.21023 102.346 5.47419 102.521 5.81037C102.696 6.14654 102.783 6.52888 102.783 6.95739C102.783 7.44034 102.672 7.86174 102.45 8.22159C102.23 8.57907 101.887 8.83712 101.423 8.99574L103.068 12H102.045L100.511 9.15554C100.452 9.15791 100.39 9.15909 100.326 9.15909H98.7352V12H97.8545ZM98.7352 8.36364H100.298C100.88 8.36364 101.296 8.23816 101.544 7.98722C101.793 7.73627 101.917 7.39299 101.917 6.95739C101.917 6.51941 101.792 6.16903 101.541 5.90625C101.292 5.6411 100.873 5.50852 100.283 5.50852H98.7352V8.36364ZM105.532 4.72727V12H104.651V4.72727H105.532ZM107.996 12H107.072L109.743 4.72727H110.652L113.322 12H112.399L111.668 9.94034H108.727L107.996 12ZM109.004 9.15909H111.391L110.226 5.87784H110.169L109.004 9.15909ZM114.855 12V4.72727H115.736V11.2188H119.117V12H114.855Z",fill:"#4A6EE0"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0",children:(0,r.jsx)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H120C122.209 0 124 1.79086 124 4V12C124 14.2091 122.209 16 120 16H4C1.79086 16 0 14.2091 0 12V4Z",fill:"white"})})})]})}},49347:function(e,t,n){"use strict";n.d(t,{l:function(){return b},s:function(){return g}});var r=n(36222),i=n(18489),o=n(83738),a=n(81694),s=n.n(a),u=n(12782),c=(n(72791),n(55047)),M=n(76020),m=n(32938),l=n(43568),d=n(66578),h=n(21342),f=n(80184),p=["tooltipContent","subMenu"],y=["tooltipContent","children"],g=function(e){var t=e.tooltipContent,n=e.subMenu,r=(0,o.Z)(e,p);return(0,f.jsx)(M.u,{title:t,children:(0,f.jsx)(E,(0,i.Z)((0,i.Z)({subMenu:n},r),{},{children:(0,f.jsx)(v,(0,i.Z)({subMenu:n},r))}))})},E=function(e){var t,n=(0,l.qm)().isAndroidSDK,i=s()(h.Z.item,(t={},(0,r.Z)(t,h.Z.itemAndroidSDK,n),(0,r.Z)(t,h.Z.disabledMenuItem,e.disabled),(0,r.Z)(t,h.Z.subMenuItem,e.subMenu),t));return"route"in e?(0,f.jsx)(c.OL,{to:e.route,className:i,activeClassName:s()((0,r.Z)({},h.Z.itemSelected,!e.menuGroup)),exact:"/"===e.route,children:e.children}):(0,f.jsx)("button",{type:"button",onClick:e.action,className:i,children:e.children})},v=function(e){var t=e.Icon,n=e.label,i=e.withRedDot,o=e.rightIcon,a=void 0===o?u.Wx.empty():o,c=(0,l.qm)().isAndroidSDK;return(0,f.jsxs)(f.Fragment,{children:[t&&(0,f.jsx)(t,{className:s()(h.Z.itemIcon,(0,r.Z)({},h.Z.itemIconAndroidSDK,c))}),(0,f.jsx)(m.XY,{className:h.Z.itemLabel,children:n}),a.map((function(e){return(0,f.jsx)("span",{className:h.Z.rightIcon,children:e},"menu-right-icon")})).orNull(),i&&(0,f.jsx)(d.op,{className:h.Z.redDot},"menu-left-icon")]})},b=function(e){var t=e.tooltipContent,n=e.children,r=(0,o.Z)(e,y);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(M.u,{title:t,children:(0,f.jsx)(E,(0,i.Z)((0,i.Z)({},r),{},{menuGroup:!0,children:(0,f.jsx)(v,(0,i.Z)({},r))}))}),(0,f.jsx)("div",{className:h.Z.subMenuWrapper,children:n})]})}},40347:function(e,t,n){"use strict";n.d(t,{il:function(){return U},Lh:function(){return X},ry:function(){return K},R6:function(){return J},ZP:function(){return Z}});var r=n(12782),i=(n(72791),n(99023)),o=n(5746),a=n(54156),s=n(90494),u=n(44582),c=n(16658),M=n(43568),m=n(68279),l=n(32938),d=n(66578),h=n(49347),f=n(21342),p=n(49830),y=n(18489),g=n(39967),E=n(63717),v=n(58867),b=n(53310),w=n(79760),S=n(70345),C=n(45780),A=n(79769),_="Your browser is not supported. Please use one of our supported browsers: Chrome, Safari, Firefox, Edge.",H=n(76020),k=n(80184);function P(e){var t,n,i=e.user,o=e.ownerInstitutionInfo;return i.user.confirmed&&0===(null!==(t=o.userTypes.Active)&&void 0!==t?t:0)&&0===(null!==(n=o.userTypes.Invited)&&void 0!==n?n:0)?r.Wx.of((0,k.jsx)(N,{})):r.Wx.none()}var N=function(){return(0,k.jsx)(H.u,{title:(0,k.jsxs)("span",{className:f.Z.tooltip,children:["Invite team members to use ",(0,k.jsx)("br",{}),"Grammarly Business."]}),align:"right",className:f.Z.rightIcon,ariaLabel:"invite",tabIndex:0,interactive:!0,children:(0,k.jsx)(d.Ko,{})})},T=a.w6?_:void 0,R=function(e){var t=e.children,n=e.institutionMemberInfo.map((function(e){return e.institution.name.toUpperCase()})).getOrElse("ORGANIZATION");return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(l.by,{htmlElement:"h2",className:f.Z.subtitle,children:n}),(0,k.jsx)(s.L,{small:!0}),t,(0,k.jsx)(s.L,{double:!0})]})},B=(0,i.observer)((function(e){var t=e.user,n=t.institutionMemberInfo.exists((function(e){return e.institution.brandTonesEnabled})),r=t.institutionMemberInfo.exists((function(e){return e.institution.voxEnabled})),i=t.institutionMemberInfo.exists((function(e){return"EDU"===e.institution.organizationType||"K12"===e.institution.organizationType})),o=t.permissions.hasGroupPermissionForSomeGroup({feature:g.n5.Feature.Institution,permission:g.n5.InstitutionPermission.MembershipRead}),s=function(){return i?null:(0,k.jsx)(h.s,{Icon:p.cp,label:"Analytics",route:"/admin/analytics",disabled:a.w6,tooltipContent:T})};return(0,k.jsxs)(R,{institutionMemberInfo:t.institutionMemberInfo,children:[o&&(0,k.jsx)(I,{}),(0,k.jsx)(s,{}),e.experiments.isActive(u.t2.knowledgeHub,"enabled")&&(0,k.jsx)(h.s,{Icon:p.KE,label:"Knowledge Hub",route:C.t.Home}),r&&(0,k.jsx)(h.s,{Icon:p.fm,label:"Style Rules",route:w.L.StyleRules}),(0,k.jsx)(h.s,{Icon:p.B6,label:"Snippets",route:"/admin/snippets"}),n&&(0,k.jsx)(h.s,{Icon:p.wd,label:"Brand Tones",route:v._.newPath})]})})),D=function(e){var t=e.info;return(0,k.jsxs)(R,{institutionMemberInfo:r.Wx.none(),children:[(0,k.jsxs)("div",{className:f.Z.lockWarning,children:[(0,k.jsx)(A.mB,{className:f.Z.lock,width:15}),(0,k.jsxs)(l.x4,{className:f.Z.lockExplainer,children:["To unlock these features, make your",(0,k.jsxs)("a",{href:t.hostedLink,className:f.Z.link,target:"_blank",rel:"noopener noreferrer",children:[" ","first payment."]})]})]}),(0,k.jsx)(s.L,{}),(0,k.jsx)(h.s,{Icon:p.Nw,label:"Members",route:"/admin/members",disabled:!0}),(0,k.jsx)(h.s,{Icon:p.cp,label:"Analytics",route:"/admin/analytics",disabled:!0}),(0,k.jsx)(h.s,{Icon:p.fm,label:"Style Rules",route:w.L.StyleRules,disabled:!0}),(0,k.jsx)(h.s,{Icon:p.B6,label:"Snippets",route:"/admin/snippets",disabled:!0}),(0,k.jsx)(h.s,{Icon:p.wd,label:"Brand Tones",route:v._.newPath,disabled:!0})]})},F=function(){return(0,k.jsxs)(h.l,{Icon:p.fm,label:"Style Guide",route:w.L.Home,children:[(0,k.jsx)(h.s,{subMenu:!0,label:"Style Rules",route:w.L.StyleRules}),(0,k.jsx)(h.s,{subMenu:!0,label:"Writing Preferences",route:w.L.WritingStyles})]})},I=function(){return(0,k.jsxs)(h.l,{Icon:p.Nw,label:"Organization",route:E.p.Index,children:[(0,k.jsx)(h.s,{subMenu:!0,label:"Members",route:E.p.Index}),(0,k.jsx)(h.s,{subMenu:!0,label:"Groups",route:"/admin/groups"})]})},x=(0,i.observer)((function(e){var t=e.user,n=e.experiments,r=t.institutionMemberInfo.exists((function(e){return e.institution.voxEnabled})),i=t.institutionMemberInfo.exists((function(e){return e.institution.brandTonesEnabled}));return(0,k.jsxs)(R,{institutionMemberInfo:t.institutionMemberInfo,children:[(0,k.jsx)(I,{}),(0,k.jsx)(h.s,{Icon:p.cp,label:"Analytics",route:"/admin/analytics",disabled:a.w6,tooltipContent:T}),n.isActive(u.t2.knowledgeHub,"enabled")&&(0,k.jsx)(h.s,{Icon:p.KE,label:"Knowledge Hub",route:C.t.Home}),r&&(0,k.jsx)(F,{}),(0,k.jsx)(h.s,{Icon:p.B6,label:"Snippets",route:"/admin/snippets"}),i&&(0,k.jsx)(h.s,{Icon:p.wd,label:"Brand Tones",route:v._.newPath})]})})),O=function(e){return(0,k.jsxs)(h.l,{Icon:p.Nw,label:"Organization",route:E.p.Index,children:[(0,k.jsx)(h.s,{subMenu:!0,label:"Members",route:E.p.Index,rightIcon:P(e)}),(0,k.jsx)(h.s,{subMenu:!0,label:"Groups",route:"/admin/groups"})]})},L=(0,i.observer)((function(e){var t=e.ownerInstitutionInfo,n=e.user,r=e.experiments,i=e.clientControls,o=n.institutionMemberInfo.exists((function(e){return e.institution.voxEnabled})),s=n.institutionMemberInfo.exists((function(e){return e.institution.brandTonesEnabled})),c=r.isActive(u.t2.suggestionSettings),M=i.config.userEditingEnabled,m=(0,u.Jx)(n,r);return(0,k.jsxs)(R,{institutionMemberInfo:n.institutionMemberInfo,children:[m&&(0,k.jsx)(h.s,{Icon:p.BQ,label:"Discover",route:"/admin/discover"}),(0,k.jsx)(h.s,{Icon:p.CJ,label:"Subscription",route:S.L.Index}),(0,k.jsx)(h.s,{Icon:p.XV,label:"Administration",route:z(t.organizationType)}),(0,k.jsx)(O,(0,y.Z)({},e)),(0,k.jsx)(h.s,{Icon:p.cp,label:"Analytics",route:"/admin/analytics",disabled:a.w6,tooltipContent:T}),r.isActive(u.t2.knowledgeHub,"enabled")&&(0,k.jsx)(h.s,{Icon:p.KE,label:"Knowledge Hub",route:C.t.Home}),o&&(0,k.jsx)(F,{}),(0,k.jsx)(h.s,{Icon:p.B6,label:"Snippets",route:"/admin/snippets"}),s&&(0,k.jsx)(h.s,{Icon:p.wd,label:"Brand Tones",route:v._.newPath}),c&&(0,k.jsx)(h.s,{Icon:p.Xy,label:"Suggestion Settings",route:"/admin/suggestion-settings"}),M&&(0,k.jsx)(h.s,{Icon:p.WL,label:"Team Security Controls",route:"/admin/client-controls"})]})})),j=(0,i.observer)((function(e){var t=(0,m.Y0)().data,n=e.user;return n.isInstitutionUser?(0,k.jsx)(B,(0,y.Z)({},e)):n.isContributor?(0,k.jsx)(x,(0,y.Z)({},e)):n.isOwner?n.ownerInstitutionInfo.map((function(t){return(0,k.jsx)(L,(0,y.Z)({ownerInstitutionInfo:t},e),"owner")})).orNull():null!==t&&void 0!==t&&t.stripeInvoiceInfo?(0,k.jsx)(D,(0,y.Z)({info:t.stripeInvoiceInfo},e)):null}));function z(e){return e&&"EDU"!==e&&"K12"!==e?b.D.ProductSettings:b.D.Authentication}var Q=function(){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(l.ck,{className:f.Z.subtitle,children:["WORKSPACE ",(0,k.jsx)(d.c3,{className:f.Z.subtitleBadge})]}),(0,k.jsx)(s.L,{small:!0}),(0,k.jsx)(h.s,{Icon:p.Nw,label:"Members",route:"/workspace/members"}),(0,k.jsx)(h.s,{Icon:p.fm,label:"Style Guide",route:"/workspace/style-guide"}),(0,k.jsx)(h.s,{Icon:p.B6,label:"Snippets",route:"/workspace/snippets"}),(0,k.jsx)(s.L,{double:!0})]})},G=n(9490),W=(0,i.observer)((function(e){var t=e.ctx,n=t.user,i=t.settings,o=t.experiments,a=t.clientControls,c=(0,m.Y0)().data;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(l.by,{htmlElement:"h2",className:f.Z.subtitle,children:"MY ACCOUNT"}),(0,k.jsx)(s.L,{small:!0}),(0,k.jsxs)("nav",{"aria-label":"main",children:[(0,k.jsx)(U,{}),(0,k.jsx)(Y,{}),(0,k.jsx)(X,{}),(0,k.jsx)(J,{}),(0,k.jsx)(K,{}),n.isPersonal&&(0,u.qV)(o)&&(0,k.jsx)(h.s,{Icon:p.PJ,label:"Privacy",route:"/privacy"}),n.isPersonal&&!(null!==c&&void 0!==c&&c.stripeInvoiceInfo)&&((0,u.BN)(o)?(0,k.jsx)(h.s,{Icon:p.os,label:"Try Grammarly Business",route:"/try-grammarly-business"}):(0,k.jsx)(h.s,{Icon:p.fm,label:"Style Guide",route:"/style-guide",rightIcon:r.Wx.of((0,k.jsx)(d.J1,{}))})),(0,k.jsx)(s.L,{}),(0,k.jsx)(j,{user:n,settings:i,experiments:o,clientControls:a}),n.isWorkspace&&(0,k.jsx)(Q,{experiments:o})]})]})})),U=function(){return(0,k.jsx)(h.s,{Icon:p.XV,label:"Account Settings",route:"/"})},X=function(){var e=a.w6?_:void 0;return(0,k.jsx)(h.s,{Icon:d.E1,label:"Customize",route:"/customize",disabled:a.w6,tooltipContent:e})},J=function(e){var t=e.isEligibleForTrial,n=(0,M.ph)(),i=(0,M.nV)().disableAppsPromotion;return(0,k.jsx)(o.Qj,{children:function(){if(n.isOwner||i)return(0,k.jsx)(k.Fragment,{});var e=n.isInstitutionUser||n.isContributor||"Free"===n.user.type?t?r.Wx.of((0,k.jsx)(G.u,{})):r.Wx.none():n.isPremiumTrial?r.Wx.of((0,k.jsx)(d.Pe,{})):r.Wx.of((0,k.jsx)(c.C.Premium,{}));return(0,k.jsx)(h.s,{Icon:p.CJ,label:"Subscription",route:"/subscription",rightIcon:e})}})},K=function(){var e=(0,M.ph)(),t=(0,M.bp)().experiments.isActive(u.t2.kazaSecurityHub);return(0,k.jsx)(o.Qj,{children:function(){var n=t&&!e.user.confirmed,r=a.w6?_:void 0;return(0,k.jsx)(h.s,{Icon:p.WL,label:"Security",route:"/security",disabled:a.w6,tooltipContent:r,withRedDot:n})}})},Y=function(){return(0,u.Y7)((0,M.JM)(),(0,M.ph)())?(0,k.jsx)(h.s,{Icon:p.cp,label:"Writing Progress",route:"/writing-progress",rightIcon:r.Wx.of((0,k.jsx)(d.c3,{className:f.Z.denmo}))}):(0,k.jsx)(k.Fragment,{})},Z=(0,M.OD)(W)},85450:function(e,t,n){"use strict";n.d(t,{Dt:function(){return f},VV:function(){return h},sx:function(){return p}});n(72791);var r=n(25731),i=n(36993),o=n(90494),a=n(61784),s=n(54156),u=n(686),c=n(32938),M=n(24245),m=n(64487),l=n(80184),d=s.tq?M.Z:m.Z,h=function(e){var t=e.form;return(0,l.jsxs)(u.K,{children:[(0,l.jsx)(c.x4,{children:"Tell us what you think. We promise to act on your feedback to make Grammarly even more awesome."}),(0,l.jsx)(a.l,{source:t,children:function(e){var t=e.brief,n=e.feedback,r=e.error;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.Input,{placeholder:"Brief description",maxLength:100}),(0,l.jsx)(o.L,{small:!0}),(0,l.jsx)(n.TextArea,{placeholder:"Type your feedback",maxLength:1e3,rows:4}),(0,l.jsx)(r.Notice,{})]})}})]})},f=function(e){var t=e.form,n=e.children;return(0,l.jsx)(a.l,{source:t,children:function(e){var t=e.submit;return(0,l.jsx)(t.Button,{className:d.productFeedbackBtn,children:n})}})},p=function(e){return new r.K({fields:{brief:{value:"",validation:i.aH},feedback:{value:"",validation:i.aH}},onSubmit:e})}},90494:function(e,t,n){"use strict";n.d(t,{L:function(){return m}});var r=n(36222),i=n(81694),o=n.n(i),a=(n(72791),"style_spacer__nVSwo"),s="style_double__p9Zw-",u="style_triple__zo-0U",c="style_small__IWh6D",M=n(80184),m=function(e){var t,n=e.double,i=e.triple,m=e.small;return(0,M.jsx)("div",{className:o()(a,(t={},(0,r.Z)(t,s,n),(0,r.Z)(t,u,i),(0,r.Z)(t,c,m),t))})}},46605:function(e,t,n){"use strict";n.d(t,{K:function(){return u}});var r=n(72791),i=n(54156),o=n(90494),a=n(80184);function s(e){return"desktop"in e&&"mobile"in e}var u=function(e){var t=e.spacer,n=void 0===t?(0,a.jsx)(o.L,{}):t,u=e.container,c=e.children;return r.createElement(null!==u&&void 0!==u?u:r.Fragment,null,c.filter(Boolean).reduce((function(e,t,o,u){var c=(0,a.jsx)(r.Fragment,{children:t},"stack.child.".concat(o)),M=(0,a.jsx)("div",{"data-name":"stack.spacer.".concat(o),children:s(n)?i.tq?n.mobile:n.desktop:n},"stack.spacer.".concat(o)),m=o===u.length-1;return e.concat(m?[c]:[c,M])}),[]))}},10170:function(e,t,n){"use strict";n.d(t,{K:function(){return b}});var r,i=n(18489),o=n(83738),a=n(27853),s=n(84531),u=n(81020),c=n(804),M=n(72791),m=n(81694),l=n.n(m),d=n(19177),h=n(99023),f="textarea_inputWrapper__tm1GH",p="textarea_textarea__veOHc",y="textarea_error__-1Uu-",g="textarea_label__nQ44d",E=n(80184),v=["value","observableValue","labelElement","className","wrapperClassName","placeholder","error","handleChange","hideError"],b=(0,h.observer)(r=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;(0,a.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=new Date("07/14/2022")})),r=new URL(window.location.href).searchParams.getAll("exp").includes("gb_ss_owner_onboarding_kaza_test");return e.isOwner&&e.isBusinessUser&&e.isSelfServeInstitutionMember&&n&&t.isActive(i.gbOwnerOnboarding,i.gbOwnerOnboarding.experiences.test)||r},m=function(e){return e.isActive(i.inviteLinks,i.inviteLinks.experiences.test)},l=function(e){return e.isActive(i.trfsUpsell,i.trfsUpsell.experiences.test)},d=n(18489),h=n(33032),f=n(27853),p=n(84531),y=n(84322),g=n.n(y),E=n(83367),v=n(34163),b=n(23168),w=function(){function e(t,n,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Object.values(i),u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.values(o);(0,f.Z)(this,e),this.experiments=void 0,this.gates=void 0,this.manakinClient=void 0,this.treatmentService=void 0,this.gateService=void 0,this.log=E.Monitoring.Logging.getLogger("ManakinExperimentService",v.LogLevel.TRACE),this.oauthClient=void 0,this.oauthClient=(0,b.O)(),this.treatmentService=new r.JB(t,S(a,this.oauthClient,this.log),n),this.gateService=new r.s(t,S(a,this.oauthClient,this.log),n),this.experiments=s,this.gates=u,this.manakinClient=new r.XJ(this.treatmentService,this.experiments,this.gateService,this.gates)}return(0,p.Z)(e,[{key:"load",value:function(){var e=(0,h.Z)(g().mark((function e(){var t=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.manakinClient.fetchTreatments().catch((function(e){return t.log.fatal("Couldn't load Manakin experiments",e)})));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isActive",value:function(e){if(e instanceof r.Cc)return this.manakinClient.isGateEnabled(e);var t=this.manakinClient.getTreatment(e);if(null===t)return!1;for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o1?n-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),r=1;r3?s-3:0),c=3;c0?function(){return n.openSpecificStep(e,t-1)}:void 0,s=function(e,t,n){var r,i=function(){var t=(0,v.Z)(w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(null===e||void 0===e?void 0:e.next)){t.next=2;break}return t.abrupt("return",n());case 2:return t.next=4,e.next();case 4:if(!t.sent){t.next=6;break}return t.abrupt("return",n());case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,_.jsx)(T,{label:null!==(r=e.nextButtonLabel)&&void 0!==r?r:t?"complete":"next",onEnter:e.nextOnEnter,canNext:e.canNext,onClick:i})}(o,r,(function(){var i;r?(n.close(),(0,m.Or)(null===(i=o.onComplete)||void 0===i?void 0:i.call(o))):n.openSpecificStep(e,t+1)})),u={step:t+1,of:e.length,back:a,next:s};return this.open((0,i.Z)((0,i.Z)({},o),{},{footer:{multiStep:u}}))}},{key:"openTyped",value:function(e,t){var n,i,o=null===(n=(i=this.factories)[e])||void 0===n?void 0:n.call(i,t);if(!o)throw new Error("Cannot find a modal factory or the factory returns undefined for key: ".concat(e));Array.isArray(o)?this.openSteps.apply(this,(0,r.Z)(o)):this.open(o)}},{key:"listenURLQuery",value:function(t){var n=this,r=function(r){var i=(0,d.ce)(r.search,e.UrlQueryKey);i&&(Object.keys(n.factories).includes(i)?((0,d.A8)(r.search,[e.UrlQueryKey],t),n.openTyped(i)):n.logger.warn("Don\u2019t have a factory for: ".concat(i)))};setImmediate((function(){return r(t.location)})),this.disposeURLQueryListener=t.listen(r)}},{key:"disposeHistoryListener",value:function(){var e;null===(e=this.disposeURLQueryListener)||void 0===e||e.call(this)}},{key:"subscribe",value:function(e){var t=this,n=e.onOpen,r=e.onClose,i=function(){return t.subscribers.onOpen=t.subscribers.onOpen.filter((function(e){return e.notify!==n}))};this.subscribers.onOpen.push({notify:n,unsubscribe:i});var o=function(){return t.subscribers.onClose=t.subscribers.onClose.filter((function(e){return e.notify!==r}))};return this.subscribers.onClose.push({notify:r,unsubscribe:o}),function(){i(),o()}}},{key:"activeModal",get:function(){return this.modal.viewModel}},{key:"emptyModal",get:function(){return{viewModel:new f.g,params:{title:void 0,content:void 0}}}}]),e}()).UrlQueryKey="modal",k=N,P=(0,u.Z)(k.prototype,"modal",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.emptyModal}}),(0,u.Z)(k.prototype,"activeModal",[c.computed],Object.getOwnPropertyDescriptor(k.prototype,"activeModal"),k.prototype),k)},23168:function(e,t,n){"use strict";n.d(t,{T:function(){return we},O:function(){return be}});var r,i,o=n(33032),a=n(84322),s=n.n(a),u=n(3887),c=n(83738),M=n(18489),m=n(84531),l=n(27853),d=n(81020),h=n(804),f=n(52839),p=n(36222),y=n(83367),g=["timeout"];!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.HTTP_EXCEPTION=1]="HTTP_EXCEPTION",e[e.INVALID_STATE=2]="INVALID_STATE",e[e.LOCK_TIMEOUT=3]="LOCK_TIMEOUT",e[e.STORAGE_CACHE_SET_ERROR=4]="STORAGE_CACHE_SET_ERROR",e[e.STORAGE_CACHE_REMOVE_ERROR=5]="STORAGE_CACHE_REMOVE_ERROR"}(i||(i={}));var E,v=(r={},(0,p.Z)(r,i.UNKNOWN,"Unknown error"),(0,p.Z)(r,i.HTTP_EXCEPTION,"HTTP Exception"),(0,p.Z)(r,i.INVALID_STATE,"Invalid State"),(0,p.Z)(r,i.LOCK_TIMEOUT,"Lock Timeout"),(0,p.Z)(r,i.STORAGE_CACHE_SET_ERROR,"Error storing tokens"),(0,p.Z)(r,i.STORAGE_CACHE_REMOVE_ERROR,"Error removing tokens"),r),b=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.UNKNOWN,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v[r];return(0,l.Z)(this,n),(e=t.call(this,o)).code=r,e}return(0,m.Z)(n)}((0,f.Z)(Error));b.codes=i,function(e){e.INVALID_AUTHORIZATION_CODE="Invalid authorization code",e.INVALID_CLIENT_TYPE="Invalid client type",e.INVALID_CODE_VERIFIER="Invalid code verifier",e.INVALID_ORIGIN="Invalid origin",e.INVALID_PUBLIC_KEY="Invalid public key",e.INVALID_REDIRECT_URI="Invalid redirect uri",e.INVALID_REFRESH_TOKEN="Invalid refresh token",e.INVALID_SCOPE="Invalid scope",e.INVALID_GRANT_TYPE="Invalid grant type",e.ACCESS_DENIED="Access is denied",e.INVALID_CLIENT="Invalid client",e.REVOKE_ERROR="Revoke error",e.NOT_ENABLED="Oauth not enabled",e.NOT_IMPLEMENTED="Not implemented"}(E||(E={}));var w=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unknown",o=arguments.length>2?arguments[2]:void 0;return(0,l.Z)(this,n),(r=t.call(this,b.codes.HTTP_EXCEPTION,o)).serverCode=i,r.response=e,r}return(0,m.Z)(n,[{key:"status",get:function(){return this.response.status}},{key:"statusText",get:function(){return this.response.statusText}}]),n}(b),S="grammarly.lock.getAccessToken",C="/oauth2/authorize";function A(e){var t,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",r="";if("undefined"===typeof crypto||"undefined"===typeof crypto.getRandomValues){t=new Uint8Array(e);for(var i=0;i=64;){for(o=t[0],a=t[1],s=t[2],u=t[3],c=t[4],M=t[5],m=t[6],l=t[7],h=0;h<16;h++)f=r+4*h,e[h]=(255&n[f])<<24|(255&n[f+1])<<16|(255&n[f+2])<<8|255&n[f+3];for(h=16;h<64;h++)p=((d=e[h-2])>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,y=((d=e[h-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,e[h]=(p+e[h-7]|0)+(y+e[h-16]|0);for(h=0;h<64;h++)p=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&M^~c&m)|0)+(l+(T[h]+e[h]|0)|0)|0,y=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,l=m,m=M,M=c,c=u+p|0,u=s,s=a,a=o,o=p+y|0;t[0]+=o,t[1]+=a,t[2]+=s,t[3]+=u,t[4]+=c,t[5]+=M,t[6]+=m,t[7]+=l,r+=64,i-=64}return r}var B,D,F=function(){function e(){(0,l.Z)(this,e),this.digestLength=32,this.blockSize=64,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return(0,m.Z)(e,[{key:"reset",value:function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}},{key:"clean",value:function(){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:e.length;if(this.finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this.bytesHashed+=t,this.bufferLength>0){for(;this.bufferLength<64&&t>0;)this.buffer[this.bufferLength++]=e[n++],t--;64===this.bufferLength&&(R(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(t>=64&&(n=R(this.temp,this.state,e,n,t),t%=64);t>0;)this.buffer[this.bufferLength++]=e[n++],t--;return this}},{key:"finish",value:function(e){if(!this.finished){var t=this.bytesHashed,n=this.bufferLength,r=t/536870912|0,i=t<<3,o=t%64<56?64:128;this.buffer[n]=128;for(var a=n+1;a>>24&255,this.buffer[o-7]=r>>>16&255,this.buffer[o-6]=r>>>8&255,this.buffer[o-5]=r>>>0&255,this.buffer[o-4]=i>>>24&255,this.buffer[o-3]=i>>>16&255,this.buffer[o-2]=i>>>8&255,this.buffer[o-1]=i>>>0&255,R(this.temp,this.state,this.buffer,0,o),this.finished=!0}for(var s=0;s<8;s++)e[4*s+0]=this.state[s]>>>24&255,e[4*s+1]=this.state[s]>>>16&255,e[4*s+2]=this.state[s]>>>8&255,e[4*s+3]=this.state[s]>>>0&255;return this}},{key:"digest",value:function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e}},{key:"_saveState",value:function(e){for(var t=0;t1&&void 0!==o[1]?o[1]:{},n.timeout,r=(0,c.Z)(n,g),e.abrupt("return",this._config.timeout?Promise.race([this._fetch(t,(0,M.Z)({},r)),new Promise((function(e,t){return setTimeout((function(){return t(new Error("Fetch Timeout"))}),i._config.timeout)}))]):this._fetch(t,(0,M.Z)({},r)));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_parseResponse",value:function(){var e=(0,o.Z)(s().mark((function e(t,n){var r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.clone().json().catch((function(e){return{error:"unknown",message:e.message}}));case 2:if(r=e.sent,i=r.message||"HTTP error. Unable to fetch ".concat(t),n.ok){e.next=6;break}throw new w(n,r.error,i);case 6:return e.next=8,n.json();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),W=function(){function e(t,n,r){(0,l.Z)(this,e),this._tokensUrl=t,this._httpClient=new G(n,r)}return(0,m.Z)(e,[{key:"authorize",value:function(e){return this._httpClient.get(e)}},{key:"getTokens",value:function(e){return this._httpClient.post(this._tokensUrl+"/oauth2/token",e)}}]),e}();function U(e){return X.apply(this,arguments)}function X(){return(X=(0,o.Z)(s().mark((function e(t){var n,r,i,o,a,u,c,M,m,l,d,h,f,p;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.baseUrl,r=t.clientId,i=t.scopes,o=t.redirectUri,a=t.mode,u=t.state,e.next=3,j();case 3:for(p in c=e.sent,M=c.codeChallenge,m=c.codeVerifier,l=u||_(A(32)),d={client_id:r,redirect_uri:o,response_type:"code",response_mode:a,code_challenge:M,state:l,scopes:i?i.join(" "):""},h="".concat(n,"?").concat(k(d)),f=new URL(h),d)f.searchParams.set(p,d[p]);return e.abrupt("return",{origin:f.origin,authorizeUrl:h,codeVerifier:m,state:l});case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return K.apply(this,arguments)}function K(){return(K=(0,o.Z)(s().mark((function e(t){var n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.tokensClient,r=t.authorizeUrl,e.next=3,n.authorize(r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Y(e){return Z.apply(this,arguments)}function Z(){return(Z=(0,o.Z)(s().mark((function e(t){var n,r,i,o,a,u,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.tokensClient,r=t.clientId,i=t.grantType,o=t.codeVerifier,a=t.authorizationCode,u=t.refreshToken,c={client_id:r,grant_type:i},e.t0=i,e.next="refresh_token"===e.t0?5:"authorization_code"===e.t0?7:9;break;case 5:return c=(0,M.Z)((0,M.Z)({},c),{},{refresh_token:u}),e.abrupt("break",9);case 7:return c=(0,M.Z)((0,M.Z)({},c),{},{code_verifier:o,authorization_code:a}),e.abrupt("break",9);case 9:return e.next=11,n.getTokens(c);case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(e){if(e&&e.expires_at&&e.access_token&&e.refresh_token){var t=(new Date).getTime();return e.expires_at-t<=0?null:e}return null}function $(e){return q.apply(this,arguments)}function q(){return(q=(0,o.Z)(s().mark((function e(t){var n,r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.tokensClient,r=t.clientId,i=t.clientType,e.next=3,Y({tokensClient:n,clientId:r,grantType:"Desktop"===i?"urn:ietf:params:oauth:grant-type:client_id":"urn:ietf:params:oauth:grant-type:origin"});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(e){return te.apply(this,arguments)}function te(){return(te=(0,o.Z)(s().mark((function e(t){var n,r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.tokensClient,r=t.clientId,i=t.refreshToken,e.next=3,Y({tokensClient:n,clientId:r,grantType:"refresh_token",refreshToken:i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ne(e){return re.apply(this,arguments)}function re(){return(re=(0,o.Z)(s().mark((function e(t){var n,r,o,a,u,c,M,m,l,d,h;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.tokensClient,r=t.baseUrl,o=t.clientId,a=t.redirectUri,e.next=3,U({baseUrl:r+C,clientId:o,scopes:["grammarly.capi.all"],mode:"web_message",redirectUri:a});case 3:return u=e.sent,c=u.authorizeUrl,M=u.codeVerifier,m=u.state,e.next=9,J({tokensClient:n,authorizeUrl:c});case 9:if(l=e.sent,d=l.code,h=l.state,m===h){e.next=14;break}throw new b(i.INVALID_STATE);case 14:return e.next=16,Y({tokensClient:n,clientId:o,grantType:"authorization_code",codeVerifier:M,authorizationCode:d});case 16:return e.abrupt("return",e.sent);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(e){e.GET_TOKENS_ATTEMPT_WITH_REFRESH_TOKEN="GET_TOKENS_ATTEMPT_WITH_REFRESH_TOKEN",e.GET_TOKENS_ATTEMPT_WITHOUT_REFRESH_TOKEN="GET_TOKENS_ATTEMPT_WITHOUT_REFRESH_TOKEN",e.GET_TOKENS_SUCCESS="GET_TOKENS_SUCCESS",e.GET_TOKENS_FAILURE="GET_TOKENS_FAILURE",e.INVALID_REFRESH_TOKEN="INVALID_REFRESH_TOKEN",e.ACCESS_DENIED="ACCESS_DENIED",e.LOCK_TIMEOUT="LOCK_TIMEOUT"}(Q||(Q={}));var ie=function(e){return(0,M.Z)((0,M.Z)({},e),{},{timestamp_ms:Date.now()})};function oe(){return ae.apply(this,arguments)}function ae(){return(ae=(0,o.Z)(s().mark((function e(){var t,n=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:0,e.next=3,new Promise((function(e){return setTimeout(e,t)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}var ue=se(),ce=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){var r;return(0,l.Z)(this,n),(r=t.call(this)).key=e,r}return(0,m.Z)(n)}((0,f.Z)(Error));function Me(e,t,n,r,i){return me.apply(this,arguments)}function me(){return(me=(0,o.Z)(s().mark((function e(t,n,r,i,o){var a,u,c,M,m,l,d;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d=function(){l(u)&&t.removeItem(u),l(c)&&t.removeItem(c)},l=function(e){var n=t.getItem(e);if(null==n)return!1;if(n===M)return!0;var r=parseInt(String(n.split(":")[1]),10);return!Number.isFinite(r)||r+ir)){e.next=10;break}throw new ce(n);case 10:if(null==t.getItem(u)){e.next=14;break}return e.next=13,oe(de());case 13:return e.abrupt("continue",6);case 14:if(t.setItem(u,M),null==t.getItem(c)){e.next=19;break}return e.next=18,oe(de());case 18:return e.abrupt("continue",6);case 19:return t.setItem(c,M),e.next=22,oe(de());case 22:if(t.getItem(u)===M){e.next=29;break}return e.next=25,oe(de());case 25:if(t.getItem(c)===M){e.next=28;break}return e.next=28,oe(de());case 28:return e.abrupt("continue",6);case 29:return e.prev=29,m=le(Date.now()),t.setItem(u,m),t.setItem(c,m),e.next=35,o();case 35:return e.prev=35,t.removeItem(u),t.removeItem(c),e.finish(35);case 39:return e.abrupt("break",42);case 42:case"end":return e.stop()}}),e,null,[[29,,35,39]])})))).apply(this,arguments)}function le(e){return"".concat(ue,":").concat(e,":").concat(Math.floor(1e6*(1+Math.random())))}function de(){return Math.floor(1+9*Math.random())}var he=function(){function e(t){(0,l.Z)(this,e),this.locks=new Map,this.storage=t}return(0,m.Z)(e,[{key:"acquireLock",value:function(){var e=(0,o.Z)(s().mark((function e(t){var n=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=(0,o.Z)(s().mark((function e(r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Me(n.storage,t,6e4,5e3,(0,o.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){n.locks.set(t,e),r(!0)}));case 2:case"end":return e.stop()}}),e)}))));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),r(!1);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"releaseLock",value:function(){var e=(0,o.Z)(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null!=(n=this.locks.get(t))&&n(),this.locks.delete(t);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),fe=(0,m.Z)((function e(t){var n;(0,l.Z)(this,e),this._clientId=t.clientId,this._redirectUri=t.redirectUri,this._domain=(n=t.domain,/^https?:\/\//.test(n)?n:"https://".concat(n))})),pe=function(){function e(t,n){(0,l.Z)(this,e),this._storage=t,this._storageKey=n}return(0,m.Z)(e,[{key:"set",value:function(e){try{return this._storage.setItem(this._storageKey,JSON.stringify(e)),e}catch(t){throw new b(i.STORAGE_CACHE_SET_ERROR)}}},{key:"get",value:function(){try{var e=this._storage.getItem(this._storageKey);return e?JSON.parse(e):null}catch(t){return null}}},{key:"remove",value:function(){try{this._storage.removeItem(this._storageKey)}catch(e){throw new b(i.STORAGE_CACHE_REMOVE_ERROR)}}}]),e}(),ye=function(){function e(){(0,l.Z)(this,e),this.cache={},this.length=0}return(0,m.Z)(e,[{key:"getItem",value:function(e){return e in this.cache?this.cache[e]:null}},{key:"setItem",value:function(e,t){"undefined"===typeof t?this.removeItem(e):(this.cache.hasOwnProperty(e)||this.length++,this.cache[e]=t)}},{key:"removeItem",value:function(e){this.cache.hasOwnProperty(e)&&(delete this.cache[e],this.length--)}},{key:"key",value:function(e){return Object.keys(this.cache)[e]||null}},{key:"clear",value:function(){this.cache={},this.length=0}}]),e}(),ge=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){var r;return(0,l.Z)(this,n),(r=t.call(this,e))._singlePromise=null,r._tokensClient=new W(r._domain,e.fetch,e.httpClientOptions),r._storageKey=e.storageKey||"grammarly.".concat(r._clientId,".tokens"),r._storage=e.storage||new ye,r._lock=e.lock||new he(r._storage),r._onAccessDenied=e.onAccessDenied||function(){},r._cache=new pe(r._storage,r._storageKey),r._logger=y.Monitoring.Logging.getLogger("OAuth"),r}return(0,m.Z)(n,[{key:"_authorize",value:function(){var e=(0,o.Z)(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.orAnonymous,e.prev=1,e.next=4,ne({tokensClient:this._tokensClient,baseUrl:this._domain,clientId:this._clientId,redirectUri:this._redirectUri});case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!(e.t0 instanceof w)){e.next=20;break}e.t1=e.t0.message,e.next=e.t1===E.ACCESS_DENIED?13:20;break;case 13:if(!n){e.next=17;break}return e.next=16,$({tokensClient:this._tokensClient,clientId:this._clientId,clientType:"Web"});case 16:return e.abrupt("return",e.sent);case 17:return this._logger.error(Q.ACCESS_DENIED,ie(t)),e.next=20,this._onAccessDenied(e.t0);case 20:throw e.t0;case 21:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_refresh",value:function(){var e=(0,o.Z)(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ee({tokensClient:this._tokensClient,clientId:this._clientId,refreshToken:t});case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),!(e.t0 instanceof w&&e.t0.message===E.INVALID_REFRESH_TOKEN)){e.next=13;break}return this._logger.info(Q.INVALID_REFRESH_TOKEN,ie(n)),e.next=12,this._authorize(n);case 12:return e.abrupt("return",e.sent);case 13:throw e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_getAccessToken",value:function(){var e=(0,o.Z)(s().mark((function e(t){var n,r,o,a,u,c=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=t.ignoreCache){e.next=6;break}if(!(r=V(this._cache.get()))){e.next=6;break}return e.abrupt("return",r.access_token);case 6:return e.next=8,P((function(){return c._lock.acquireLock(S,5e3)}),10);case 8:if(!e.sent){e.next=34;break}if(e.prev=9,o=this._cache.get(),n){e.next=15;break}if(!(a=V(o))){e.next=15;break}return e.abrupt("return",a.access_token);case 15:if(!n&&o&&o.refresh_token){e.next=22;break}return this._logger.info(Q.GET_TOKENS_ATTEMPT_WITHOUT_REFRESH_TOKEN,ie(t)),e.next=19,this._authorize(t);case 19:u=e.sent,e.next=26;break;case 22:return this._logger.info(Q.GET_TOKENS_ATTEMPT_WITH_REFRESH_TOKEN,ie(t)),e.next=25,this._refresh(o.refresh_token,t);case 25:u=e.sent;case 26:return this._logger.info(Q.GET_TOKENS_SUCCESS,ie(t)),e.abrupt("return",this._cache.set((s=u,{expires_at:(new Date).getTime()+1e3*s.expires_in,access_token:s.access_token,refresh_token:s.refresh_token})).access_token);case 28:return e.prev=28,e.next=31,this._lock.releaseLock(S);case 31:return e.finish(28);case 32:e.next=36;break;case 34:throw this._logger.info(Q.LOCK_TIMEOUT,ie(t)),new b(i.LOCK_TIMEOUT);case 36:e.next=42;break;case 38:throw e.prev=38,e.t0=e.catch(0),this._logger.error(Q.GET_TOKENS_FAILURE,e.t0,ie(t)),e.t0;case 42:case"end":return e.stop()}var s}),e,this,[[0,38],[9,,28,32]])})));return function(t){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{orAnonymous:!1,ignoreCache:!1};return this._singlePromise||(this._singlePromise=this._getAccessToken(t).finally((function(){e._singlePromise=null}))),this._singlePromise}},{key:"logout",value:function(){this._cache.remove()}}]),n}(fe),Ee=n(37990),ve=n(42111);var be=(0,u.HP)((function(){return new ge({clientId:ve.Ms,redirectUri:Ee.v.urls.main,domain:Ee.v.api.tokens,fetch:window.fetch.bind(window),httpClientOptions:{applicationHeaders:{"X-Client-Type":ve.Ms,"X-Client-Version":ve.DV.toString(),"X-CSRF-Token":(0,ve.m5)()}}})})),we=function(){var e=(0,o.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=be(),e.prev=1,e.next=4,t.getAccessToken();case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!(e.t0 instanceof w)){e.next=14;break}e.t1=e.t0.message,e.next=e.t1===E.ACCESS_DENIED?13:14;break;case 13:return e.abrupt("break",14);case 14:return e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},51829:function(e,t,n){"use strict";n.d(t,{MY:function(){return p},c2:function(){return h},jN:function(){return f}});var r=n(36222),i=n(33032),o=n(27853),a=n(84531),s=n(84322),u=n.n(s),c=n(42043),M=n(9541),m=n(12782),l=n(89201),d=n(13305),h="voxOnboardingPassed",f="kaza:snippets:onboarding",p=function(){function e(t,n,r,a){var s=this;(0,o.Z)(this,e),this.dapiApi=t,this.institutionVault=n,this.user=r,this.gnar=a,this.onboardingPassed=c.hg.create(new Set),this.snippetsOnboarding=m.Wx.of([]),this.institutionOnboarding=m.Wx.of(new Set),this.logger=(0,l.jl)("onboarding.service"),this.load=(0,i.Z)(u().mark((function e(){var t,n,r,i,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.dapiApi.getMimicWithProps(s.gnar.containerId);case 2:if(t=e.sent,(n=t.properties).has(h)&&s.onboardingPassed.set(new Set(n.getObject(h))),n.has("".concat(f,":passed"))&&(s.snippetsOnboarding=m.Wx.of(n.getObject("".concat(f,":passed")))),n.has("".concat(f,":disabled"))&&(s.snippetsOnboarding=m.Wx.none()),!s.user.isOwner){e.next=20;break}return e.prev=8,e.next=11,s.institutionVault.getVaultItemsForKeys(d.XC);case 11:r=e.sent,i=r.vault,o=i.map((function(e){return e.key})),s.institutionOnboarding=m.Wx.of(new Set(o)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(8),s.logger.error("Error fetching onboarding values from institution vault",e.t0);case 20:case"end":return e.stop()}}),e,null,[[8,17]])})))}return(0,a.Z)(e,[{key:"updateInstitutionVaultForOnboardingTask",value:function(){var e=(0,i.Z)(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.user.isOwner||this.institutionOnboarding.exists((function(e){return e.has(t)}))){e.next=12;break}return e.prev=1,e.next=4,this.institutionVault.updateVaultItem({key:t,value:"complete"});case 4:return this.institutionOnboarding.map((function(e){return e.add(t)})),e.next=7,this.gnar.track.adminDiscoverOnboardingTaskComplete((0,d.pb)(t),!1,window.location.pathname);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),this.logger.error("Failed to update institution vault onboarding item",e.t0);case 12:case"end":return e.stop()}}),e,this,[[1,9]])})));return function(t){return e.apply(this,arguments)}}()},{key:"updateOnboardingPassed",value:function(e){var t=new Set(this.onboardingPassed.get()),n=t.size;return e.forEach((function(e){return t.add(e)})),this.onboardingPassed.set(t),n===t.size?Promise.resolve():this.dapiApi.save(M.E.of((0,r.Z)({},h,Array.from(t))))}}]),e}()},13742:function(e,t,n){"use strict";n.d(t,{C:function(){return r},f:function(){return s}});var r,i=n(27853),o=n(84531),a=n(96764);!function(e){e.EnableRules="enable.rules",e.DeleteRule="delete.rule"}(r||(r={}));var s=function(){function e(t){(0,i.Z)(this,e),this.storage=t}return(0,o.Z)(e,[{key:"shouldIAsk",value:function(t){return"1"!==this.storage.get(e.getKey(t))}},{key:"dontAskMe",value:function(t){this.storage.update(e.getKey(t),"1")}},{key:"askMeAgain",value:function(t){this.storage.remove(e.getKey(t))}}],[{key:"getKey",value:function(e){return"".concat(a.F.DontAskMeAgain,".").concat(e)}}]),e}()},96764:function(e,t,n){"use strict";var r;n.d(t,{F:function(){return r}}),function(e){e.DontAskMeAgain="dont.ask.me",e.FirstRuleAdded="first.rule.added",e.ConfirmationEmailAutoSent="confirmation.email.auto.sent",e.PlanChangeBannerClosed="planChangeBannerClosed",e.DeviceSessionTokenId="deviceSession.tokenId",e.RequestedPersonalDataReports="requested.personal.data.reports",e.WritingProgressSurveyDismissed="writing.progress.survey.dismissed",e.WritingProgressSurveyShowedCounter="writing.progress.survey.showed"}(r||(r={}))},47697:function(e,t,n){"use strict";n.d(t,{TM:function(){return m},Xc:function(){return g},_P:function(){return h},aW:function(){return d},fW:function(){return o},i4:function(){return i},pL:function(){return M},ql:function(){return l},wu:function(){return c}});var r,i,o,a=n(36222),s=n(37990),u=n(94022);!function(e){e.Contributor="Contributor",e.InstitutionUser="User",e.GroupContributor="Group Contributor",e.Owner="Owner",e.WorkspaceOwner="WorkspaceOwner",e.WorkspaceContributor="WorkspaceContributor",e.Personal="Personal"}(i||(i={})),function(e){e.Student="student",e.Professional="professional",e.Other="other"}(o||(o={}));var c=(r={},(0,a.Z)(r,o.Student,"school"),(0,a.Z)(r,o.Professional,"work"),(0,a.Z)(r,o.Other,"other projects"),r),M=["Accounting and Financial Services","Consulting and Professional Services","Consumer Goods and Services","E-commerce","Education Institution and Services","Government","Health Care Services and Equipment","Hotels, Restaurants and Leisure","Human Resource and Employment Services","Insurance and Investments","Materials, Manufacturing and Construction","Media and Advertising","Nonprofit","Other","Real Estate","Software, IT and Hardware","Transportation and Automotive"],m=["1","2-20","21-50","51-100","101-250","251-750","751-2500","2500+"],l=["1-10","11-20"],d=["Team member","Manager","Director","CEO or Owner"];function h(){var e=["frontend_role","frontend_teamType","frontend_industryType","frontend_companySize","frontend_graduationYear","frontend_seniority"];return s.v.env!==u.q.prod?["sandbox.payments"].concat(e):[].concat(e)}var f=["student","school"],p=["professional","work"],y=["other projects"],g=function(e){return f.includes(e)?o.Student:p.includes(e)?o.Professional:y.includes(e)?o.Other:void 0}},39674:function(e,t,n){"use strict";n.d(t,{Jg:function(){return o},iP:function(){return a},xr:function(){return i}});var r=["Communications","CustomerSupport","Engineering","HRAndRecruiting","IT","Marketing","OwnerOrLeadership","Sales","Other"],i=[].concat(r,["Product"]),o=function(e){return e?{Communications:"Communications",CustomerSupport:"Customer support",Engineering:"Engineering",HRAndRecruiting:"HR and recruiting",IT:"IT",Marketing:"Marketing",OwnerOrLeadership:"Owner or company leadership",Sales:"Sales",Other:"Other",Product:"Product"}[e]:""},a=[].concat(r).sort((function(e,t){return"Other"===e?1:et?1:0})).map((function(e){return{label:o(e),value:e}}))},61292:function(e,t,n){"use strict";n.d(t,{G:function(){return r},c:function(){return i}});var r="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *:not([disabled])[tabindex], *[contenteditable]",i="h1, h2, h3, h4, h5, h6"},37507:function(e,t,n){"use strict";function r(e){return{status:e.status,redirected:e.redirected,statusText:e.statusText,url:e.url,type:e.type}}function i(e){try{var t,n=JSON.parse(null!==(t=e.body)&&void 0!==t?t:"");return n.error?n:void 0}catch(r){return}}function o(e){try{var t;return JSON.parse(null!==(t=e.message)&&void 0!==t?t:"").message.join(" ")}catch(n){return}}function a(e){var t=e.headers.get("content-disposition");if(t&&-1!==t.indexOf("attachment")){var n=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t);if(null!=n&&n[1])return n[1].replace(/['"]/g,"")}}n.d(t,{P3:function(){return o},Rj:function(){return a},dg:function(){return r},jV:function(){return s},wt:function(){return i}});var s=function(e){return function(t){if(404===t.code)return e;throw t}}},91593:function(e,t,n){"use strict";n.d(t,{Iu:function(){return h},Nr:function(){return p},QB:function(){return l},Tm:function(){return d},Wy:function(){return M},Zs:function(){return y},br:function(){return u},cI:function(){return m},ek:function(){return f},gt:function(){return s},ii:function(){return c},p6:function(){return a},qb:function(){return g}});var r=n(72426),i=n.n(r),o=n(89201);function a(e){return i()(e).format("MMMM D, YYYY")}function s(e,t){try{return i()(e).format("h:mm a [on] MMMM D, YYYY")}catch(n){return(0,o.jl)("date.format.with.time").error("Failed to format the date",n,{dateBeforeFormat:e,dateString:e.toString()}),null===t||void 0===t||t.info("You may experience some formatting issues with your current browser. Please update your browser now."),e.toString()}}function u(e,t){try{return e.toISOString()}catch(n){return(0,o.jl)("date.iso.formatter").error("Failed to format the date",n,{dateBeforeFormat:e,dateString:e.toString()}),null===t||void 0===t||t.info("You may experience some formatting issues with your current browser. Please update your browser now."),e.toString()}}function c(e){return i().utc(e,"MMMM D, YYYY")}function M(e,t){return i()(t).diff(i()(e),"days")}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return M(e,new Date)1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];f(e,"counter",t,n)}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];f(e,"summary",t,n)}var m=[];function l(e){m=m.concat(e.map((function(e){var t=(0,r.Z)(e,2);return{key:t[0],value:t[1]}}))).filter((function(e,t,n){return n.findLastIndex((function(t){return t.key===e.key}))===t}))}var d=[],h=function(e){return function(t){return"counter"===t.type&&"counter"===e.type&&t.name===e.name&&e.labels.length===t.labels.length&&e.labels.every((function(e){return t.labels.some((function(t){return t.key===e.key&&t.value===e.value}))}))}};function f(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o={name:"".concat(s,"_").concat(e),type:t,value:n,labels:m.concat(i.map((function(e){var t=(0,r.Z)(e,2);return{key:t[0],value:t[1]}}))).concat([{key:"pathnamePrefix",value:window.location.pathname.split("/").slice(0,3).join("/")}]),report_interval:"1m"},u=d.find(h(o));u?u.value++:d.push(o),(0,a.Or)(p(),"femetrics.send")}var p=function(e,t){if(0===t)return function(){return Promise.resolve(e.apply(void 0,arguments))};var n,r,i=!0;function a(t,n){return i&&(i=!1,r=function(){var e,t;return{promise:new Promise((function(n,r){e=n,t=r})),resolve:e,reject:t}}(),setTimeout((function(){try{r.resolve(e.apply(void 0,(0,o.Z)(n)))}catch(t){r.reject(t)}finally{i=!0}}),t)),r.promise}return function(){var e=n;n=Date.now();for(var r=arguments.length,i=new Array(r),o=0;o=t?0:t-(n-e),i)}}(y,1e7);function y(){if(0!==d.length){var e=(0,i.jl)("femetric"),t=d.slice(0);d=[],function(e){return navigator.sendBeacon?Promise.resolve([navigator.sendBeacon(u.v.tracking.femetrics,JSON.stringify(e))]):fetch(u.v.tracking.femetrics,{method:"POST",body:JSON.stringify(e)}).then((function(e){return[200===e.status,e.statusText]})).catch((function(e){return[!1,e]}))}(t).then((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];if(!n)throw i})).catch((function(n){return e.error("Metric sending failed:",n,t)}))}}window.addEventListener("beforeunload",y),window.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&y()}))},42111:function(e,t,n){"use strict";n.d(t,{DJ:function(){return o},Ms:function(){return a},DV:function(){return s},zH:function(){return c},eh:function(){return M},m5:function(){return u}});var r=n(56240),i=n(9702),o="kaza",a="account",s=r.G.parse("".concat("0.3.0-master.16432")),u=function(){return i.parse(document.cookie)["csrf-token"]};function c(e,t){return{clientName:a,clientVersion:s,containerId:Promise.resolve(e),csrfToken:function(){return Promise.resolve(u())},accessToken:t}}function M(e){return{clientName:a,clientVersion:s.toString(),containerId:e,csrfToken:u()}}},26560:function(e,t,n){"use strict";n.d(t,{nk:function(){return R},Or:function(){return P},_5:function(){return N}});var r,i=n(18489),o=n(33032),a=n(84322),s=n.n(a),u=n(29388),c=n(19160),M=n(44841),m=n(69253),l=n(78680),d=n(65496),h=n(27442),f=n(95709),p=n(77445),y=n(75753),g=n(27034),E=n(52020),v=n(50265),b=n(99749),w=n(42594),S=n(4396),C=n(38325),A=n(28632),_=n(20926);!function(e){var t;function n(e){return{status:t.ok,value:e}}function r(e){return e.status===t.inProgress}function i(e){return e.status===t.ok}function o(e){return e.status===t.error}function a(e){return e.status===t.fatal}function s(e){return i(e)||a(e)}function H(e){return(0,A.kG)(!r(e),"Can't enter begin state - unexpected status '".concat(t[e.status],"'")),{status:t.inProgress}}function k(e,n){return function(r){(0,A.kG)(!s(r),"Can't enter error state - unexpected status '".concat(t[r.status],"'"));var i=t.error;return Boolean(n)?{status:i,error:e,attempt:n}:{status:i,error:e}}}function P(e){return function(n){return(0,A.kG)(o(n)||r(n),"Can't enter fatal state - unexpected status '".concat(t[n.status],"'")),{status:t.fatal,error:e}}}function N(e){return function(r){return(0,A.kG)(!i(r),"Can't enter ok state - unexpected status '".concat(t[r.status],"'")),n(e)}}!function(e){e[e.idle=0]="idle",e[e.inProgress=1]="inProgress",e[e.ok=2]="ok",e[e.error=3]="error",e[e.fatal=4]="fatal"}(t=e.Status||(e.Status={})),e.defaultValue=function(){return{status:t.idle}},e.ok=n,e.isIdle=function(e){return e.status===t.idle},e.isInProgress=r,e.isOk=i,e.isError=o,e.isFatal=a,e.isTerminated=s,e.isSomething=function(e){return s(e)||o(e)},e.flatMap=function(e,t){return i(e)?t(e.value):e},e.map=function(e,t){return i(e)?n(t(e.value)):e},e.begin=H,e.error=k,e.fatal=P,e.success=N,e.DEFAULT_TIMEOUT_MS=1e4;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.__extends)(t,e),t}(A.sH);e.NoValueReturnedError=T,e.runWithTimeout=function(n,r,i,o){return void 0===i&&(i=e.DEFAULT_TIMEOUT_MS),void 0===o&&(o=function(e){return e}),new Promise((function(e,a){r.modify(H);var s=!1;c.P(n).pipe(M.Z(),m.V(i)).subscribe((function(t){r.modify(N(o(t))),s=!0,e(t)}),(function(e){r.modify(k(e)),s=!0,a(e)}),(function(){if(!s){var e=void 0;r.modify((function(n){return n.status!==t.ok&&n.status!==t.error?k(e=new T)(n):n})),Boolean(e)&&a(e)}}))}))},e.promiseWithTimeout=function(e,t){return l.D(e).pipe(m.V(t)).toPromise()},e.modifyRemoteState=function(e,t,n){var r=e.get();return n().then((function(n){return new Promise((function(n){e.modify(t),n()}))})).catch((function(t){return e.set(r),Promise.reject(t)}))},e.modifyRemoteStateOptimistic=function(e,t,n,r){void 0===r&&(r=!0);var i=e.get();return e.modify(t),n().catch((function(t){return r&&e.set(i),Promise.reject(t)}))},function(t){var n;!function(e){e.noRetry=function(e){return e.pipe(d.w((function(e){return h._(e)}),f.P()))},e.linear=function(e,t){return void 0===t&&(t=1e3),function(n){return n.pipe(d.w((function(n,r){if(r>=e)throw n;return p.H(r*t)})))}},e.conditional=function(e,t){return function(n){return y.T(t(n.pipe(g.o(e))),n.pipe(E.n(e),v.U((function(e){throw e}))))}}}(n=t.RetryStrategy||(t.RetryStrategy={})),t.create=function(t,r,i){void 0===i&&(i=n.noRetry);var o=0;r.modify(H);var a=c.P(t).pipe(b.K((function(e){throw r.modify(k(e,++o)),e})),w.a(i),b.K((function(e){return r.modify(P(e)),S.C})),v.U((function(e){return N(e)})),C.b(r.modify.bind(r)),f.P()).subscribe(_.Q1);return{unsubscribe:function(){e.isTerminated(r.get())||((0,A.kG)(!a.closed,"cannot abort completed operation"),a.unsubscribe())}}}}(e.OperationRetrier||(e.OperationRetrier={}))}(r||(r={}));var H=n(89201),k=function(e,t){return e.catch((function(e){(0,H.jl)("global.unhandled.promise").error("noAwait has failed",e,{origin:t})}))};function P(e,t){e&&k(e,t)}function N(e){return T.apply(this,arguments)}function T(){return(T=(0,o.Z)(s().mark((function e(t){var n,i,o=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:0,i=o.length>2?o[2]:void 0,e.next=4,k(n?r.promiseWithTimeout(t,n):t,i);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e,t,n){for(var r=[],o=0;o=s.LogLevel.WARN)&&u.kw.printToConsole(e),i.append(e).catch(y),e.level===s.LogLevel.FATAL&&i.append(function(e,t){var n;try{n=JSON.stringify(t.map((function(e){return e.dropContext()})))}catch(r){n=r}return new u.gr(s.LogLevel.FATAL,"CrashLog","crash",e.timestamp,e.exception,{events:n,trigger:{message:e.message,logger:e.logger}},e.context)}(e,h.getBuffer())).catch(y)}));a.LoggingConfig.configure(f),E({sessionId:Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),userAgent:l.WE.getResult(),isMobile:l.tq}),(0,d.d2)([["version",m.DV.toString()],["browserName",null!==(n=l.WE.getBrowser().name)&&void 0!==n?n:"Unknown"],["browserMajorVersion",null!==(r=l.WE.getBrowser().major)&&void 0!==r?r:"-1"],["isMobile",String(l.tq)],["env",c.v.env]]),function(e){E({location:e.location}),e.listen((function(e){E({location:e}),g("history").info("location changed",{location:e})}))}(t)}},87067:function(e,t,n){"use strict";n.d(t,{bV:function(){return ee},j6:function(){return q},Tv:function(){return te}});var r={};n.r(r),n.d(r,{Express:function(){return L},Mongo:function(){return J},Mysql:function(){return W},Postgres:function(){return G}});var i=n(18489),o=n(9020),a=n(88003);var s=n(21175),u=n(25880),c=n(56017),M=n(76870),m=n(88571),l=n(45522),d=n(33835),h=n(45129),f=(0,M.Rf)();var p=n(19685),y=n(39846),g=n(4044),E=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},v=function(e,t){return{name:e,value:null!==t&&void 0!==t?t:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},b=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(r){}},w=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},S=-1,C=function(){return S<0&&(S="hidden"===document.visibilityState?0:1/0,w((function(e){var t=e.timeStamp;S=t}),!0)),{get firstHiddenTime(){return S}}},A={},_=(0,M.Rf)(),H=function(){function e(){var e;this._measurements={},this._performanceCursor=0,!(0,p.KV)()&&(null===(e=_)||void 0===e?void 0:e.performance)&&(_.performance.mark&&_.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(_&&_.performance&&_.performance.getEntries&&y.Z1){c.k.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i,o,a,s=(0,h.XL)(y.Z1);if(_.document&&_.document.scripts)for(var u=0;u<_.document.scripts.length;u++)if("true"===_.document.scripts[u].dataset.entry){n=_.document.scripts[u].src;break}if(_.performance.getEntries().slice(this._performanceCursor).forEach((function(u){var M=(0,h.XL)(u.startTime),m=(0,h.XL)(u.duration);if(!("navigation"===e.op&&s+M-1&&(r=y)}})),void 0!==r&&void 0!==i&&P(e,{description:"evaluation",endTimestamp:i,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var M=(0,h.XL)(y.Z1);"number"===typeof o&&(c.k.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(o-e.startTimestamp)},"number"===typeof a&&a<=o&&(this._measurements["ttfb.requestTime"]={value:1e3*(o-a)})),["fcp","fp","lcp"].forEach((function(n){if(t._measurements[n]&&!(M>=e.startTimestamp)){var r=t._measurements[n].value,i=M+(0,h.XL)(r),o=Math.abs(1e3*(i-e.startTimestamp)),a=o-r;c.k.log("[Measurements] Normalized "+n+" from "+r+" to "+o+" ("+a+")"),t._measurements[n].value=o}})),this._measurements["mark.fid"]&&this._measurements.fid&&P(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,h.XL)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),this._tagMetricInfo(e)}}},e.prototype._tagMetricInfo=function(e){this._lcpEntry&&(c.k.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&e.setTag("lcp.element",(0,g.R)(this._lcpEntry.element)),this._lcpEntry.id&&e.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&e.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),e.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&this._clsEntry.sources&&(c.k.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.forEach((function(t,n){return e.setTag("cls.source."+(n+1),(0,g.R)(t.node))})))},e.prototype._trackCLS=function(){var e=this;!function(e,t){var n,r=v("CLS",0),i=0,o=[],a=function(e){if(e&&!e.hadRecentInput){var t=o[0],a=o[o.length-1];i&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>r.value&&(r.value=i,r.entries=o,n&&n())}},s=b("layout-shift",a);s&&(n=E(e,r,t),w((function(){s.takeRecords().map(a),n(!0)})))}((function(t){var n=t.entries.pop();n&&(c.k.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value},e._clsEntry=n)}))},e.prototype._trackNavigator=function(e){var t=_.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),N(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),N(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),N(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),N(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(){var e=this;!function(e,t){var n,r=C(),i=v("LCP"),o=function(e){var t=e.startTime;tn&&(e.startTimestamp=n),e.startChild((0,u.pi)({startTimestamp:n},r))}function N(e){return"number"===typeof e&&isFinite(e)}var T=n(87050),R=n(52034),B=n(88805),D={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function F(e){var t=(0,u.pi)((0,u.pi)({},D),e),n=t.traceFetch,r=t.traceXHR,i=t.tracingOrigins,o=t.shouldCreateSpanForRequest,a={},s=function(e){if(a[e])return a[e];var t=i;return a[e]=t.some((function(t){return(0,T.zC)(e,t)}))&&!(0,T.zC)(e,"sentry_key"),a[e]},c=s;"function"===typeof o&&(c=function(e){return s(e)&&o(e)});var M={};n&&(0,R.o)({callback:function(e){!function(e,t,n){if(!(0,h.zu)()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp&&e.fetchData.__span){return void((i=n[e.fetchData.__span])&&(e.response?i.setHttpStatus(e.response.status):e.error&&i.setStatus(d.p.InternalError),i.finish(),delete n[e.fetchData.__span]))}var r=(0,h.x1)();if(r){var i=r.startChild({data:(0,u.pi)((0,u.pi)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http.client"});e.fetchData.__span=i.spanId,n[i.spanId]=i;var o=e.args[0]=e.args[0],a=e.args[1]=e.args[1]||{},s=a.headers;(0,B.V9)(o,Request)&&(s=o.headers),s?"function"===typeof s.append?s.append("sentry-trace",i.toTraceparent()):s=Array.isArray(s)?(0,u.fl)(s,[["sentry-trace",i.toTraceparent()]]):(0,u.pi)((0,u.pi)({},s),{"sentry-trace":i.toTraceparent()}):s={"sentry-trace":i.toTraceparent()},a.headers=s}}(e,c,M)},type:"fetch"}),r&&(0,R.o)({callback:function(e){!function(e,t,n){var r,i;if(!(0,h.zu)()||(null===(r=e.xhr)||void 0===r?void 0:r.__sentry_own_request__)||!(null===(i=e.xhr)||void 0===i?void 0:i.__sentry_xhr__)||!t(e.xhr.__sentry_xhr__.url))return;var o=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__){return void((s=n[e.xhr.__sentry_xhr_span_id__])&&(s.setHttpStatus(o.status_code),s.finish(),delete n[e.xhr.__sentry_xhr_span_id__]))}var a=(0,h.x1)();if(a){var s=a.startChild({data:(0,u.pi)((0,u.pi)({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=s.spanId,n[e.xhr.__sentry_xhr_span_id__]=s,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",s.toTraceparent())}catch(c){}}}(e,c,M)},type:"xhr"})}var I=(0,M.Rf)();var x=(0,u.pi)({idleTimeout:l.nT,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),I&&I.location){var r,i=I.location.href;t&&(r=e({name:I.location.pathname,op:"pageload"})),n&&(0,R.o)({callback:function(t){var n=t.to,o=t.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(c.k.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:I.location.pathname,op:"navigation"}))},type:"history"})}else c.k.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},D),O=function(){function e(t){this.name=e.id,this._metrics=new H,this._emitOptionsWarning=!1;var n=D.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=(0,u.pi)((0,u.pi)((0,u.pi)({},x),t),{tracingOrigins:n})}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(c.k.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),c.k.warn("[Tracing] We added a reasonable default for you: "+D.tracingOrigins));var r=this.options,i=r.routingInstrumentation,o=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,u=r.traceFetch,M=r.traceXHR,m=r.tracingOrigins,l=r.shouldCreateSpanForRequest;i((function(e){return n._createRouteTransaction(e)}),a,o),s&&(f&&f.document?f.document.addEventListener("visibilitychange",(function(){var e=(0,h.x1)();f.document.hidden&&e&&(c.k.log("[Tracing] Transaction: "+d.p.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(d.p.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):c.k.warn("[Tracing] Could not set up background tab detection due to lack of global document")),F({traceFetch:u,traceXHR:M,tracingOrigins:m,shouldCreateSpanForRequest:l})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,i=n.idleTimeout,o=n.maxTransactionDuration,a="pageload"===e.op?function(){var e=function(e){var t=document.querySelector("meta[name="+e+"]");return t?t.getAttribute("content"):null}("sentry-trace");if(e)return(0,h.qG)(e);return}():void 0,s=(0,u.pi)((0,u.pi)((0,u.pi)({},e),a),{trimEnd:!0}),l="function"===typeof r?r(s):s,f=void 0===l?(0,u.pi)((0,u.pi)({},s),{sampled:!1}):l;!1===f.sampled&&c.k.log("[Tracing] Will not send "+f.op+" transaction because of beforeNavigate."),c.k.log("[Tracing] Starting "+f.op+" transaction on scope");var p=this._getCurrentHub(),y=(0,M.Rf)().location,g=(0,m.lb)(p,f,i,!0,{location:y});return g.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus(d.p.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}((0,h.WB)(o),e,n)})),g}c.k.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();var L=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){this._router?function(e,t){void 0===t&&(t=[]);t.forEach((function(t){return function(e,t){var n=e[t];return e[t]=function(){for(var e=[],r=0;r",r[o[1]]="string"===typeof M?M:M.name||""}else for(var m=0;m0&&void 0!==arguments[0]?arguments[0]:5,t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r?,.\/]/g.test(e)}function a(e){return!/[!$%^*()_+|~={}\[\]:";<>?\/]/g.test(e)&&e.trim().length>0}n.d(t,{FV:function(){return a},Ju:function(){return r},M:function(){return i},ms:function(){return o}})},57740:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(12782),i=function(e){void 0!==window.GR_EXTENSION_ID&&r.WG.of((function(){window.GR_EXTENSION_SEND(e)}))}},90206:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});var r=n(50582),i=n(12782);function o(e){return r.fold((function(){return i.Wx.none()}),(function(e){return i.Wx.of(e)}))(e)}},8359:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(50793),i={401:"Unauthorized, user is not trusted",403:"Forbidden, incorrect operation",417:"Expectation failed"};function o(e,t){var n=e instanceof r.Bb?i[e.code]||function(e){return"Received error code ".concat(e.code," \n and message: ").concat(e.body)}(e):"Unknown Error - ".concat(e.message);return"".concat(n,". Extra information: ").concat(t)}},90940:function(e,t,n){"use strict";n.d(t,{A8:function(){return u},Py:function(){return c},ce:function(){return s},lr:function(){return M}});var r=n(50678),i=n(4245),o=n(72791),a=n(75282);function s(e,t){return i.parse(e)[t]}function u(e,t,n){var o=i.parse(e);if(!t.every((function(e){return!o[e]}))){var a=Object.fromEntries(Object.entries(o).filter((function(e){var n=(0,r.Z)(e,1)[0];return!t.includes(n)})));n.replace({search:i.stringify(a)})}}function c(e,t,n){var r=s(e,t);return u(e,[t],n),r}function M(){var e=(0,a.TH)().search;return(0,o.useMemo)((function(){return i.parse(e,{arrayFormat:"comma"})}),[e])}},95614:function(e,t,n){"use strict";n.d(t,{FK:function(){return g},OX:function(){return s},Pn:function(){return h},Up:function(){return d},WY:function(){return M},_U:function(){return m},bE:function(){return y},kN:function(){return E},nL:function(){return l},oH:function(){return c},pL:function(){return f},xX:function(){return u},zv:function(){return p}});var r=n(18489),i=n(30863),o=n(37990),a=n(72872);function s(){window.location.href=o.v.api.redirect+"?forward=hub&signin=1"}function u(){var e="utm_medium=internal&utm_source=kaza&utm_campaign=".concat(a._.GetPremium);window.location.href=o.v.api.redirect+"?".concat(e,"&").concat("forward=hubSubscription&upgrade=1")}function c(){var e="utm_medium=internal&utm_source=kaza&utm_campaign=".concat(a._.GetPremium);window.location.href=o.v.api.redirect+"?".concat(e,"&").concat("client_id=androidSDK&androidSdkFlow=upgrade&forward=hubSubscription")}function M(){var e="utm_medium=internal&utm_source=kaza&utm_campaign=".concat(a._.GetBusiness);window.location.href="".concat(o.v.urls.funnel.home,"business/e?").concat(e)}function m(e,t){var n=(0,r.Z)({forward:e,secureLogin:"true",signin:"1"},null!==t&&void 0!==t?t:{});window.location.href="".concat(o.v.api.redirect,"?").concat(i.stringify(n))}function l(e){window.location.href=e}function d(){window.open(o.v.urls.appleSubscription)}function h(e){var t=1===e?"monthly":3===e?"quarterly":"annual";window.open(o.v.urls.androidSubscription(t))}function f(e,t){window.location.href=o.v.urls.funnel.home+"social/delete-account?".concat(e.toLowerCase(),"=true&client_id=").concat(t)}function p(){window.location.href=o.v.urls.funnel.home+"account-deleted"}function y(){window.location.href=o.v.urls.myGrammarly}function g(){window.location.href=o.v.urls.funnel.cancelEduSubscription}function E(){window.open(o.v.urls.funnel.plans+"?type=fluency")}},93720:function(e,t,n){"use strict";n.d(t,{V:function(){return M}});var r=n(33032),i=n(84322),o=n.n(i),a=n(39694),s=n(51194),u=n(25264),c=n(52453);function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500;return s.toPromise((0,a.C3)((0,c.tryCatch)((0,r.Z)(o().mark((function n(){var r;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e();case 2:if(r=n.sent,t(r)){n.next=5;break}throw new a.EN("Condition is not met");case 5:case"end":return n.stop()}}),n)}))),u.toError),n,i))}},76043:function(e,t,n){"use strict";n.d(t,{GF:function(){return a},Ig:function(){return r},rM:function(){return i},vU:function(){return s}});n(89201);function r(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function i(e){return e.replace(/[^\dA-Z]/g,"").replace(/(.{4})/g,"$1 ").trim()}function o(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new RegExp(o(e),t)}function s(e){if(1===e.length)return e[0];var t=e.slice(0,e.length-1),n=e[e.length-1];return t.join(", ")+", and "+n}},54156:function(e,t,n){"use strict";n.d(t,{WE:function(){return i},nI:function(){return u},tq:function(){return s},w6:function(){return c}});var r=n(54184),i=new r.UAParser,o=i.getDevice().type||"",a=i.getBrowser().name||"",s=["mobile","tablet"].includes(o),u=!s,c=a.includes("IE")},72872:function(e,t,n){"use strict";var r;function i(e){var t,n,r=null!==(t=e.medium)&&void 0!==t?t:"internal",i=null!==(n=e.source)&&void 0!==n?n:"kaza",o=e.campaign;return"utm_medium=".concat(r,"&utm_source=").concat(i,"&utm_campaign=").concat(o)}n.d(t,{W:function(){return i},_:function(){return r}}),function(e){e.GetPremium="kazaSubscription",e.GetBusiness="kazaSubscriptionGBf",e.GetBusinessStyleGuide="kazaStyleGuideGB",e.GetBusinessDownloadReceipt="kazaDownloadReceiptPopupGBp",e.GetBusinessTeamFeatures="kazaTeamFeaturesGB"}(r||(r={}))},83361:function(e,t,n){"use strict";n.d(t,{Z:function(){return ie}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?M(v,--g):0,p--,10===E&&(p=1,f--),E}function C(){return E=g2||k(E)>3?"":" "}function B(e,t){for(;--t&&C()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return H(e,_()+(t<6&&32==A()&&32==C()))}function D(e){for(;C();)switch(E){case e:return g;case 34:case 39:34!==e&&39!==e&&D(E);break;case 40:41===e&&D(e);break;case 92:C()}return g}function F(e,t){for(;C()&&e+E!==57&&(e+E!==84||47!==A()););return"/*"+H(t,g-1)+"*"+o(47===e?e:C())}function I(e){for(;!k(A());)C();return H(e,g)}var x="-ms-",O="-moz-",L="-webkit-",j="comm",z="rule",Q="decl",G="@keyframes";function W(e,t){for(var n="",r=d(e),i=0;i0&&l(O)-y&&h(E>32?Z(O+";",r,n,y-1):Z(u(O," ","")+";",r,n,y-2),d);break;case 59:O+=";";default:if(h(x=K(O,t,n,f,p,i,m,P,N=[],D=[],y),a),123===k)if(0===p)J(O,t,x,x,N,a,y,m,D);else switch(99===g&&110===M(O,3)?100:g){case 100:case 109:case 115:J(e,x,x,r&&h(K(e,x,x,0,0,i,m,P,i,N=[],y),D),i,D,y,m,r?N:D);break;default:J(O,x,x,x,[""],D,0,m,D)}}f=p=E=0,b=H=1,P=O="",y=s;break;case 58:y=1+l(O),E=v;default:if(b<1)if(123==k)--b;else if(125==k&&0==b++&&125==S())continue;switch(O+=o(k),k*b){case 38:H=p>0?1:(O+="\f",-1);break;case 44:m[f++]=(l(O)-1)*H,H=1;break;case 64:45===A()&&(O+=T(C())),g=A(),p=y=l(P=O+=I(_())),k++;break;case 45:45===v&&2==l(O)&&(b=0)}}return a}function K(e,t,n,r,o,a,c,M,l,h,f){for(var p=o-1,y=0===o?a:[""],g=d(y),E=0,v=0,w=0;E0?y[S]+" "+C:u(C,/&\f/g,y[S])))&&(l[w++]=A);return b(e,t,n,0===o?z:M,l,h,f)}function Y(e,t,n){return b(e,t,n,j,o(E),m(e,2,-2),0)}function Z(e,t,n,r){return b(e,t,n,Q,m(e,0,r),m(e,r+1,-1),r)}var V=function(e,t,n){for(var r=0,i=0;r=i,i=A(),38===r&&12===i&&(t[n]=1),!k(i);)C();return H(e,g)},$=function(e,t){return N(function(e,t){var n=-1,r=44;do{switch(k(r)){case 0:38===r&&12===A()&&(t[n]=1),e[n]+=V(g-1,t,n);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===A()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(P(e),t))},q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||q.get(n))&&!r){q.set(e,!0);for(var i=[],o=$(t,i),a=n.props,s=0,u=0;s6)switch(M(e,t+1)){case 109:if(45!==M(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==M(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==M(e,t+1))break;case 6444:switch(M(e,l(e)-3-(~c(e,"!important")&&10))){case 107:return u(e,":",":-webkit-")+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===M(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(M(e,t+11)){case 114:return L+e+x+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+x+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+x+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+x+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Q:e.return=ne(e.value,e.length);break;case G:return W([w(e,{value:u(e.value,"@","@-webkit-")})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([w(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([w(e,{props:[u(t,/:(plac\w+)/,":-webkit-input-$1")]}),w(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[u(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,a,s={},u=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},M={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var m=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,d=function(e){return 45===e.charCodeAt(1)},h=function(e){return null!=e&&"boolean"!==typeof e},f=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return d(e)?e:e.replace(m,"-$&").toLowerCase()})),p=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(l,(function(e,t,n){return g={name:t,styles:n,next:g},t}))}return 1===M[e]||d(e)||"number"!==typeof t||0===t?t:t+"px"};function y(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return g={name:n.name,styles:n.styles,next:g},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)g={name:r.name,styles:r.styles,next:g},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var u=s;t[o((u=u.split("="))[0])]=o(u[1])}return t}(document.cookie);return e?t[e]:t}function i(e){try{return encodeURIComponent(e)}catch(t){return null}}function o(e){try{return decodeURIComponent(e)}catch(t){return null}}t.__esModule=!0,t.default=function(e,t,i){if(arguments.length<2)return r(e);n(e,t,i)}},39913:function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e.default:e},i=(r(n(11132)),r(n(30290)));e.exports=function(){var e=window._detect_test_userAgent||navigator.userAgent,t=function(e){for(var t=i,n={browser:"unknown",version:0},r=0;r=t:t;return n&&r},t}},30290:function(e){"use strict";e.exports=[{_re:"Edge",version:"Edge/",browser:"edge"},{_re:/Android.*\d+\s+Safari.*OPR/,version:"OPR/",browser:"opera",type:"tablet"},{_re:/Android.*Mobile.*OPR/,version:"OPR/",browser:"opera",type:"mobile"},{_re:/Android.*Chrome.*\d+\s+Safari/,version:"Chrome/",browser:"chrome",type:"tablet"},{_re:/Android.*Chrome.*Mobile/,version:"Chrome/",browser:"chrome",type:"mobile"},{_re:"OPR",version:"OPR/",browser:"opera"},{_re:"Chromium",version:"Chrome/",browser:"chromium"},{_re:"Beamrise",browser:"beamrise"},{_re:"Maxthon",browser:"maxthon",version:"Maxthon/"},{_re:"Chrome",browser:"chrome"},{_re:/BB10|BlackBerry/,browser:"blackberry",version:"Version/",type:"mobile"},{_re:"PlayBook",browser:"blackberry",version:"Version/",type:"tablet"},{_re:"Silk",version:"Silk/",browser:"silk"},{_re:/Android.*CrMo.*\d+\s+Safari/,version:"CrMo/",browser:"chrome",type:"tablet"},{_re:/Android.*CrMo.*Mobile.*/,version:"CrMo/",browser:"chrome",type:"mobile"},{_re:/Android.*KHTML.*\d+\s+Safari/,version:"Version/",browser:"android",type:"tablet"},{_re:/Android.*KHTML.*Mobile.*/,version:"Version/",browser:"android",type:"mobile"},{_re:/iPad.*CriOS/,version:"CriOS/",browser:"chrome",type:"tablet"},{_re:"CriOS",version:"CriOS/",browser:"chrome",type:"mobile"},{_re:"iPad",version:"Version/",browser:"safari",type:"tablet"},{_re:"iPhone",version:"Version/",browser:"safari",type:"mobile"},{_re:/Opera Mobi.*Version.*/,type:"mobile",version:"Version/",browser:"opera"},{_re:/Opera Tablet.*Version.*/,type:"tablet",version:"Version/",browser:"opera"},{_re:/Opera.*Version.*/,version:"version/",browser:"opera"},{_re:"Opera",browser:"opera"},{_re:"Avant",browser:"avant",version:"MSIE "},{_re:"IEMobile",browser:"msie",type:"mobile",version:"IEMobile/"},{_re:"MSIE",version:"MSIE ",browser:"msie"},{_re:"Trident",browser:"msie",version:"rv:"},{_re:"arora",browser:"arora"},{_re:"Konqueror",browser:"konqueror"},{_re:"Namoroka",browser:"namoroka"},{_re:"Uzbl",browser:"uzbl",version:"Webkit "},{_re:"QupZilla",browser:"qupzilla"},{_re:"GtkLauncher",version:"safari/",browser:"epiphany"},{_re:"Dillo",version:"dillo ",browser:"dillo"},{_re:"Epiphany",browser:"epiphany"},{_re:"Swiftfox",version:"Firefox/",browser:"swiftfox"},{_re:"Midori",browser:"midori"},{_re:"shadowfox",browser:"shadowfox"},{_re:"Galeon",browser:"galeon"},{_re:"Iceape",browser:"iceape"},{_re:"iTunes",browser:"itunes"},{_re:"Iceweasel",browser:"iceweasel"},{_re:"Camino",browser:"camino"},{_re:"SeaMonkey",browser:"seamonkey"},{_re:/Android.*Mobile.*Firefox/,type:"mobile",browser:"firefox"},{_re:/Android.*Tablet.*Firefox/,type:"tablet",browser:"firefox"},{_re:"Firefox",browser:"firefox"},{_re:"OmniWeb",version:"OmniWeb/v",browser:"omniweb"},{_re:"Safari",version:"Version/",browser:"safari"},{_re:"Gecko",browser:"mozilla",version:"rv:"},{_re:"NetSurf",browser:"netsurf"}]},48553:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestBuilder=t.Request=t.HTTPError=t.RequestError=t.Ajax=void 0;var r,i=n(29388),o=n(65309),a=n(61542),s=n(1583),u=n(40805);!function(e){e.extend=function(e){return u.R.local((function(t){return(0,i.__assign)((0,i.__assign)({},t),{requestExtender:t.requestExtender?l.Extender.compose(e,t.requestExtender):e})}))};var t=function(e){function t(t,n){var r=e.call(this,t)||this;return r.message=t,r.details=n,r.name="ParseError",r}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Ajax response parsing error\n Message ".concat(this.message,"\n Details ").concat(a.failure(this.details).join("\n"))},t}(u.CustomError);e.ParseError=t,function(e){e.json="application/json",e.form="application/x-www-form-urlencoded",e.multipart="multipart/form-data",e.pdf="application/pdf",e.txt="text/plain",e.stream="application/octet-stream",e.vnd="application/vnd",e.zip="application/zip",e.any="*/*"}(e.MimeType||(e.MimeType={})),e.mapToHTTPErrorWithoutBody=function(t,n,r){return r.removeBody(),e.mapToHTTPError(t,n,r)},e.mapToHTTPError=function(e,t,n){return new M({request:n,code:t.status,status:t.statusText,url:t.url,body:e})}}(r=t.Ajax||(t.Ajax={}));var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.message=t,r.details=n,r.name="RequestError",r}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Request error\n Message: ".concat(this.message,"\n details: ").concat(this.details)},t.fromError=function(e,n){var r=new t(e,n.message);return r.stack=n.stack,r},t}(u.CustomError);t.RequestError=c;var M=function(e){function t(t){var n=t.code,r=t.status,i=t.url,o=t.message,a=t.body,s=t.request,u=e.call(this,Boolean(o)?o:Boolean(r||a)?r||a:"HTTPError")||this;return u.name="HTTPError",u.url=i,u.code=n,u.body=a,u.status=r,u.request=s,u}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Response\n Message: ".concat(this.message,"\n Status: ").concat(this.status,"\n Code: ").concat(this.code,"\n Body: ").concat(this.body,"\n ").concat(void 0!==this.request?"\n"+this.request.toString():"Url: ".concat(this.url))},t}(u.CustomError);t.HTTPError=M;var m=function(){function e(e,t,n,r,i){this._url=e,this._method=t,this._headers=n,this._mime=r,this._body=i}return e.get=function(){for(var e=[],t=0;t0})),0).join("/");return e._normalize(r)},e._normalize=function(e){return e=(e=(e=e.replace(/:\//g,"://")).replace(/([^:\s])\/+/g,"$1/")).replace(/\/(\?|#)/g,"$1")},e.get=function(){for(var t=[],n=0;n0&&(this._url+="?"+this._queryParams),this._body instanceof URLSearchParams){if(Boolean(this._mime)&&this._mime!==r.MimeType.form)throw new Error("Only application/x-www-form-urlencoded can be used for form requests, don't specify it mandatory in mime() method");this._mime=r.MimeType.form}else if(this._body instanceof s&&Boolean(this._mime)&&this._mime!==r.MimeType.multipart)throw new Error("Only multipart/form-data can be used for multipart form data requests, don't specify it mandatory in mime() method");if(this._mime===r.MimeType.json&&Boolean(this._body)&&(this._body=JSON.stringify(this._body)),!Boolean(this._method))throw new Error("HTTP method was not set");if(this._method=this._method,this._method===m.Method.GET&&Boolean(this._body))throw new Error("Body is not supported for GET");if(Boolean(this._mime)&&(this._headers["Content-Type"]=this._mime),this._cookies.length>0){this._headers.Cookie=this._cookies.join("; ")}return new m(this._url,this._method,this._headers,Boolean(this._mime)?this._mime:null,this._body)},e}();t.RequestBuilder=l,function(e){!function(e){e.identity=function(e){return o.task.of(e)},e.compose=function(){for(var t=[],n=0;n1024?s.failure(e,n,"Property ".concat(r," is too long (max length is ").concat(1024,")")):t.some((function(e){return i.indexOf(e)>=0}))?s.failure(e,n,"Property ".concat(r," has forbidden characters (").concat(t.join(", "),")")):s.success(e)}),s.identity),e.fromProperties=function(t){return s.type((0,a.pipe)(t,o.filter((function(e){return"function"!==typeof e})),o.map((function(t){return e.property}))))}}(v||(v={}));var A=function(){function e(e,t,n){this._fingerprints=n,this._endpoints={props:"props/v2",mimic:"mimic"},this._url=M.RequestBuilder.join(e,"api"),this._ajax=t({requestExtender:m.Fingerprints.toHeaderAppender(this._fingerprints)})}return e.prototype.load=function(){return(0,a.pipe)(this._ajax.json(M.RequestBuilder.get(this._url,this._endpoints.props)),this._ajax.map(g.of))},e.prototype.get=function(e){return(0,a.pipe)(this._ajax.text(M.RequestBuilder.get(this._url,this._endpoints.props,e)),this._ajax.map((function(t){var n;return g.of(((n={})[e]=t||null,n))})))},e.prototype.save=function(e){var t=this;return(0,a.pipe)(e,S,i.mapLeft(C),i.fold(this._ajax.throwError,this._ajax.of),this._ajax.map((function(e){return M.RequestBuilder.post(t._url,t._endpoints.props).json(e)})),this._ajax.chain(this._ajax.empty))},e.prototype.getMimic=function(e){return this._ajax.json(M.RequestBuilder.get(this._url,this._endpoints.mimic).cookie("gnar_containerId",e))},e.prototype.getMimicWithProps=function(e){return(0,a.pipe)(this._ajax.json(M.RequestBuilder.get(this._url,this._endpoints.mimic,"withProps").cookie("gnar_containerId",e)),this._ajax.map((function(e){var t=e.groups,n=e.properties;return{experiments:new Set(t),properties:g.of(n)}})))},e.targetTag="dapi",e}();t.Dapi=A},79374:function(e,t,n){"use strict";t.u=void 0;var r=n(29388),i=n(88682),o=n(48553),a=n(52842),s=n(20600),u=n(33570),c=i.interface({id:i.number,created:u.Type.date(),status:i.union([i.literal("IN_PROGRESS"),i.literal("GENERATED"),i.literal("FAILED")])}),M=function(e){function t(t,n,r){var i=e.call(this)||this;return i._url=t,i._ajaxFactory=n,i._fingerprints=r,i._ajax=i._ajaxFactory({requestExtender:s.Fingerprints.toHeaderAppender(i._fingerprints)}),i}return(0,r.__extends)(t,e),t.getDefaultUrl=function(e){return"https://datareport".concat(e)},t.prototype.reports=function(){var e=o.RequestBuilder.get(this._url,"reports");return this._ajax.json(e,i.array(c))},t.prototype.request=function(){var e=o.RequestBuilder.post(this._url,"submit");return this._ajax.json(e,c)},t.targetTag="dataReport",t}(a.Client.Base);t.u=M},20600:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCookiesAppender=t.createHeadersAppender=t.Fingerprints=void 0;var r=n(29388);function i(e){var t=this;function n(e){return(0,r.__awaiter)(this,void 0,void 0,(function(){var t,n,i;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return Array.isArray(e)?(t=e[0],n=e[1],i=[t],[4,"function"===typeof n?n():n]):[3,2];case 1:return[2,i.concat([r.sent()]).join(" ")];case 2:return[4,"function"===typeof e?e():e];case 3:return[2,r.sent()]}}))}))}return function(i){return function(){return(0,r.__awaiter)(t,void 0,void 0,(function(){var t,o,a,s,u,c,M,m;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:for(o in t=[],e)t.push(o);a=0,r.label=1;case 1:return a0&&t.every(e.is)}}e.set=function(e){return new o.Type("Set<".concat(e.name,">"),(function(e){return e instanceof Set}),(function(t,n){return a.E.either.map(o.array(e).validate(t,n),(function(e){return new Set(e)}))}),(function(e){return Array.from(e)}))},e.getIsOption=t,e.option=function(e){return new o.Type("option:".concat(e.name),t(e),(function(t,n){return void 0===t||null===t?a.E.right(a.O.none):a.E.either.map(e.validate(t,n),a.O.some)}),a.O.fold((function(){}),e.encode))},e.opaque=function(e){return new o.Type("Opaque",(function(e){return"string"==typeof e}),(function(t,n){return a.E.either.chain(e.validate(t,n),(function(e){return o.success(e)}))}),(function(e){return e}))},e.getIsNEA=n,e.nonEmptyArray=function(e){return new o.Type("NEA",n(e),(function(t,n){return a.E.either.chain(o.array(e).validate(t,n),(function(e){return e.length>0?o.success(e):o.failure(e,n,"Array is empty")}))}),(function(e){return a.O.unsafeGet(a.NEA.fromArray(e))}))},e.literalUnion=function(e,t){return o.union(t.map((function(e){return o.literal(e)})),"".concat(e,":string"))},e.date=function(){return new o.Type("Date",(function(e){return e instanceof Date}),(function(e,t){var n=Date.parse(null===e||void 0===e?void 0:e.toString()),r=isNaN(n)?e:n;return a.E.either.map(o.number.validate(r,t),(function(e){return new Date(e)}))}),(function(e){return e.getTime()}))};var u=function(e){return o.string.is(e)&&!Number.isNaN(Number(e))};e.stringFromNumber=new o.Type("stringFromNumber",u,(function(e,t){return u(e)?o.success(e):"number"!==typeof e||Number.isNaN(e)?o.failure(e,t):o.success(e.toString())}),(function(e){return Number(e)})),e.withDefault=function(e,t){return new o.Type("withDefault(".concat(JSON.stringify(t),"):").concat(e.name),e.is,(function(n,r){return e.validate((0,s.emptyValue)(n)?t:n,r)}),e.encode)},e.fallback=function(e,t){return new o.Type("fallback(".concat(JSON.stringify(t),"):").concat(e.name),e.is,(function(n,r){var i=e.validate(n,r);return a.E.isLeft(i)?a.E.right(t):i}),e.encode)};var c=function(e,t){Array.prototype.push.apply(e,t)},M=["boolean","string","Date","number","Array","Set","object","Dictionary","StringEnum","Partial"];function m(e,t){var n=function(e){var t=e.replace(/\w+\(.*?\):/,"");if("{"===t[0]&&"}"===t[t.length-1])return"object";var n=t.split(":").pop();return 0===n.indexOf("Date")?"Date":0===n.indexOf("Array<")?"Array":0===n.indexOf("Set<")?"Set":0===n.indexOf("StringEnum<")?"StringEnum":0===t.indexOf("Partial<")?"Partial":((0,a.invariant)(M.indexOf(n)>-1,"unsupported prop type ".concat(e)),n)}(e);switch(n){case"boolean":return t.getBool();case"string":case"StringEnum":return t.getStr();case"Date":return null===t.getNum()?t.getStr():t.getNum();case"number":return t.getNum();case"Array":case"Set":return t.getArray();case"object":case"Partial":case"Dictionary":return t.getObject();default:return(0,a.assertNever)(n)}}e.properties=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=function(e){return"{ ".concat(Object.keys(e).map((function(t){return"".concat(t,": ").concat(e[t].name)})).join(", ")," }")}(e)),new o.InterfaceType(n,(function(t){if(!s.Properties.is(t))return!1;for(var n in e)if(!e[n].is(t[n]))return!1;return!0}),(function(n,u){if(!Array.isArray(n)||n.some((function(e){return!s.Properties.is(e)})))return o.failure(n,u);var M={},l=[],d=function(d){var h=""!==t?"".concat(t,":").concat(d):d,f=s.Properties.find.apply(s.Properties,(0,r.__spreadArray)([h],n,!1)),p=e[d],y=m(p.name,f),g=p.validate(y,o.appendContext(u,d,p));(0,i.pipe)(g,a.E.fold((function(e){return c(l,e)}),(function(e){M[d]=e})))};for(var h in e)d(h);return l.length?o.failures(l):o.success(M)}),(function(n){var r={};for(var i in e){var o=""!==t?"".concat(t,":").concat(i):i,a=e[i],u=n[i];a.is(u)&&(r[o]=e[i].encode(u))}return s.Properties.of(r)}),e)},e.combineProperties=function(e,t){void 0===t&&(t="(".concat(e.map((function(e){return e.name})).join(" & "),")"));var n=e.length;return new o.IntersectionType(t,(function(t){return e.every((function(e){return e.is(t)}))}),(function(t,r){for(var s={},u=[],M=0;M"))}}(t.Type||(t.Type={}))},21282:function(e,t,n){"use strict";t.V=void 0;var r=n(29388),i=n(88682),o=n(48553),a=n(52842),s=n(20600),u=n(33570),c=function(e){function t(t,n,r){var i=e.call(this)||this;return i._url=t,i._ajaxFactory=n,i._fingerprints=r,i._ajax=i._ajaxFactory({requestExtender:s.Fingerprints.toHeaderAppender(i._fingerprints)}),i}return(0,r.__extends)(t,e),t.getDefaultUrl=function(e){return"https://goldengate".concat(e,"/auth/api/token/scim")},t.prototype.getTokens=function(){var e=o.RequestBuilder.get(this._url);return this._ajax.json(e)},t.prototype.generateToken=function(){var e=o.RequestBuilder.post(this._url);return this._ajax.text(e)},t.prototype.deleteToken=function(e){var t=o.RequestBuilder.del(this._url+"/".concat(e));return this._ajax.empty(t)},t.ScimTokenIOType=i.interface({tokenId:i.number,lastModified:u.Type.date(),modifiedBy:i.string,lastUsed:u.Type.date(),signKeyId:i.string}),t}(a.Client.Base);t.V=c},82196:function(e,t,n){"use strict";t.B=void 0;var r=n(29388),i=n(88682),o=n(48553),a=n(52842),s=n(20600),u=n(33570),c=function(e){function t(t,n,r){var i=e.call(this)||this;return i._url=t,i._ajaxFactory=n,i._fingerprints=r,i._ajax=i._ajaxFactory({requestExtender:s.Fingerprints.toHeaderAppender(i._fingerprints)}),i}var n;return(0,r.__extends)(t,e),t.getDefaultUrl=function(e){return"https://goldengate".concat(e,"/snippets/v1/snippets")},t.prototype.getFolders=function(e,t){var n=o.RequestBuilder.get(this._url,"/".concat(e,"/").concat(t,"/folders"));return this._ajax.json(n)},t.prototype.addFolder=function(e,t,n){var r=o.RequestBuilder.post(this._url,"/".concat(e,"/").concat(t,"/folders")).json(n);return this._ajax.json(r)},t.prototype.updateFolder=function(e,t,n,r){var i=o.RequestBuilder.put(this._url,"/".concat(e,"/").concat(t,"/folders/").concat(n)).json(r);return this._ajax.json(i)},t.prototype.deleteManyFolders=function(e,t,n){var r=o.RequestBuilder.del(this._url,"/".concat(e,"/").concat(t,"/folders")).queryParam("idsToDelete",n.join(","));return this._ajax.empty(r)},t.prototype.moveSnippets=function(e,t,n){var r=o.RequestBuilder.post(this._url,"/".concat(e,"/").concat(t,"/folders/move")).json(n);return this._ajax.empty(r)},t.prototype.getSnippets=function(e,t,n){var r=o.RequestBuilder.get(this._url,"/".concat(e,"/").concat(t));return r.queryParam("showDisabledSnippets",!0===n?"true":"false"),this._ajax.json(r)},t.prototype.getSnippetsAndSettings=function(e,t){var n=o.RequestBuilder.get(this._url,"/".concat(e,"/").concat(t,"/with-settings"));return this._ajax.json(n)},t.prototype.addSnippet=function(e,t,n){var r=o.RequestBuilder.post(this._url,"/".concat(e,"/").concat(t)).json(n);return this._ajax.json(r)},t.prototype.updateSnippet=function(e,t,n,r){var i=o.RequestBuilder.put(this._url,"/".concat(e,"/").concat(t,"/").concat(n)).json(r);return this._ajax.empty(i)},t.prototype.deleteSnippet=function(e,t,n){var r=o.RequestBuilder.del(this._url,"/".concat(e,"/").concat(t,"/").concat(n));return this._ajax.empty(r)},t.prototype.deleteManySnippet=function(e,t,n){var r=o.RequestBuilder.del(this._url,"/".concat(e,"/").concat(t)).json(n);return this._ajax.empty(r)},t.prototype.uploadFile=function(e,t,n,r,i){var a=o.RequestBuilder.post(this._url,"/".concat(e,"/").concat(t,"/csv")).queryParam("hierarchy",null!==r&&void 0!==r?r:"GLOBAL").multipartFormData("file",n);return"string"===typeof i&&""!==i&&a.queryParam("folderId",i),this._ajax.json(a)},t.prototype.setEnabled=function(e,t,n){var r=o.RequestBuilder.post(this._url,"/".concat(e,"/").concat(t,"/set-enabled"));return r.queryParam("isEnabled",String(n)),this._ajax.json(r)},t.prototype.isEnabled=function(e,t){var n=o.RequestBuilder.get(this._url,"/".concat(e,"/").concat(t,"/enabled"));return this._ajax.json(n)},t.prototype.getSnippetsShortcuts=function(e,t){var n=o.RequestBuilder.get(this._url,"/".concat(e,"/").concat(t,"/user-shortcuts"));return this._ajax.json(n)},t.prototype.updateSnippetsShortcuts=function(e,t,n){var r=o.RequestBuilder.post(this._url,"/".concat(e,"/").concat(t,"/user-shortcuts")).json(n);return this._ajax.json(r)},t.FolderHierarchy=i.union([i.literal("GLOBAL"),i.literal("PERSONAL"),i.literal("USER_GROUPS")]),t.SaveFolderBodyIOType=i.partial({name:i.string,hierarchy:t.FolderHierarchy,groupIds:i.array(i.number)}),t.GroupIOType=i.interface({id:i.number,institutionId:i.number,name:i.string}),t.FolderIOType=i.intersection([i.interface({id:i.string,name:i.string,hierarchy:t.FolderHierarchy,createdAt:u.Type.date(),modifiedAt:u.Type.date()}),i.partial({groups:i.array(t.GroupIOType)})]),t.GetFoldersResponseIOType=i.interface({snippetsFolders:i.array(t.FolderIOType)}),t.StringInsertIOType=i.interface({insert:i.string}),t.ImageInsertIOType=i.type({insert:i.interface({image:i.string})}),t.InsertOperationIOType=i.intersection([i.union([t.StringInsertIOType,t.ImageInsertIOType]),i.partial({attributes:i.record(i.string,i.unknown)})]),t.FormattedTextIOType=i.interface({ops:i.array(t.InsertOperationIOType)}),t.CreateSnippetIOType=i.intersection([i.interface({name:i.string,contentDelta:t.FormattedTextIOType,hierarchy:t.FolderHierarchy}),i.partial({content:i.string,folderId:i.string})]),t.SnippetRuleIOType=i.interface({name:i.string,content:i.string,contentDelta:t.FormattedTextIOType,hierarchy:t.FolderHierarchy,folder:i.interface({id:i.string,name:i.string}),id:i.string,enabled:i.boolean,createdAt:u.Type.date(),modifiedAt:u.Type.date(),lastUsed:null!==(n=u.Type.date())&&void 0!==n?n:null,frequency:i.number,sample:i.boolean}),t.FileUploadResultIOType=i.interface({uploadSnippetsCount:i.number,errorsToCreateSnippetRequests:i.record(i.string,i.readonlyArray(t.CreateSnippetIOType))}),t.MoveSnippetsRequestIOType=i.interface({sourceFolderId:i.string,destinationFolderId:i.string,snippetIds:i.array(i.string)}),t.SettingsType=i.interface({resourceId:i.number,enabled:i.boolean,resourceType:i.string}),t.SnippetsShortcutsIOType=i.interface({snippetsTrigger:i.string,createSnippetTrigger:i.string}),t.GetSnippetsAndSettingsResponseIOType=i.interface({isEnabled:i.boolean,snippets:i.array(t.SnippetRuleIOType),userShortcuts:t.SnippetsShortcutsIOType}),t}(a.Client.Base);t.B=c},28168:function(e,t,n){"use strict";t.Or=t.Go=void 0;var r,i=n(29388),o=n(88682),a=n(48553),s=n(52842),u=n(20600),c=n(33570),M=n(45046),m=c.Type.createStringEnum;!function(e){e.notMuted="NOT_MUTED",e.muted="MUTED_BY_USER",e.forceMuted="FORCE_MUTED_BY_INSTITUTION",e.forceUnmuted="FORCE_UNMUTED_BY_INSTITUTION"}(r=t.Go||(t.Go={}));var l=function(e){function t(t,n,r){var i=e.call(this)||this;return i._url=t,i._ajaxFactory=n,i._fingerprints=r,i._ajax=i._ajaxFactory({requestExtender:u.Fingerprints.toHeaderAppender(i._fingerprints)}),i}return(0,i.__extends)(t,e),t.getDefaultUrl=function(e){return"https://capi".concat(e,"/api/deactivated-suggestions")},t.prototype.getSettings=function(){return this._ajax.json(a.RequestBuilder.get(this._url,"/settings"))},t.prototype.mute=function(e){return this._ajax.empty(a.RequestBuilder.post(this._url,"/mute").json({category:e}))},t.prototype.unmute=function(e){return this._ajax.empty(a.RequestBuilder.post(this._url,"/unmute").json({category:e}))},t.SuggestionSetting=o.intersection([o.interface({title:o.string,description:o.string,longDescription:o.string,mutedBy:m(r,"mutedBy")}),o.partial({category:M.WritingStyleCategoryIOType,examples:o.array(o.string),mode:o.string})]),t.SuggestionSettings=o.interface({deactivatedSuggestions:o.array(t.SuggestionSetting)}),t}(s.Client.Base);t.Or=l},32358:function(e,t,n){"use strict";t.U4=t.gM=t.FR=t.Yr=t.u1=void 0;var r=n(29388),i=n(88682),o=n(48553),a=n(52842),s=n(20600),u=n(33570);!function(e){e.On="ON",e.Off="OFF"}(t.u1||(t.u1={}));var c,M=i.interface({id:i.string,createdAt:i.string,updatedAt:i.string}),m=i.interface({name:i.string}),l=i.interface({description:i.string,allowedDomains:i.array(i.string)}),d=i.interface({isActivated:i.boolean,isOrgWide:i.boolean,isAllowedDomainsEnabled:i.boolean}),h=i.interface({numberOfVoxRules:i.number,numberOfActiveVoxRules:i.number,aggregateViews:i.number,percentAccepted:i.number}),f=i.intersection([M,d,i.partial(m.props),i.partial(l.props),h]),p=i.interface({linkedGroupIds:i.array(i.number)}),y=i.interface({ruleId:i.string,source:i.string,conflictStyleGuideName:i.string}),g=i.interface({suppressedRules:i.array(y)}),E=i.array(i.intersection([M,m,d])),v=i.intersection([f,p,g]),b=i.interface({styleGuides:i.array(v)}),w=i.intersection([M,d,i.partial(m.props),i.partial(l.props)]),S=(i.intersection([i.partial(m.props),i.partial(l.props),i.partial(d.props)]),i.intersection([i.partial(m.props),i.partial(l.props),d]),i.intersection([m,i.partial(l.props),i.partial(d.props)]),i.interface({groupIds:i.array(i.number)}),i.interface({groupIds:i.array(i.number)})),C=i.intersection([i.interface({sources:i.array(i.string)}),i.partial({description:i.string}),i.union([i.interface({hasTarget:i.literal(!0),targets:i.array(i.string)}),i.interface({hasTarget:i.literal(!1)})])]),A=i.intersection([C,i.interface({id:i.string,accepted:i.number,ignored:i.number,looked:i.number}),i.partial({sample:i.boolean})]),_=i.interface({rules:i.array(A)}),H=i.intersection([f,p,g,_]);!function(e){e.SOURCE_IS_REQUIRED="source_is_required",e.SOURCE_IS_DUPLICATED="source_is_duplicated",e.EXPLANATION_IS_REQUIRED="explanation_is_required",e.UNABLE_TO_PROCESS_FILE="unable_to_process_file",e.INVALID_FORMAT="invalid_format"}(c=t.Yr||(t.Yr={}));var k,P=i.union([i.interface({uploadedRulesCount:i.number,existingRulesCount:i.number,fileId:i.string}),i.interface({errors:i.array(i.interface({lineNumber:i.number,message:u.Type.createStringEnum(c,"errorMessageCode")}))})]);!function(e){e.notStarted="NOT_STARTED",e.inProgress="IN_PROGRESS",e.succeed="SUCCEED",e.failed="FAILED"}(k=t.FR||(t.FR={}));var N=i.interface({status:u.Type.option(u.Type.createStringEnum(k,"status"))}),T=(i.intersection([i.interface({success:i.boolean}),i.partial({movedRuleIds:i.array(i.string),conflictedRuleIds:i.array(i.string)})]),function(e){function t(t,n,r){var i=e.call(this)||this;return i._url=t,i._ajaxFactory=n,i._fingerprints=r,i._ajax=i._ajaxFactory({requestExtender:s.Fingerprints.toHeaderAppender(i._fingerprints)}),i}return(0,r.__extends)(t,e),t.prototype.getRules=function(e,t){var n=o.RequestBuilder.get(this._url,"".concat(e,"/sg/").concat(t,"/rules"));return this._ajax.json(n,i.array(A))},t.prototype.getRulesAsCSVLink=function(e,t){return this._ajax.json(o.RequestBuilder.get(this._url,"".concat(e,"/sg/").concat(t,"/rules/csv")))},t.prototype.uploadRulesCSVFile=function(e,t,n){var r=o.RequestBuilder.post(this._url,"".concat(e,"/sg/").concat(n,"/rules/csv")).multipartFormData("file",t);return this._ajax.json(r,P)},t.prototype.applyRulesFromCSV=function(e,t,n){var r=o.RequestBuilder.post(this._url,"".concat(e,"/sg/").concat(n,"/rules/csv"),t);return this._ajax.json(r,N)},t.prototype.getRulesFileProcessingStatus=function(e,t,n){var r=o.RequestBuilder.get(this._url,"".concat(e,"/sg/").concat(n,"/rules/csv"),t);return this._ajax.json(r,N)},t.prototype.createRule=function(e,t,n){var r=o.RequestBuilder.post(this._url,"".concat(e,"/sg/").concat(n,"/rules")).json(t);return this._ajax.json(r,A)},t.prototype.editRule=function(e,t,n,r){var i=o.RequestBuilder.put(this._url,"".concat(e,"/sg/").concat(r,"/rules/").concat(t)).json(n);return this._ajax.json(i,A)},t.prototype.moveRule=function(e,t,n,r){var i=o.RequestBuilder.post(this._url,"".concat(e,"/sg/").concat(n,"/rules/move")).json({ruleIds:[t],destSgId:r});return this._ajax.json(i)},t.prototype.moveRules=function(e,t,n,r){var i=o.RequestBuilder.post(this._url,"".concat(e,"/sg/").concat(n,"/rules/move")).json({ruleIds:t,destSgId:r});return this._ajax.json(i)},t.prototype.deleteRule=function(e,t,n){var r=o.RequestBuilder.del(this._url,"".concat(e,"/sg/").concat(n,"/rules/").concat(t));return this._ajax.empty(r)},t.prototype.deleteRules=function(e,t,n){var r=o.RequestBuilder.del(this._url,"".concat(e,"/sg/").concat(n,"/rules/delete")).json(t);return this._ajax.empty(r)},t.prototype.getStyleGuides=function(e){var t=o.RequestBuilder.get(this._url,"".concat(e,"/sg"));return this._ajax.json(t,b)},t.prototype.getStyleGuide=function(e,t){var n=o.RequestBuilder.get(this._url,"".concat(e,"/sg/").concat(t));return this._ajax.json(n,w)},t.prototype.getStyleGuideSummary=function(e,t){var n=o.RequestBuilder.get(this._url,"".concat(e,"/sg/").concat(t,"/summary"));return this._ajax.json(n,H)},t.prototype.createStyleGuide=function(e,t){var n=o.RequestBuilder.post(this._url,"".concat(e,"/sg")).json(t);return this._ajax.json(n,w)},t.prototype.editStyleGuide=function(e,t,n){var r=o.RequestBuilder.patch(this._url,"".concat(e,"/sg/").concat(t)).json(n);return this._ajax.json(r,w)},t.prototype.modifyStyleGuide=function(e,t,n){var r=o.RequestBuilder.patch(this._url,"".concat(e,"/sg/").concat(t)).json(n);return this._ajax.json(r,w)},t.prototype.deleteStyleGuide=function(e,t){var n=o.RequestBuilder.del(this._url,"".concat(e,"/sg/").concat(t));return this._ajax.empty(n)},t.prototype.copyStyleGuide=function(e,t){var n=o.RequestBuilder.post(this._url,"".concat(e,"/sg/").concat(t,"/copy"));return this._ajax.json(n,f)},t.prototype.getStyleGuideGroups=function(e,t){var n=o.RequestBuilder.get(this._url,"".concat(e,"/sg/").concat(t,"/groups"));return this._ajax.json(n,S)},t.prototype.linkGroupsToStyleGuide=function(e,t,n){var r=o.RequestBuilder.post(this._url,"".concat(e,"/sg/").concat(t,"/groups")).json(n);return this._ajax.empty(r)},t.prototype.unlinkGroupsFromStyleGuide=function(e,t,n){var r=o.RequestBuilder.del(this._url,"".concat(e,"/sg/").concat(t,"/groups")).json(n);return this._ajax.empty(r)},t.prototype.getGroupStyleGuides=function(e,t){var n=o.RequestBuilder.get(this._url,"".concat(e,"/sg/groups/").concat(t));return this._ajax.json(n,E)},t.prototype.deleteStyleGuideAllowedDomains=function(e,t){var n=o.RequestBuilder.del(this._url,"".concat(e,"/sg/").concat(t,"/allowedDomains"));return this._ajax.json(n,w)},t}(a.Client.Base)),R=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return(0,r.__extends)(t,e),t.getDefaultUrl=function(e){return"https://goldengate".concat(e,"/vox/v2/institution")},t}(T);t.gM=R;var B=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return(0,r.__extends)(t,e),t.getDefaultUrl=function(e){return"https://goldengate".concat(e,"/vox/v2/workspace")},t}(T);t.U4=B},45046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WritingStyles=t.WritingStyleCategoryIOType=void 0;var r=n(29388),i=n(88682),o=n(48553),a=n(52842),s=n(20600),u=n(33570);t.WritingStyleCategoryIOType=u.Type.literalUnion("category",(0,u.literalArray)(["Clarity","Correctness","Consistency","Inclusive language","Dates and times","Punctuation","Formality","Sentence structure","Voice and tone","Word choice","Numbers","Abbreviations"]));var c=i.union([i.literal("FORCE_MUTED"),i.literal("FORCE_UNMUTED"),i.string],"mode"),M=(u.Type.literalUnion("organizationType",(0,u.literalArray)(["institution","workspace"])),i.interface({title:i.string,description:i.string,mode:c})),m=(i.interface({title:i.string,mode:c}),i.intersection([i.interface({title:i.string,description:i.string,longDescription:i.string}),i.partial({category:i.string,modes:i.array(i.string),examples:i.array(i.string)})])),l={name:i.string,profileGroups:i.array(i.number)},d=i.interface((0,r.__assign)({id:i.string},l)),h=(i.interface(l),function(e){function t(t,n,r){var i=e.call(this)||this;return i._url=t,i._ajaxFactory=n,i._fingerprints=r,i._ajax=i._ajaxFactory({requestExtender:s.Fingerprints.toHeaderAppender(i._fingerprints)}),i}return(0,r.__extends)(t,e),t.getDefaultUrl=function(e){return"https://goldengate".concat(e,"/writing-style")},t.prototype.getWritingStyleCategories=function(){var e=o.RequestBuilder.get(this._url,"/categories");return this._ajax.json(e,i.array(m))},t.prototype.getProfiles=function(e,t){var n=o.RequestBuilder.get(this._url,"".concat(e,"/").concat(t,"/profiles"));return this._ajax.json(n,i.array(d))},t.prototype.getProfile=function(e,t,n){var r=o.RequestBuilder.get(this._url,"".concat(e,"/").concat(t,"/profiles/").concat(n));return this._ajax.json(r,d)},t.prototype.addProfile=function(e,t,n){var r=o.RequestBuilder.post(this._url,"".concat(e,"/").concat(t,"/profiles")).json(n);return this._ajax.json(r,d)},t.prototype.updateProfile=function(e,t,n,r){var i=o.RequestBuilder.patch(this._url,"".concat(e,"/").concat(t,"/profiles/").concat(n)).json(r);return this._ajax.json(i,d)},t.prototype.deleteProfile=function(e,t,n){var r=o.RequestBuilder.del(this._url,"".concat(e,"/").concat(t,"/profiles/").concat(n));return this._ajax.empty(r)},t.prototype.getProfileWritingStyles=function(e,t,n){var r=o.RequestBuilder.get(this._url,"/".concat(e,"/").concat(t,"/profiles/").concat(n,"/settings"));return this._ajax.json(r,i.array(M))},t.prototype.updateProfileWritingStyle=function(e,t,n,r){var i=o.RequestBuilder.patch(this._url,"/".concat(e,"/").concat(t,"/profiles/").concat(n,"/settings")).json(r);return this._ajax.empty(i)},t.prototype.deleteProfileWritingStyle=function(e,t,n,r){var i=o.RequestBuilder.del(this._url,"/".concat(e,"/").concat(t,"/profiles/").concat(n,"/settings")).queryParam("title",r);return this._ajax.empty(i)},t.prototype.getWritingStyles=function(e,t){var n=o.RequestBuilder.get(this._url,"/".concat(e,"/").concat(t,"/settings"));return this._ajax.json(n,i.array(M))},t.prototype.updateWritingStyle=function(e,t,n){var r=o.RequestBuilder.patch(this._url,"/".concat(e,"/").concat(t,"/settings")).json(n);return this._ajax.empty(r)},t.prototype.deleteWritingStyle=function(e,t,n){var r=o.RequestBuilder.del(this._url,"/".concat(e,"/").concat(t,"/settings")).queryParam("title",n);return this._ajax.empty(r)},t}(a.Client.Base));t.WritingStyles=h},50793:function(e,t,n){"use strict";n.d(t,{Bb:function(){return d},Lu:function(){return l},cf:function(){return h},cl:function(){return f},tk:function(){return r}});var r,i=n(29388),o=n(65309),a=n(61542),s=n(1583),u=n(34551),c=n(89350),M=n(50582),m=n(65376);!function(e){e.extend=function(e){return u.local((function(t){return(0,i.__assign)((0,i.__assign)({},t),{requestExtender:t.requestExtender?f.Extender.compose(e,t.requestExtender):e})}))};var t=function(e){function t(t,n){var r=e.call(this,t)||this;return r.message=t,r.details=n,r.name="ParseError",r}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Ajax response parsing error\n Message ".concat(this.message,"\n Details ").concat(a.failure(this.details).join("\n"))},t}(c.sH);e.ParseError=t,function(e){e.json="application/json",e.form="application/x-www-form-urlencoded",e.multipart="multipart/form-data",e.pdf="application/pdf",e.txt="text/plain",e.stream="application/octet-stream",e.vnd="application/vnd",e.zip="application/zip",e.any="*/*"}(e.MimeType||(e.MimeType={})),e.mapToHTTPErrorWithoutBody=function(t,n,r){return r.removeBody(),e.mapToHTTPError(t,n,r)},e.mapToHTTPError=function(e,t,n){return new d({request:n,code:t.status,status:t.statusText,url:t.url,body:e})}}(r||(r={}));var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.message=t,r.details=n,r.name="RequestError",r}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Request error\n Message: ".concat(this.message,"\n details: ").concat(this.details)},t.fromError=function(e,n){var r=new t(e,n.message);return r.stack=n.stack,r},t}(c.sH),d=function(e){function t(t){var n=t.code,r=t.status,i=t.url,o=t.message,a=t.body,s=t.request,u=e.call(this,Boolean(o)?o:Boolean(r||a)?r||a:"HTTPError")||this;return u.name="HTTPError",u.url=i,u.code=n,u.body=a,u.status=r,u.request=s,u}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Response\n Message: ".concat(this.message,"\n Status: ").concat(this.status,"\n Code: ").concat(this.code,"\n Body: ").concat(this.body,"\n ").concat(void 0!==this.request?"\n"+this.request.toString():"Url: ".concat(this.url))},t}(c.sH),h=function(){function e(e,t,n,r,i){this._url=e,this._method=t,this._headers=n,this._mime=r,this._body=i}return e.get=function(){for(var e=[],t=0;t0})),0).join("/");return e._normalize(r)},e._normalize=function(e){return e=(e=(e=e.replace(/:\//g,"://")).replace(/([^:\s])\/+/g,"$1/")).replace(/\/(\?|#)/g,"$1")},e.get=function(){for(var t=[],n=0;n0&&(this._url+="?"+this._queryParams),this._body instanceof URLSearchParams){if(Boolean(this._mime)&&this._mime!==r.MimeType.form)throw new Error("Only application/x-www-form-urlencoded can be used for form requests, don't specify it mandatory in mime() method");this._mime=r.MimeType.form}else if(this._body instanceof s&&Boolean(this._mime)&&this._mime!==r.MimeType.multipart)throw new Error("Only multipart/form-data can be used for multipart form data requests, don't specify it mandatory in mime() method");if(this._mime===r.MimeType.json&&Boolean(this._body)&&(this._body=JSON.stringify(this._body)),!Boolean(this._method))throw new Error("HTTP method was not set");if(this._method=this._method,this._method===h.Method.GET&&Boolean(this._body))throw new Error("Body is not supported for GET");if(Boolean(this._mime)&&(this._headers["Content-Type"]=this._mime),this._cookies.length>0){this._headers.Cookie=this._cookies.join("; ")}return new h(this._url,this._method,this._headers,Boolean(this._mime)?this._mime:null,this._body)},e}();!function(e){!function(e){e.identity=function(e){return o.task.of(e)},e.compose=function(){for(var t=[],n=0;n-1}))}),(function(n){return new p.Bb({code:-1,message:"Unexpected Content-Type",status:"Expected: ".concat(e.join(),"\nActual: ").concat(t(n))})}))}function r(e,t){return function(n){return a.task.of(n.header(e,t))}}function i(){for(var e=[],t=0;t1024?s.failure(e,n,"Property ".concat(r," is too long (max length is ").concat(1024,")")):t.some((function(e){return i.indexOf(e)>=0}))?s.failure(e,n,"Property ".concat(r," has forbidden characters (").concat(t.join(", "),")")):s.success(e)}),s.identity),e.fromProperties=function(t){return s.type((0,a.pipe)(t,o.filter((function(e){return"function"!==typeof e})),o.map((function(t){return e.property}))))}}(b||(b={}));var _=function(){function e(e,t,n){this._fingerprints=n,this._endpoints={props:"props/v2",mimic:"mimic"},this._url=m.cl.join(e,"api"),this._ajax=t({requestExtender:l.d3.toHeaderAppender(this._fingerprints)})}return e.prototype.load=function(){return(0,a.pipe)(this._ajax.json(m.cl.get(this._url,this._endpoints.props)),this._ajax.map(E.of))},e.prototype.get=function(e){return(0,a.pipe)(this._ajax.text(m.cl.get(this._url,this._endpoints.props,e)),this._ajax.map((function(t){var n;return E.of(((n={})[e]=t||null,n))})))},e.prototype.save=function(e){var t=this;return(0,a.pipe)(e,C,i.mapLeft(A),i.fold(this._ajax.throwError,this._ajax.of),this._ajax.map((function(e){return m.cl.post(t._url,t._endpoints.props).json(e)})),this._ajax.chain(this._ajax.empty))},e.prototype.getMimic=function(e){return this._ajax.json(m.cl.get(this._url,this._endpoints.mimic).cookie("gnar_containerId",e))},e.prototype.getMimicWithProps=function(e){return(0,a.pipe)(this._ajax.json(m.cl.get(this._url,this._endpoints.mimic,"withProps").cookie("gnar_containerId",e)),this._ajax.map((function(e){var t=e.groups,n=e.properties;return{experiments:new Set(t),properties:E.of(n)}})))},e.targetTag="dapi",e}()},7201:function(e,t,n){"use strict";n.d(t,{d3:function(){return r},tu:function(){return o}});var r,i=n(29388);function o(e){var t=this;function n(e){return(0,i.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return Array.isArray(e)?(t=e[0],n=e[1],r=[t],[4,"function"===typeof n?n():n]):[3,2];case 1:return[2,r.concat([i.sent()]).join(" ")];case 2:return[4,"function"===typeof e?e():e];case 3:return[2,i.sent()]}}))}))}return function(r){return function(){return(0,i.__awaiter)(t,void 0,void 0,(function(){var t,o,a,s,u,c,M,m;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:for(o in t=[],e)t.push(o);a=0,i.label=1;case 1:return a0&&t.every(e.is)}}e.set=function(e){return new a.Type("Set<".concat(e.name,">"),(function(e){return e instanceof Set}),(function(t,n){return s.either.map(a.array(e).validate(t,n),(function(e){return new Set(e)}))}),(function(e){return Array.from(e)}))},e.getIsOption=t,e.option=function(e){return new a.Type("option:".concat(e.name),t(e),(function(t,n){return void 0===t||null===t?s.right(c.none):s.either.map(e.validate(t,n),c.some)}),c.fold((function(){}),e.encode))},e.opaque=function(e){return new a.Type("Opaque",(function(e){return"string"==typeof e}),(function(t,n){return s.either.chain(e.validate(t,n),(function(e){return a.success(e)}))}),(function(e){return e}))},e.getIsNEA=n,e.nonEmptyArray=function(e){return new a.Type("NEA",n(e),(function(t,n){return s.either.chain(a.array(e).validate(t,n),(function(e){return e.length>0?a.success(e):a.failure(e,n,"Array is empty")}))}),(function(e){return u.unsafeGet(M.fromArray(e))}))},e.literalUnion=function(e,t){return a.union(t.map((function(e){return a.literal(e)})),"".concat(e,":string"))},e.date=function(){return new a.Type("Date",(function(e){return e instanceof Date}),(function(e,t){var n=Date.parse(null===e||void 0===e?void 0:e.toString()),r=isNaN(n)?e:n;return s.either.map(a.number.validate(r,t),(function(e){return new Date(e)}))}),(function(e){return e.getTime()}))};var r=function(e){return a.string.is(e)&&!Number.isNaN(Number(e))};e.stringFromNumber=new a.Type("stringFromNumber",r,(function(e,t){return r(e)?a.success(e):"number"!==typeof e||Number.isNaN(e)?a.failure(e,t):a.success(e.toString())}),(function(e){return Number(e)})),e.withDefault=function(e,t){return new a.Type("withDefault(".concat(JSON.stringify(t),"):").concat(e.name),e.is,(function(n,r){return e.validate((0,l.uY)(n)?t:n,r)}),e.encode)},e.fallback=function(e,t){return new a.Type("fallback(".concat(JSON.stringify(t),"):").concat(e.name),e.is,(function(n,r){var i=e.validate(n,r);return s.isLeft(i)?s.right(t):i}),e.encode)};var d=function(e,t){Array.prototype.push.apply(e,t)},h=["boolean","string","Date","number","Array","Set","object","Dictionary","StringEnum","Partial"];function f(e,t){var n=function(e){var t=e.replace(/\w+\(.*?\):/,"");if("{"===t[0]&&"}"===t[t.length-1])return"object";var n=t.split(":").pop();return 0===n.indexOf("Date")?"Date":0===n.indexOf("Array<")?"Array":0===n.indexOf("Set<")?"Set":0===n.indexOf("StringEnum<")?"StringEnum":0===t.indexOf("Partial<")?"Partial":((0,m.kG)(h.indexOf(n)>-1,"unsupported prop type ".concat(e)),n)}(e);switch(n){case"boolean":return t.getBool();case"string":case"StringEnum":return t.getStr();case"Date":return null===t.getNum()?t.getStr():t.getNum();case"number":return t.getNum();case"Array":case"Set":return t.getArray();case"object":case"Partial":case"Dictionary":return t.getObject();default:return(0,m.vE)(n)}}e.properties=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=function(e){return"{ ".concat(Object.keys(e).map((function(t){return"".concat(t,": ").concat(e[t].name)})).join(", ")," }")}(e)),new a.InterfaceType(n,(function(t){if(!l.E.is(t))return!1;for(var n in e)if(!e[n].is(t[n]))return!1;return!0}),(function(n,r){if(!Array.isArray(n)||n.some((function(e){return!l.E.is(e)})))return a.failure(n,r);var u={},c=[],M=function(M){var m=""!==t?"".concat(t,":").concat(M):M,h=l.E.find.apply(l.E,(0,i.__spreadArray)([m],n,!1)),p=e[M],y=f(p.name,h),g=p.validate(y,a.appendContext(r,M,p));(0,o.pipe)(g,s.fold((function(e){return d(c,e)}),(function(e){u[M]=e})))};for(var m in e)M(m);return c.length?a.failures(c):a.success(u)}),(function(n){var r={};for(var i in e){var o=""!==t?"".concat(t,":").concat(i):i,a=e[i],s=n[i];a.is(s)&&(r[o]=e[i].encode(s))}return l.E.of(r)}),e)},e.combineProperties=function(e,t){void 0===t&&(t="(".concat(e.map((function(e){return e.name})).join(" & "),")"));var n=e.length;return new a.IntersectionType(t,(function(t){return e.every((function(e){return e.is(t)}))}),(function(t,r){for(var i={},u=[],c=0;c"))}}(r||(r={}))},13833:function(e,t,n){"use strict";n.d(t,{I:function(){return o},St:function(){return l}});var r,i,o,a=n(29388),s=n(42666),u=n(89350),c=n(50793),M=n(77806),m=n(7201);!function(e){e.eq=s.getStructEq({currency:s.eqString,value:s.eqNumber})}(r||(r={})),function(e){e.mastercard="MasterCard",e.visa="Visa",e.americanExpress="American Express",e.jcb="JCB",e.maestro="Maestro",e.discover="Discover",e.dinersClub="Diners Club",e.unionPay="UnionPay",e.mir="Mir",e.elo="Elo",e.hiper="Hiper"}(i||(i={})),function(e){e.ELIGIBLE_AUTO="ELIGIBLE_AUTO",e.ELIGIBLE="ELIGIBLE",e.NOT_ELIGIBLE="NOT_ELIGIBLE"}(o||(o={}));var l=function(e){function t(t,n,r){var i=e.call(this)||this;return i._url=t,i._ajaxFactory=n,i._fingerprints=r,i._ajax=i._ajaxFactory({requestExtender:m.d3.toHeaderAppender(i._fingerprints)}),i}return(0,a.__extends)(t,e),t.getDefaultUrl=function(e){return"https://subscription".concat(e,"/api/v1")},t.prototype.getStatus=function(){var e=c.cl.get(this._url,"/subscription");return this._ajax.json(e)},t.prototype.getIndividualStatus=function(){var e=c.cl.get(this._url,"/individual-subscription");return this._ajax.json(e)},t.prototype.getIndividualPlans=function(e){var t=c.cl.get(this._url,"/individual-plans").queryParam("billingCountryCode",e);return this._ajax.json(t)},t.prototype.cancelSubscription=function(){var e=c.cl.post(this._url,"/cancel");return this._ajax.empty(e)},t.prototype.renewSubscription=function(){var e=c.cl.post(this._url,"/renew");return this._ajax.empty(e)},t.prototype.ackPremiumConversion=function(){var e=c.cl.post(this._url,"/ack-premium-conversion");return this._ajax.empty(e)},t.prototype.generateClientToken=function(){var e=c.cl.post(this._url,"/token/generateClientToken");return this._ajax.json(e)},t.prototype.getAvailablePlans=function(){var e=c.cl.get(this._url,"/pricing");return this._ajax.json(e)},t.prototype.changePlan=function(e){var t=c.cl.post(this._url,"/set-plan").pathParam(e.toString());return this._ajax.empty(t)},t.prototype.changeCurrentPlan=function(e){var t=c.cl.post(this._url,"/hard-change-plan").pathParam(e.toString());return this._ajax.empty(t)},t.prototype.subscribe=function(e,t,n,r,i,o){var a=c.cl.post(this._url,"/subscribe").formParam("nonce",t).formParam("planId",e.toString()).formParam("sessionId",n);return Boolean(r)&&a.formParam("billingZip",r),Boolean(i)&&a.formParam("billingCountryCode",i),Boolean(o)&&a.formParam("billingRegionCode",o),this._ajax.empty(a)},t.prototype.subscribeCard=function(e,t,n,r){return this.subscribe(e,t,n,r)},t.prototype.subscribeCardSandbox=function(e){void 0===e&&(e="1");var t=c.cl.post(this._url,"/subscribe").formParam("planId",e).formParam("nonce","fake-valid-nonce").formParam("sessionId","test-session").formParam("billingZip","12345");return this._ajax.empty(t)},t.prototype.updateCreditCard=function(e,t,n,r){var i=c.cl.post(this._url,"/update-card").formParam("nonce",e);return Boolean(t)&&i.formParam("billingZip",t),Boolean(n)&&i.formParam("billingCountryCode",n),Boolean(r)&&i.formParam("billingRegionCode",r),this._ajax.empty(i)},t.prototype.generateTokenPaypal=function(e){var t=e.cancelUrl,n=e.returnUrl,r=c.cl.post(this._url,"/token/paypal").formParam("cancelUrl",t).formParam("returnUrl",n);return this._ajax.json(r)},t.prototype.downloadSingleReceipt=function(e){var t=c.cl.get(this._url,"/receipt/".concat(e));return this._ajax.file(t)},t.prototype.downloadBillingReceipts=function(){var e=c.cl.get(this._url,"/receipt");return this._ajax.file(e)},t.prototype.setCompanyInfo=function(e){var t=c.cl.post(this._url,"/set-company-info").formParam("companyInfo",e);return this._ajax.empty(t)},t.prototype.subscribeNewInstitution=function(e){return this._subscribeNewInstitutionInternal(e)},t.prototype.sendInvoice=function(e){return this._subscribeNewInstitutionInternal((0,a.__assign)((0,a.__assign)({},e),{stripeInvoice:!0}))},t.prototype.subscribeNewInstitutionForNgo=function(e){return this._subscribeNewInstitutionInternal(e)},t.prototype.subscribeNewInstitutionUsingIndividualPremium=function(e){return this._subscribeNewInstitutionInternal(e)},t.prototype.isEligibleForBusinessTrial=function(){var e=c.cl.get(this._url,"/is-eligible-for-business-trial");return this._ajax.json(e)},t.prototype.getInstitutionPlans=function(){var e=c.cl.get(this._url,"/get-institution-plans");return this._ajax.json(e)},t.prototype.getInstitutionPlansForNgo=function(){var e=c.cl.get(this._url,"/get-institution-plans-for-ngo");return this._ajax.json(e)},t.prototype.isVoucherValid=function(e){var t=c.cl.get(this._url,"/voucher",e,"valid");return this._ajax.empty(t)},t.prototype.applyVoucher=function(e){var t=c.cl.post(this._url,"/voucher",e,"apply");return this._ajax.empty(t)},t.prototype.getPaymentHistory=function(){var e=c.cl.get(this._url,"/payment-history");return this._ajax.json(e)},t.prototype.updateInstitutionSeats=function(e){var t=e.numberOfSeats,n=c.cl.post(this._url,"/set-number-of-seats").formParam("numberOfSeats",t.toString());return this._ajax.empty(n)},t.prototype.updateInstitutionPlan=function(e){var t=e.numberOfSeats,n=e.plan,r=c.cl.post(this._url,"/change-institution-subscription");return Boolean(t)&&r.formParam("numberOfSeats",t.toString()),Boolean(n)&&r.formParam("plan",n.toString()),this._ajax.empty(r)},t.prototype.getAdjustedVolumePricing=function(e){var t=c.cl.get(this._url,"/volume-adjust-pricing").pathParam(e.toString());return this._ajax.json(t)},t.prototype.getInstitutionAdjustedPricing=function(e,t){var n=c.cl.get(this._url,"/institution-subscription-adjust-pricing").queryParam("numberOfSeats",e.toString()).queryParam("plan",t.toString());return this._ajax.json(n)},t.prototype.getTrialProlongationEligibility=function(){var e=c.cl.get(this._url,"/getTrialProlongationEligibility");return this._ajax.json(e)},t.prototype.isPaymentMethodExpired=function(){var e=c.cl.get(this._url,"/isPaymentMethodExpired");return this._ajax.json(e)},t.prototype.prolongTrial=function(){var e=c.cl.post(this._url,"/prolongTrial");return this._ajax.json(e)},t.prototype.getIndividualPaymentHistory=function(){var e=c.cl.get(this._url,"/individual/payment-history");return this._ajax.json(e)},t.prototype.requestRefund=function(){var e=c.cl.post(this._url,"/individual-subscription/refund");return this._ajax.empty(e)},t.prototype.getWorkspaceTrialPlans=function(){var e=c.cl.get(this._url,"/workspace/plan");return this._ajax.json(e)},t.prototype.validateUSZipCode=function(e){var t=c.cl.post(this._url,"/zip-code/validate").json({zipCode:e});return this._ajax.json(t)},t.prototype.sendInvoiceDraft=function(e){var t=c.cl.post(this._url,"/submit-draft-invoice");return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];return t.formParam(n,r)})),this._ajax.empty(t)},t.prototype.getInvoiceDraft=function(){var e=c.cl.get(this._url,"/get-draft-invoice");return this._ajax.json(e)},t.prototype.voidDraftInvoice=function(){var e=c.cl.post(this._url,"void-unpaid-invoice");return this._ajax.empty(e)},t.prototype.getCountriesConfiguration=function(){var e=c.cl.get(this._url,"/country-config");return this._ajax.json(e)},t.prototype.getTaxInformation=function(e,t,n){var r=void 0===n?{}:n,i=r.billingPostalCode,o=r.billingRegionCode,a=r.numberOfSeats,s=c.cl.get(this._url,"/tax-info").queryParam("planId",e.toString()).queryParam("billingCountryCode",t);return Boolean(i)&&s.queryParam("billingZip",i),Boolean(o)&&s.queryParam("billingRegionCode",o),Boolean(a)&&s.queryParam("numberOfSeats",a.toString()),this._ajax.json(s)},t.prototype.getOrderStatus=function(e){var t=c.cl.get(this._url,"/order/".concat(e));return this._ajax.json(t)},t.prototype.createOrder=function(e,t,n,r){var i=c.cl.post(this._url,"/order/individual").formParam("planId",e.toString()).formParam("billingCountryCode",t);return void 0!==n&&i.formParam("billingZip",n),void 0!==r&&i.formParam("billingRegionCode",r),this._ajax.json(i)},t.prototype._subscribeNewInstitutionInternal=function(e){var t=c.cl.post(this._url,"/subscribe-new-institution").formParam("institutionName",e.institutionName).formParam("numberOfSeats",e.numberOfSeats.toString());return"sessionId"in e&&e.sessionId&&t.formParam("sessionId",e.sessionId),"billingCountryCode"in e&&Boolean(e.billingCountryCode)&&t.formParam("billingCountryCode",e.billingCountryCode),"billingRegionCode"in e&&Boolean(e.billingRegionCode)&&t.formParam("billingRegionCode",e.billingRegionCode),"billingZip"in e&&Boolean(e.billingZip)&&t.formParam("billingZip",e.billingZip),"nonce"in e&&Boolean(e.nonce)&&t.formParam("nonce",e.nonce),Boolean(e.planId)&&t.formParam("planId",e.planId.toString()),"voxEnabled"in e&&e.voxEnabled&&t.formParam("voxEnabled",e.voxEnabled.toString()),"stripeInvoice"in e&&Boolean(e.stripeInvoice)&&t.formParam("stripeInvoice",e.stripeInvoice.toString()),"brandTonesEnabled"in e&&e.brandTonesEnabled&&t.formParam("brandTonesEnabled",e.brandTonesEnabled.toString()),"workspaceId"in e&&Boolean(e.workspaceId)&&t.formParam("workspaceId",e.workspaceId),this._ajax.json(t)},t.targetTag="subscription",t}(M.K.Base);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.message=t,r.requestId=n,r.name="IncorrectTokenError",r}(0,a.__extends)(t,e),t.prototype.toString=function(){return"IncorrectTokenError\n Message: ".concat(this.message,"\n requestId: ").concat(this.requestId)}}(u.sH)},78134:function(e,t,n){"use strict";n.d(t,{O6:function(){return u},Y5:function(){return i},_g:function(){return r},k5:function(){return o}});var r,i,o,a=n(88682),s=n(80705);!function(e){e.workspace="workspace",e.institution="institution"}(r||(r={})),function(e){e.onBrand="on",e.offBrand="off"}(i||(i={})),function(e){e.allSites="ALL_SITES",e.whitelistedSites_DEPRECATED="WHITELISTED_SITES",e.allowlistedSites="ALLOWLISTED_SITES"}(o||(o={}));var u=a.intersection([a.interface({siteRestriction:s.D.createStringEnum(o,"siteRestriction")}),a.partial({allowlistedSites:s.D.fallback(a.array(a.string),[])})])},39694:function(e,t,n){"use strict";n.d(t,{C3:function(){return g},EN:function(){return p},XD:function(){return y},gw:function(){return d}});var r=n(29388),i=n(11315),o=n(86426),a=n(79646),s=n(50469),u=n(89350),c=n(50582),M=n(52453),m=n(25264),l=n(83367);!function(e){function t(t,n,r){var i=e.call(this,"AssertionError: ".concat(r))||this;return i.expected=t,i.actual=n,i.name="AssertionError",i}(0,r.__extends)(t,e),t.prototype.toString=function(){return"".concat(this.message,"\nExpected: ").concat(this.expected,"\nActual: ").concat(this.actual)}}(u.sH);function d(e){return new Promise((function(t){return setTimeout(t,e)}))}var h=function(e){function t(t){var n=e.call(this,Boolean(t)?t:"Timeout")||this;return n.name="TimeoutError",n}return(0,r.__extends)(t,e),t.isTimeoutError=function(e){return e instanceof t},t}(u.sH),f=function(e){function t(t){var n=e.call(this,Boolean(t)?t:"Dropped")||this;return n.name="DroppedError",n}return(0,r.__extends)(t,e),t.isDroppedError=function(e){return e instanceof t},t}(u.sH),p=(function(e){function t(t){var n=e.call(this,Boolean(t)?t:"Not Connected to WS")||this;return n.name="NotConnectedError",n}(0,r.__extends)(t,e),t.isNotConnectedError=function(e){return e instanceof t}}(u.sH),function(e){function t(t){var n=e.call(this,Boolean(t)?t:"Not ready")||this;return n.name="NotReady",n}return(0,r.__extends)(t,e),t.isNotReadyError=function(e){return e instanceof t},t}(u.sH));function y(e,t){void 0===t&&(t=function(){return!0});var n,r=i.fold(a.monoidRetryPolicy)(e);return function(e){return(0,s.$E)(r,(function(t){return(0,o.pipe)(t.previousDelay,c.fold((function(){return e}),(function(r){return(0,o.pipe)(E(t.iterNumber,r),M.apSecond(e),M.mapLeft((function(e){var r;return"stack"in(r=e)&&void 0!==r.stack&&(1===t.iterNumber?n=e.stack:void 0!==n&&(e.stack=n)),e})))})))}),(function(e){return m.isLeft(e)&&t(e.left)}))}}function g(e,t,n,r){return void 0===t&&(t=7),void 0===n&&(n=50),void 0===r&&(r=function(){return!0}),y([(0,a.exponentialBackoff)(n),(0,a.limitRetries)(t)],r)(e)}var E=function(e,t){return M.rightIO((function(){return l.Monitoring.Logging.root.getLogger("coreclients.utils").trace("retryWithDelay: count ".concat(e,", timeout: ").concat(t))}))};(function(){function e(e,t,n){void 0===e&&(e=5e3),void 0===t&&(t=""),void 0===n&&(n=new h),this._timeout=e,this._timeoutError=n,this._notifications=new Map,this._log=l.Monitoring.Logging.getLogger("coreclients.valueNotifier"+(t.length>0?"."+t:""))}e.prototype.waitFor=function(e,t){var n=this;return function(){return n._startNotificationWatch(e,t)}},e.prototype.notify=function(e){this._stopNotification(e,m.right(void 0))},e.prototype.error=function(e,t){this._log.trace("onError:(".concat(e,")")),this._stopNotification(e,m.left(t))},e.prototype.clear=function(e){var t=this;this._log.trace("clearing notification watches: "+e),this._notifications.forEach((function(n,r){t.error(r,new f("clearing value notifier and dropping all pending notification watches:"+e))}))},e.prototype._startNotificationWatch=function(e,t){var n=this;this._log.debug("Starting notification watch: ".concat(e)),(0,u.kG)(!this._notifications.has(e),"must not start watch for same notification twice, notification already watched: "+e);var r={};return r.promise=new Promise((function(e){r.notifyValue=function(){return e(m.right(t))},r.notifyError=function(t){return e(m.left(t))}})),r.timer=window.setTimeout((function(){return n._stopNotification(e,m.left(n._timeoutError))}),this._timeout),this._notifications.set(e,r),r.promise},e.prototype._stopNotification=function(e,t){this._log.trace("_stopNotification: stopping notification watch: ".concat(e),t);var n=this._notifications.get(e);void 0===n?this._log.error("Got result for unknown notification or notification has already expired.",{id:e,result:t}):(clearTimeout(n.timer),(0,o.pipe)(t,m.fold((function(e){return n.notifyError(e)}),(function(){return n.notifyValue()}))),this._notifications.delete(e))}})(),function(){function e(e,t,n){void 0===e&&(e=5e3),void 0===t&&(t=""),void 0===n&&(n=new h),this._timeout=e,this.name=t,this._timeoutError=n,this._requests=new Map,this._log=l.Monitoring.Logging.getLogger("coreclients.valueRequester"+(t.length>0?"."+t:""))}e.prototype.watchRequest=function(e){return this._startRequestWatch(e)},e.prototype.onValue=function(e,t){this._stopRequest(e,m.right(t))},e.prototype.onError=function(e,t){this._log.trace("onError:(".concat(e,")")),this._stopRequest(e,m.left(t))},e.prototype.clear=function(e){var t=this;this._log.trace("clearing request watches: "+e),this._requests.forEach((function(n,r){t.onError(r,new f("command (".concat(t.name,") can not be executed, reason: ").concat(e)))}))},e.prototype._startRequestWatch=function(e){var t=this;this._log.debug("Starting request watch: ".concat(e)),(0,u.kG)(!this._requests.has(e),"must not start watch for same request twice, request already watched: "+e);var n={};return n.promise=new Promise((function(e){n.resolve=e})),n.timer=window.setTimeout((function(){return t._stopRequest(e,m.left(t._timeoutError))}),this._timeout),this._requests.set(e,n),n.promise},e.prototype._stopRequest=function(e,t){this._log.trace("_stopRequest: stopping request watch: ".concat(e),t);var n=this._requests.get(e);void 0===n?this._log.warn("Got result for unknown request or request has already expired.",{id:e,result:t}):(clearTimeout(n.timer),n.resolve(t),this._requests.delete(e))}}()},58520:function(e,t,n){"use strict";function r(e){return i(e,e.length-1,[])}function i(e,t,n){return function(r){var o=n.concat([r]);return 0===t?e.apply(this,o):i(e,t-1,o)}}n.d(t,{W:function(){return r}})},27568:function(e,t,n){"use strict";n.r(t),n.d(t,{DAYS_IN_WEEK:function(){return M},HOUR_IN_DAY:function(){return c},Local:function(){return g},MIN_IN_HOUR:function(){return u},MS_IN_DAY:function(){return d},MS_IN_HOUR:function(){return l},MS_IN_MIN:function(){return m},MS_IN_SEC:function(){return a},MS_IN_WEEK:function(){return h},SEC_IN_MIN:function(){return s},UTC:function(){return E},convertTimeToShortString:function(){return v},formatTime:function(){return y},secondsToTime:function(){return f}});var r=n(89350),i=n(95452),o=n(25264),a=1e3,s=60,u=60,c=24,M=7,m=s*a,l=u*m,d=c*l,h=M*d;function f(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60);return{h:t,m:n,s:e-3600*t-60*n}}function p(e){return(0,i.padStart)(String(e),2,"0")}function y(e,t){var n=void 0===t?{}:t,r=n.short,o=void 0!==r&&r,a=n.withSec,s=void 0!==a&&a,u=f(e),c=u.h,M=u.m,m=u.s,l=[];return c>0&&l.push("".concat(p(c)," ").concat(o?"h":(0,i.pluralize)(c,"hour","hours"))),(M>0||!s)&&l.push("".concat(p(M)," ").concat(o?"min":(0,i.pluralize)(M,"minute","minutes"))),s&&l.push("".concat(p(m)," ").concat(o?"sec":(0,i.pluralize)(m,"second","seconds"))),l.join(" ")}var g,E,v=function(e){return e.h?"".concat(e.h," hr ").concat(e.m," min"):e.m>0?"".concat(e.m," min ").concat(e.s," sec"):"".concat(e.s," sec")};!function(e){var t=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.?\d*[Z]$/,n=/^(\d{4}-\d{2}-\d{2}).(\d{2}:\d{2}:\d{2}(?:.\d+)?)$/;function i(e){return e.getTime()}e.create=function(e){return(0,r.kG)(t.test(e),"provided string should have timezone",e),new Date(e)},e.copy=function(e){return new Date(e)},e.now=function(){return new Date},e.add=function(e,t){return new Date(e.getTime()+t.getTime())},e.subtract=function(e,t){return new Date(e.getTime()-t.getTime())},e.toSeconds=function(e){return Math.round(e.getTime()/1e3)},e.toTimestamp=i,e.shortTime=function(e){var t=e.getHours(),n=t>=12?"pm":"am",r="0".concat(t=t%12||12).slice(-2),i=e.getMinutes(),o="0".concat(i).slice(-2);return"".concat(r,":").concat(o," ").concat(n)},e.fullDate=function(e){var t=e.toLocaleString("en-us",{month:"long"});return"".concat(t," ").concat(e.getDate(),", ").concat(e.getFullYear())},function(t){t.now=function(){return i(e.now())},t.add=function(e,t){return e+t},t.subtract=function(e,t){return e-t},t.toSeconds=function(e){return Math.round(e/1e3)},t.toLocal=function(e){return new Date(e)},t.toISODate=function(t){return e.Timestamp.toLocal(t).toISOString()}}(e.Timestamp||(e.Timestamp={})),e.daysAgo=function(t,n){var r=n*d;return e.Timestamp.subtract(e.toTimestamp(t),r)},e.monthsAgo=function(t,n){var r=e.copy(t);return r.setMonth(t.getMonth()-n),e.toTimestamp(r)},e.parseDate=function(r){var i=""+r,a=i.match(n);if(a){var s=a[1],u=a[2];i="".concat(s,"T").concat(u,"Z")}if(a||i.match(t))return o.fromNullable(new Error("Failed to parse date from: ".concat(r)))(e.create(i));var c=new Date(i);return isNaN(c.getTime())?o.left(new Error("Failed to parse date from: ".concat(r))):o.fromNullable(new Error("Failed to parse date from: ".concat(r)))(c)},e.Eq={equals:function(e,t){return e.getTime()===t.getTime()}}}(g||(g={})),function(e){function t(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()))}!function(t){t.now=function(){return e.toTimestamp(e.now())}}(e.Timestamp||(e.Timestamp={})),e.toTimestamp=function(e){return e.getTime()},e.now=function(){return t(g.now())},e.fromLocal=t}(E||(E={}))},89350:function(e,t,n){"use strict";n.d(t,{$w:function(){return d},CE:function(){return M},J_:function(){return h},L0:function(){return l},ej:function(){return a},j_:function(){return f},kG:function(){return c},mG:function(){return s},sH:function(){return o},u0:function(){return u},vE:function(){return m}});var r=n(29388),i=n(75980),o=function(e){void 0===e&&(e="(nomessage)"),Error.call(this,e),"captureStackTrace"in Error?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name=this.constructor.name};o.prototype=Object.create(Error.prototype);var a=function(e){function t(t,n){void 0===n&&(n="empty");var r=e.call(this,"Invariant condition failed: "+(Boolean(t)?t:"(unnamed)"))||this;return r.input=n,r}return(0,r.__extends)(t,e),t.prototype.toString=function(){return"".concat(this.message," on input[").concat(this.input,"]")},t}(o),s=function(e){function t(t){return e.call(this,t)||this}return(0,r.__extends)(t,e),t}(o),u=function(e){function t(t){return e.call(this,"Matching not exhaustive".concat(Boolean(t)?": unexpected value ".concat(JSON.stringify(t)):""))||this}return(0,r.__extends)(t,e),t}(o);function c(e,t,n){if(!e){var r=new a("string"===typeof t?t:t&&t(),void 0!==n&&"string"!==typeof n?n():n);throw r.stack=r.stack.split("\n").filter((function(e){return-1===e.indexOf("errors.")})).join("\n"),r}}function M(e,t){if(null==e)throw new a("string"===typeof t?t:t&&t());return e}function m(e){throw new u(e)}function l(e){return e}function d(e){if(!(0,i.isObject)(e))return!1;var t=e.name,n=e.message;return"FetchError"===t&&"Client fetch error: Failed to fetch"===n||"TypeError"===t&&"NetworkError when attempting to fetch resource."===n||"TypeError"===t&&"Failed to fetch"===n}function h(e){return"undefined"!==typeof e&&(e>=500&&e<=599)}function f(e){return"object"===typeof e&&null!==e&&"message"in e}},52278:function(e,t,n){"use strict";n.d(t,{$K:function(){return g},As:function(){return H},CI:function(){return T},D6:function(){return s},Dw:function(){return v},Er:function(){return D},HP:function(){return N},Ib:function(){return A},Jx:function(){return C},Kg:function(){return y},Ky:function(){return u},Nk:function(){return S},PU:function(){return R},Q1:function(){return m},RN:function(){return P},Sm:function(){return h},TN:function(){return E},V3:function(){return b},Vo:function(){return c},W9:function(){return p},ZT:function(){return M},_v:function(){return B},ff:function(){return f},gw:function(){return w},iR:function(){return _},or:function(){return l},qu:function(){return k},vV:function(){return a},wD:function(){return o},xD:function(){return d}});var r=n(19936),i=n(63042);function o(e){return!/[!$%^&*()_+|~={}\[\]:";<>?,.\/]/g.test(e)&&e.trim().length>0}function a(e){return/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/.test(e)}function s(e){return a(e)}function u(e){setTimeout(e,0)}function c(e){var t,n=!1;return{get value(){return n||(t=e(),n=!0),t}}}var M=r.constVoid,m=r.constVoid;function l(e,t){return e||t}function d(e,t){return e&&t}function h(e,t){return e+t}function f(e){return function(t){return!e(t)}}function p(){for(var e=[],t=0;t0}var b,w=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function S(e){var t;return function(){for(var n=[],r=0;rt?b.gt:e===t?b.eq:b.lt},P=function(e,t){return function(n){return n?e:t}};function N(e,t){var n,r=new i.z6(50);return(n={},n[e.name]=function(){for(var n=[],i=0;i-1}function R(e){return function(t){return function(n){return e(n)(t)}}}var B=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function D(e){return null===e?(console.warn("WARN: ded.getText returned null"),""):e}},40805:function(e,t,n){"use strict";n.r(t),n.d(t,{A:function(){return s},ArrayUtils:function(){return r},Buffer:function(){return g},Comparable:function(){return y.V3},Cookie:function(){return i},CustomError:function(){return p.sH},DOM:function(){return o},DateUtils:function(){return re},E:function(){return he},Either:function(){return f},Eq:function(){return u},Fullstory:function(){return qe},G:function(){return c},IOOption:function(){return tn},IllegalArgumentError:function(){return p.mG},InvariantError:function(){return p.ej},Keys:function(){return E},M:function(){return M},MatchingNotExhaustiveError:function(){return p.u0},MouseEventUtils:function(){return v},NEA:function(){return m},NotEmpty:function(){return $e},O:function(){return Pt},ObjectUtils:function(){return et},Ord:function(){return l},PromiseT:function(){return Qt},R:function(){return d},RD:function(){return h},ReactContextUtils:function(){return gn},RecoverableOperation:function(){return yn},StringUtils:function(){return tt},SymmetricDiff:function(){return st},TE:function(){return hn},TH:function(){return a},TangentialPoint:function(){return it},URLWithParams:function(){return pt},Version:function(){return nt},Worker:function(){return b},Zipper:function(){return dt},and:function(){return y.xD},andP:function(){return y.W9},assertNever:function(){return p.vE},assertNeverSilent:function(){return p.L0},choose:function(){return y.RN},compare:function(){return y.qu},constVoid:function(){return y.Q1},createValidUrl:function(){return _n},curry:function(){return A.W},curryFlip:function(){return y.PU},decode:function(){return y.Jx},delay:function(){return y.gw},emailValidation:function(){return y.D6},expectNonNull:function(){return p.CE},getWebSocket:function(){return y.Ib},invariant:function(){return p.kG},isClientFetchError:function(){return p.$w},isDefined:function(){return y.$K},isErrorHasMessage:function(){return p.j_},isServerErrorCode:function(){return p.J_},isSetsEq:function(){return y.As},isValidEmail:function(){return y.vV},lazy:function(){return y.Vo},memoize:function(){return y.HP},nameValidation:function(){return y.wD},noop:function(){return y.ZT},not:function(){return y.ff},notEmpty:function(){return y.Dw},or:function(){return y.or},orP:function(){return y.Kg},rand:function(){return y.TN},registerDebugHelper:function(){return y.iR},safeDedGetText:function(){return y.Er},sleep:function(){return y._v},sum:function(){return y.Sm},throttleByPromise:function(){return y.Nk},tick:function(){return y.Ky},valueFromEnum:function(){return y.CI}});var r={};n.r(r),n.d(r,{arraySubstract:function(){return z},compareInPairs:function(){return G},equals:function(){return Q},existsOnEdgesOnly:function(){return V},findByPredicateList:function(){return K},findFrom:function(){return j},findIndexFrom:function(){return D},findIndexFromMap:function(){return F},findLastIndexFrom:function(){return I},findNotLower:function(){return R},flatMap:function(){return W},generateSequence:function(){return Z},lookAround:function(){return O},lookAroundMap:function(){return L},lowerBound:function(){return T},mapNTimes:function(){return U},omit:function(){return X},omitMutable:function(){return J},partition:function(){return H},pickRandom:function(){return k},pickRandomElement:function(){return P},shuffle:function(){return N},sort:function(){return B}});var i={};n.r(i),n.d(i,{getCookie:function(){return q},setCookie:function(){return ee},setInstallSourceCookie:function(){return te}});var o={};n.r(o),n.d(o,{Box:function(){return be},CSS:function(){return ze},Guardians:function(){return ve},Rect:function(){return we},Scrollbar:function(){return Ge},absToRelative:function(){return Te},absToRelativeBuggy:function(){return Ne},appendTo:function(){return Ke},classes:function(){return je},cloneWithoutChildren:function(){return Je},createNested:function(){return _e},createUniqueId:function(){return Ve},findAll:function(){return He},getFirstChild:function(){return Ce},getFirstSelectionRange:function(){return Ye},getLastChild:function(){return Se},getOffset:function(){return Be},getParentAt:function(){return Ae},getTreeBetween:function(){return Ze},hasParentWithAttribute:function(){return ge},hasParentWithClassName:function(){return ye},isDisabled:function(){return De},isFocusable:function(){return Oe},isHTMLElement:function(){return Le},isHidden:function(){return Fe},isNativelyFocusable:function(){return xe},isParent:function(){return Ee},isTabbable:function(){return Ie},moveChildrenTo:function(){return ke},preventDefault:function(){return pe},relativeToAbs:function(){return Re},renderDot:function(){return Xe},renderLine:function(){return We},renderRect:function(){return Ue},svgVerticalAlignment:function(){return Qe},traverseMutate:function(){return Pe}});var a={};n.r(a),n.d(a,{Bifunctor:function(){return mt.Bifunctor},Foldable:function(){return mt.Foldable},Functor:function(){return mt.Functor},Traversable:function(){return mt.Traversable},URI:function(){return mt.URI},__esModule:function(){return mt.__esModule},bimap:function(){return mt.bimap},both:function(){return mt.both},fold:function(){return mt.fold},foldMap:function(){return mt.foldMap},fromOptions:function(){return mt.fromOptions},getApplicative:function(){return mt.getApplicative},getEq:function(){return mt.getEq},getLeft:function(){return mt.getLeft},getLeftOnly:function(){return mt.getLeftOnly},getMonad:function(){return mt.getMonad},getRight:function(){return mt.getRight},getRightOnly:function(){return mt.getRightOnly},getSemigroup:function(){return mt.getSemigroup},getShow:function(){return mt.getShow},isBoth:function(){return mt.isBoth},isLeft:function(){return mt.isLeft},isRight:function(){return mt.isRight},left:function(){return mt.left},leftOrBoth:function(){return mt.leftOrBoth},map:function(){return mt.map},mapLeft:function(){return mt.mapLeft},reduce:function(){return mt.reduce},reduceRight:function(){return mt.reduceRight},right:function(){return mt.right},rightOrBoth:function(){return mt.rightOrBoth},sequence:function(){return mt.sequence},swap:function(){return lt},these:function(){return mt.these},toTuple:function(){return mt.toTuple},traverse:function(){return mt.traverse}});var s={};n.r(s),n.d(s,{UniqueArray:function(){return gt},compact:function(){return ie.compact},comprehension:function(){return bt},filterMap:function(){return ie.filterMap},findLastIndex:function(){return ie.findLastIndex},last:function(){return ie.last},map:function(){return ie.map},seededShuffle:function(){return Et},separate:function(){return ie.separate},traversePairs:function(){return vt}});var u={};n.r(u),n.d(u,{Contravariant:function(){return oe.Contravariant},URI:function(){return oe.URI},__esModule:function(){return oe.__esModule},contramap:function(){return oe.contramap},eq:function(){return oe.eq},eqBoolean:function(){return oe.eqBoolean},eqDate:function(){return oe.eqDate},eqEmpty:function(){return St},eqNumber:function(){return oe.eqNumber},eqStrict:function(){return oe.eqStrict},eqString:function(){return oe.eqString},eqToInvariant:function(){return wt},fromEquals:function(){return oe.fromEquals},getMonoid:function(){return oe.getMonoid},getStructEq:function(){return oe.getStructEq},getTupleEq:function(){return oe.getTupleEq},strictEqual:function(){return oe.strictEqual}});var c={};n.r(c),n.d(c,{__esModule:function(){return At.__esModule},getNewtypeGroup:function(){return kt},getStructGroup:function(){return Ht},groupSum:function(){return _t}});var M={};n.r(M),n.d(M,{Merger:function(){return Dt},URI:function(){return Nt},diffKeys:function(){return Ot},getEqByValue:function(){return Rt},getFoldableWithIndex:function(){return Tt},leftToRight:function(){return Ft},rightToLeft:function(){return It},symmetricDiff:function(){return Bt}});var m={};n.r(m),n.d(m,{copy:function(){return ht.copy},fromArray:function(){return ht.fromArray},fromNullableArray:function(){return jt},map:function(){return ht.map},mapWithIndex:function(){return ht.mapWithIndex},of:function(){return ht.of},unzip:function(){return Lt}});var l={};n.r(l),n.d(l,{Contravariant:function(){return S.Contravariant},URI:function(){return S.URI},__esModule:function(){return S.__esModule},between:function(){return S.between},betweenExclusive:function(){return zt},clamp:function(){return S.clamp},contramap:function(){return S.contramap},fromCompare:function(){return S.fromCompare},geq:function(){return S.geq},getDualOrd:function(){return S.getDualOrd},getMonoid:function(){return S.getMonoid},getSemigroup:function(){return S.getSemigroup},getTupleOrd:function(){return S.getTupleOrd},gt:function(){return S.gt},leq:function(){return S.leq},lt:function(){return S.lt},max:function(){return S.max},min:function(){return S.min},ord:function(){return S.ord},ordBoolean:function(){return S.ordBoolean},ordDate:function(){return S.ordDate},ordNumber:function(){return S.ordNumber},ordString:function(){return S.ordString}});var d={};n.r(d),n.d(d,{asks:function(){return Wt.asks},composeS:function(){return Xt},createFrom:function(){return Ut},local:function(){return Wt.local},map:function(){return Wt.map}});var h={};n.r(h),n.d(h,{Type:function(){return Jt.Dy},URI:function(){return Kt},ap:function(){return cn},apFirst:function(){return Mn},apSecond:function(){return mn},bimap:function(){return ln},chain:function(){return sn},chainFirst:function(){return un},error:function(){return Vt},fatal:function(){return $t},flatten:function(){return dn},fold:function(){return en},getEq:function(){return qt},inProgress:function(){return Yt},isError:function(){return Jt.VZ},isFatal:function(){return Jt.IR},isInProgress:function(){return Jt.n2},isSuccess:function(){return Jt.d6},map:function(){return on},mapLeft:function(){return an},remoteData:function(){return nn},success:function(){return Zt}});var f,p=n(89350),y=n(52278);!function(e){function t(e){return"left"===e.kind}e.left=function(e){return{kind:"left",value:e}},e.right=function(e){return{kind:"right",value:e}},e.isLeft=t,e.isRight=function(e){return"right"===e.kind},e.flatMap=function(e,n){return t(e)?e:n(e.value)},e.fromPromise=function(t){return t.then((function(t){return e.right(t)})).catch((function(t){return e.left(t)}))}}(f||(f={}));var g,E,v,b=function(){function e(e,t,n,r){void 0===r&&(r=20),this._task=e,this._buffer=t,this._run=n,this._batchSize=r,this._sub=null}return e.prototype.put=function(e){this._buffer.put(e),null===this._sub&&this._buffer.nonEmpty&&this._scheduleWork()},e.prototype.order=function(e){this._buffer.order(e)},e.prototype.flush=function(){this._task(this._buffer.take(this._buffer.length))},Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.length},enumerable:!1,configurable:!0}),e.prototype._scheduleWork=function(){var e=this;this._sub=this._run((function(){e._task(e._buffer.take(e._batchSize)),e._sub=null,e._buffer.nonEmpty&&e._scheduleWork()}))},e.prototype.shutdown=function(){this._sub&&(this._sub.unsubscribe(),this._sub=null)},e}();!function(e){var t=function(){function e(e){this._predicate=e,this._queueMap=new Set,this._queue=[]}return e.prototype.put=function(e){var t,n=this,r=new Set,i=e.reduce((function(e,t){return r.has(t.id)||n._queueMap.has(t.id)||!n._predicate(t)||(r.add(t.id),e.push(t)),e}),[]);(t=this._queue).push.apply(t,i),i.forEach((function(e){var t=e.id;return n._queueMap.add(t)}))},e.prototype.take=function(e){for(var t=0,n=[];t0},enumerable:!1,configurable:!0}),e}();e.LazyPredicateUniq=t}(g||(g={})),function(e){e.ESC_CODE=27,e.ENTER_CODE=13,e.SPACE_CODE=32}(E||(E={})),function(e){e.isLeftMouseButtom=function(e){return 1===e.which||0===e.button}}(v||(v={}));var w=n(29388),S=n(71258),C=n(86426),A=n(58520),_=n(50582);function H(e,t){return e.reduce((function(e,n){return t(n)?e[0].push(n):e[1].push(n),e}),[[],[]])}function k(e,t,n){if(n>=e.length||t>=e.length)return e;for(var r=new Set,i=Math.floor(t+n>t?Math.random()*(n-t)+1:0);r.size0;){var i=Math.floor(Math.random()*r);r--,t=[n[i],n[r]],n[r]=t[0],n[i]=t[1]}return n}function T(e,t){for(var n=-1,r=e.length;n+1!==r;){var i=n+(r-n>>1);t(e[i])?n=i:r=i}var o=n+1;return o===e.length?_.none:_.some(o)}function R(e,t,n){return T(e,(0,A.W)((0,S.gt)(n))(t))}function B(e){for(var t=[],n=1;n=0)for(var r=t;r=0)for(var r=t;r=0;--r)if(n(e[r]))return _.some({index:r,value:e[r]});return _.none}function x(e,t,n,r){return(0,C.pipe)(D(e,t,r),_.alt((function(){return I(e,n,r)})))}function O(e,t,n){return x(e,t+1,t-1,n)}function L(e,t,n){return(0,C.pipe)(x(e,t+1,t-1,(function(e){return _.isSome(n(e))})),_.chain((function(e){return(0,C.pipe)(n(e.value),_.map((function(t){return(0,w.__assign)((0,w.__assign)({},e),{value:t})})))})))}function j(e,t,n){return x(e,t,t-1,n)}function z(e,t){for(var n,r=function(r){var i=t.findIndex((function(t){return e[r].equals(t)}));-1!==i&&(e.splice(r--,1),t.splice(i,1)),n=r},i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return(Me[e[t+0]]+Me[e[t+1]]+Me[e[t+2]]+Me[e[t+3]]+"-"+Me[e[t+4]]+Me[e[t+5]]+"-"+Me[e[t+6]]+Me[e[t+7]]+"-"+Me[e[t+8]]+Me[e[t+9]]+"-"+Me[e[t+10]]+Me[e[t+11]]+Me[e[t+12]]+Me[e[t+13]]+Me[e[t+14]]+Me[e[t+15]]).toLowerCase()}var de=function(e,t,n){if(se.randomUUID&&!t&&!e)return se.randomUUID();var r=(e=e||{}).random||(e.rng||ce)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return le(r)},he=n(77160),fe=n(25264);function pe(e){return e.preventDefault(),e}function ye(e,t){if(null==(null===e||void 0===e?void 0:e.parentElement))return!1;var n=e.className;return"string"===typeof n&&n.indexOf(t)>-1||ye(e.parentElement,t)}function ge(e,t,n){if(null==(null===e||void 0===e?void 0:e.parentElement))return!1;var r=e.attributes.getNamedItem(t);return!(!r||r.value!==n)||ge(e.parentElement,t,n)}function Ee(e,t){if(null==t)return!1;for(;t.parentNode;){if(e===t.parentNode)return!0;t=t.parentNode}return!1}var ve,be,we,Se=function e(t){return t.lastChild?e(t.lastChild):t},Ce=function e(t){return t.firstChild?e(t.firstChild):t},Ae=function e(t,n){return(0,C.pipe)(he.tryCatchError((function(){return(0,p.kG)(n>=0,"Cannot go up"),(0,p.kG)(0===n||null!==t.parentElement,"There is not parent to go up"),t})),fe.chain((function(t){return 0===n?fe.right(t):1===n?fe.right(t.parentElement):e(t.parentElement,n-1)})))},_e=function e(t,n){return(0,C.pipe)(he.tryCatchError((function(){return(0,p.kG)(n>0,"Level should be gt than 0"),document.createElement(t)})),fe.chain((function(r){return 1===n?fe.right(r):(0,C.pipe)(e(t,n-1),fe.map((function(e){return r.appendChild(e),r})))})))},He=function e(t){return function(n){return t(n)?[n]:n.nodeType===Node.ELEMENT_NODE||n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?ie.flatten(Array.from(n.childNodes).map(e(t))):[]}},ke=function(e,t){return e.append.apply(e,Array.from(t.childNodes)),e},Pe=function e(t,n,r,i){return void 0===i&&(i=100),(0,C.pipe)(he.tryCatchError((function(){return(0,p.kG)(i>0,"Max allowed travers level exceeded"),ve.isDocumentFragment(t)?t:r(t)})),fe.chain((function(t){return ve.isHTMLElement(t)&&n(t)||ve.isDocumentFragment(t)?(0,C.pipe)(Array.from(t.childNodes).map((function(t){return(0,C.pipe)(e(t,n,r,i-1),fe.map((function(e){return[t,e]})))})),ie.array.sequence(fe.either),fe.chain((function(e){return he.tryCatchError((function(){e.forEach((function(e){var n=e[0],r=e[1];(0,p.kG)(n.parentNode===t,"Orignal node moved, the proper position cannot be determined"),n!==r&&(t.insertBefore(r,n),t.removeChild(n))}))}))})),fe.map((function(){return t}))):fe.right(t)})))};function Ne(e,t){return{top:e.top-t.top,bottom:e.bottom-t.bottom,left:e.left-t.left,right:e.right-t.right,width:e.width,height:e.height}}function Te(e,t){return{top:e.top-t.top,bottom:e.bottom-t.top,left:e.left-t.left,right:e.right-t.left,width:e.width,height:e.height}}function Re(e,t){return{top:e.top+t.top,bottom:e.bottom+t.top,left:e.left+t.left,right:e.right+t.left,width:e.width,height:e.height}}function Be(e){if(null==e)throw new Error("elem should not be null or undefined");var t=e.getBoundingClientRect();if(t.width||t.height){var n=e.ownerDocument,r=window,i=n.documentElement;return{top:t.top+r.pageYOffset-i.clientTop,left:t.left+r.pageXOffset-i.clientLeft,width:t.width,height:t.height}}return t}function De(e){return void 0!==e.dataset&&"true"===e.dataset.disabled}function Fe(e){var t=window.getComputedStyle(e),n=e.getAttribute("aria-hidden");return"none"===t.display||"hidden"===t.visibility||"true"===n}function Ie(e){var t=e.getAttribute("tabIndex"),n=e.getAttribute("inert");return null!=t&&+t>-1&&null==n}function xe(e){return["INPUT","IFRAME","SELECT","BUTTON"].includes(e.tagName)||e.hasAttribute("href")||"true"===e.contentEditable}function Oe(e){return(0,y.W9)((0,ae.not)((0,y.Kg)(De,Fe)),(0,y.Kg)(xe,Ie))(e)}function Le(e){return e instanceof HTMLElement}function je(){for(var e=[],t=0;tn.bottom?fe.left(new Error("incorrect vertical dimensions, expected top ".concat(n.top," to be less than bottom ").concat(n.bottom))):n.left>n.right?fe.left(new Error("incorrect horizontal dimensions, expected left ".concat(n.left," to be less than right ").concat(n.right))):n.width<0?fe.left(new Error("width cannot be negative")):n.height<0?fe.left(new Error("height cannot be negative")):fe.right(n)},e.empty={top:0,right:0,bottom:0,left:0,height:0,width:0},e.fromEl=function(e){return e.getBoundingClientRect()};var t,n;e.hasIntersection=function(e,t){return function(e,t){return Math.ceil(e.bottom)>=Math.floor(t.top)&&Math.ceil(e.top)<=Math.floor(t.bottom)||Math.ceil(t.bottom)>=Math.floor(e.top)&&Math.ceil(t.top)<=Math.floor(e.bottom)}(e,t)&&function(e,t){return Math.ceil(e.right)>=Math.floor(t.left)&&Math.ceil(e.left)<=Math.floor(t.right)||Math.ceil(t.right)>=Math.floor(e.left)&&Math.ceil(t.left)<=Math.floor(e.right)}(e,t)},e.intersection=function(t,n){return e.hasIntersection(t,n)?(0,C.pipe)(_.some({top:Math.floor(Math.max(t.top,n.top)),bottom:Math.ceil(Math.min(t.bottom,n.bottom)),left:Math.floor(Math.max(t.left,n.left)),right:Math.ceil(Math.min(t.right,n.right))}),_.chain((function(t){return _.fromEither(e.validate((0,w.__assign)((0,w.__assign)({},t),{width:t.right-t.left,height:t.bottom-t.top})))}))):_.none},e.growByBox=function(t,n){var r=t.height,i=t.width;return e.validate({top:n.top-r/2,right:n.right+i/2,bottom:n.bottom+r/2,left:n.left-i/2,height:n.height+r,width:n.width+i})},e.shrinkTop=function(t,n){return e.validate((0,w.__assign)((0,w.__assign)({},n),{top:n.top+t,height:n.height-t}))},e.shrinkBottom=function(t,n){return e.validate((0,w.__assign)((0,w.__assign)({},n),{bottom:n.bottom-t,height:n.height-t}))},e.scale=function(t,n){var r=n.height*t,i=n.width*t;return e.growByBox({width:i,height:r},n)},e.normalize=function(t){return e.validate({top:Math.ceil(t.top),bottom:Math.ceil(t.bottom),left:Math.ceil(t.left),right:Math.ceil(t.right),height:Math.ceil(t.height),width:Math.ceil(t.width)})},e.join=function(){for(var t=[],n=0;n=Math.trunc(r)&&Math.trunc(e.left)<=Math.trunc(n)&&Math.trunc(e.right)>=Math.trunc(n)},e.getMedian=function(t,n){return(0,C.pipe)(e.intersection(t,n),_.map((function(e){var r=Math.trunc(e.width/2),i=Math.trunc(e.height/2),o={x:Math.trunc(e.left+r),y:Math.trunc(e.top+i)};return{side:0===r?t.left0?"".concat(e.toString(),"+").concat(e.build.join("-")):e.toString()})),fe.getOrElse((function(){return"unknown"})))},t.prototype._test=function(t,n){var r=(0,C.pipe)(e.parse(n.toString()).value,fe.getOrElse((function(){return null})));return(0,p.kG)(null!==r,"invalid version provided: ".concat(n)),(0,C.pipe)(this.value,fe.map((function(e){return t(e,r)})),fe.getOrElse((function(){return!1})))},t}()}(nt||(nt={}));var it,ot=n(88927),at=n(98747);!function(e){var t,n,r;function i(e,n){var r=n.position,i=n.point,o={width:Math.trunc(e.width),height:Math.trunc(e.height)};return we.validate(t.match((function(){return(0,w.__assign)({top:i.y,right:i.x,bottom:i.y+o.height,left:i.x-o.width},o)}),(function(){return(0,w.__assign)({top:i.y-o.height,right:i.x,bottom:i.y,left:i.x-o.width},o)}),(function(){return(0,w.__assign)({top:i.y-o.height,right:i.x+o.width,bottom:i.y,left:i.x},o)}),(function(){return(0,w.__assign)({top:i.y,right:i.x+o.width,bottom:i.y+o.height,left:i.x},o)}))(r))}function o(t){return e.topLeft(we.Point.normalize({x:t.left,y:t.top}))}!function(e){e.topLeft="topLeft",e.topRight="topRight",e.bottomRight="bottomRight",e.bottomLeft="bottomLeft"}(t=e.Position||(e.Position={})),function(e){e.match=function(t,n,r,i){return function(o){switch(o){case e.topRight:return t();case e.bottomRight:return n();case e.bottomLeft:return r();case e.topLeft:return i();default:return(0,p.vE)(o)}}}}(t=e.Position||(e.Position={})),e.topLeft=function(e){return{position:t.topLeft,point:we.Point.normalize(e)}},e.topRight=function(e){return{position:t.topRight,point:we.Point.normalize(e)}},e.bottomRight=function(e){return{position:t.bottomRight,point:we.Point.normalize(e)}},e.bottomLeft=function(e){return{position:t.bottomLeft,point:we.Point.normalize(e)}},e.relativeTo=function(e,t){return{position:e.position,point:we.Point.relativeTo(e.point,t)}},e.empty=e.topLeft(we.Point.empty),e.toRect=i,e.fromRect=o,e.inRect=function(e,t){var n=t.point;return we.hasPoint(e,n)},e.toCss=function(e){var n=e.position,r=e.point;return t.match((function(){return{top:r.y,right:r.x}}),(function(){return{right:r.x,bottom:r.y}}),(function(){return{bottom:r.y,left:r.x}}),(function(){return{top:r.y,left:r.x}}))(n)},function(t){t.create=function(e,t){return(0,p.kG)(e.point.x===t.point.x||e.point.y===t.point.y,"can not form Zone without a common dimension",(function(){return JSON.stringify({a:e,b:t})})),[e,t]},t.bySide=function(n,r){return we.Side.match((function(){return t.create(e.bottomLeft({x:Math.ceil(r.left),y:Math.ceil(r.top)}),e.bottomRight({x:Math.floor(r.right),y:Math.ceil(r.top)}))}),(function(){return t.create(e.topLeft({x:Math.floor(r.right),y:Math.ceil(r.top)}),e.bottomLeft({x:Math.floor(r.right),y:Math.floor(r.bottom)}))}),(function(){return t.create(e.topLeft({x:Math.ceil(r.left),y:Math.floor(r.bottom)}),e.topRight({x:Math.floor(r.right),y:Math.floor(r.bottom)}))}),(function(){return t.create(e.topRight({x:Math.ceil(r.left),y:Math.ceil(r.top)}),e.bottomRight({x:Math.ceil(r.left),y:Math.floor(r.bottom)}))}))(n)}}(n=e.Zone||(e.Zone={})),function(e){e.byAxis=function(e,t){return ot.fromFoldable((0,at.getFirstSemigroup)(),ie.array)(we.Axis.toSides(e).map((function(e){return[e,n.bySide(e,t)]})))}}(e.Variants||(e.Variants={})),function(t){function n(e,t){return(0,C.pipe)(we.intersection(e,t),_.map((function(e){var n=e.width/t.width,r=e.height/t.height,i=(Number.isNaN(n)?0:n/2)+(Number.isNaN(r)?0:r/2);return(0,p.kG)(i>=0,"quality can not be negavite: ".concat(i)),(0,p.kG)(i<=1,"quality can be higher than 1: ".concat(i)),i})))}t.empty={quality:0,point:e.empty},t.qualityOfIntersection=n,t.byViewport=function(e,t){return{quality:(0,C.pipe)(n(e,t),_.getOrElse((function(){return 0})))+(0,C.pipe)(we.scale(2,t),fe.chain(we.normalize),_.fromEither,_.chain((function(t){return n(e,t)})),_.getOrElse((function(){return 0}))),point:o(t)}},t.fromZone=function(e,n,r){return(0,C.pipe)(ie.array.traverse(fe.either)(r,(function(e){return i(n,e)})),fe.chain((function(e){var t=e[0],n=e[1];return we.join(t,n)})),fe.chain((function(e){return be.placeIntoRect(n,e)})),fe.map((function(n){return n.map((function(n){return t.byViewport(e,n)}))})))}}(r=e.Qualified||(e.Qualified={})),function(e){e.build=function(e,t,n){return(0,C.pipe)(n,ot.map((function(n){return r.fromZone(e,t,n)})))}}(e.QualifiedVariants||(e.QualifiedVariants={})),function(e){var t;!function(e){e[e.left=0]="left",e[e.middle=1]="middle",e[e.right=2]="right",e[e.edges=20]="edges",e[e.any=210]="any"}(t=e.Placement||(e.Placement={})),e.takeBy=function(e,t){return function(n){return(0,C.pipe)(n,ot.reduceWithIndex({point:r.empty,side:e},(function(n,r,i){return(0,C.pipe)(i,fe.map((function(i){return i.filter((function(r,i){return t.toString().includes(i.toString())&&e===n})).reduce((function(e,t){return t.quality>e.point.quality?{point:t,side:n}:e}),r)})),he.unsafeGet)}))).point}},e.preferBy=function(e,t){return function(n){return(0,C.pipe)(n,ot.reduceWithIndex({point:r.empty,side:e},(function(n,r,i){return(0,C.pipe)(i,fe.map((function(i){return i.reduce((function(r,i,o){return i.quality>r.point.quality||i.quality===r.point.quality&&t.toString().includes(o.toString())&&e===n?{point:i,side:n}:r}),r)})),he.unsafeGet)}))).point}},e.preferTopMiddle=e.preferBy("top",t.middle),e.preferTopEdges=e.preferBy("top",t.edges)}(e.Selector||(e.Selector={}))}(it||(it={}));var st,ut,ct=n(25660),Mt=n(66215),mt=n(54827);function lt(e){return(0,mt.isBoth)(e)?(0,mt.both)(e.right,e.left):(0,fe.swap)(e)}!function(e){function t(t,n,r){return function(i){return e.fromMutation((function(o){(0,C.pipe)(i,e.forEach((function(e,n){return o.set(n,mt.left(t(n,e)))}),(function(e,t,r){return(0,C.pipe)(n(r,e,t),(function(e){var t=e[0],n=e[1];return o.set(r,mt.both(t,n))}))}),(function(e,t){return o.set(t,mt.right(r(t,e)))})))}))}}function n(t,n,r){return function(i){return e.fromMutation((function(o){(0,C.pipe)(i,e.forEach((function(e,n){return t(n,e)&&o.set(n,mt.left(e))}),(function(e,t,r){return n(r,e,t)&&o.set(r,mt.both(e,t))}),(function(e,t){return r(t,e)&&o.set(t,mt.right(e))})))}))}}function r(e){return function(t,n,r){return function(i){var o=ut.iso().unwrap(i),a=e.empty;return o.forEach((function(i,o){a=e.concat(a,mt.fold((function(e){return t(o,e)}),(function(e){return r(o,e)}),(function(e,t){return n(o,e,t)}))(i))})),a}}}e.reduce=function(e,t,n,r){return function(i){var o=ut.iso().unwrap(i),a=e;return o.forEach((function(e,i){a=mt.fold((function(e){return t(a,e,i)}),(function(e){return r(a,e,i)}),(function(e,t){return n(a,e,t,i)}))(e)})),a}},e.mapWithIndex=t,e.map=function(e,n,r){return t((function(t,n){return e(n)}),(function(e,t,r){return n(t,r)}),(function(e,t){return r(t)}))},e.filterWithIndex=n,e.filter=function(e,t,r){return n((function(t,n){return e(n)}),(function(e,n,r){return t(n,r)}),(function(e,t){return r(t)}))},e.foldMapWithIndex=r,e.foldMap=function(e){return function(t,n,i){return r(e)((function(e,n){return t(n)}),(function(e,t,r){return n(t,r)}),(function(e,t){return i(t)}))}},e.forEach=function(e,t,n){return function(r){ut.iso().unwrap(r).forEach((function(r,i){mt.fold((function(t){return e(t,i)}),(function(e){return n(e,i)}),(function(e,n){return t(e,n,i)}))(r)}))}},e.fromMutation=function(e){var t=ut.empty();return e(t),ut.iso().wrap(t)},e.empty=function(){return ut.iso().wrap(ut.empty())},e.concat=function(e,t,n){var r=ut.iso();return r.wrap(ut.concat(e,r.unwrap(t),r.unwrap(n)))},e.inverse=function(e){var t=ut.iso();return(0,C.pipe)(t.unwrap(e),ct.map(lt),t.wrap)},e.getEq=function(e,t){return Mt.getEq(ut.getEq(e,t))},e.toJSON=function(e){return Array.from(ut.iso().unwrap(e))},e.getShow=function(e,t){return ut.getShow(e,t)},e.isEmpty=function(e){return 0===ut.iso().unwrap(e).size}}(st||(st={})),function(e){e.iso=function(){return Mt.iso()},e.empty=function(){return new Map};e.concat=function(e,t,n){var r=new Map(t);return n.forEach((function(t,n){r.has(n)?(0,C.pipe)(function(e,t,n){return mt.getEq(e,e).equals(t,n)?_.some(n):mt.getEq(e,e).equals(t,lt(n))?_.none:mt.isLeft(t)?mt.fold((function(){return _.some(mt.left(t.left))}),(function(e){return _.some(mt.both(t.left,e))}),(function(n,r){return e.equals(t.left,r)?_.none:_.some(mt.both(t.left,r))}))(n):mt.isRight(t)?mt.fold((function(){return _.none}),(0,ae.flow)(mt.right,_.some),(function(e,t){return _.some(mt.right(t))}))(n):mt.fold((function(){return _.some(mt.left(t.left))}),(0,ae.flow)(mt.right,_.some),(function(n,r){return e.equals(t.left,r)?_.none:_.some(mt.both(t.left,r))}))(n)}(e,r.get(n),t),_.fold((function(){r.delete(n)}),(function(e){return r.set(n,e)}))):r.set(n,t)})),r},e.inverse=ct.map(lt),e.getEq=function(e,t){return ct.getEq(e,mt.getEq(t,t))},e.getShow=function(e,t){return ct.getShow(e,mt.getShow(t,t))}}(ut||(ut={}));var dt,ht=n(45281),ft=n(90328);!function(e){e.make=function(e,t,n){return{lefts:e.slice(),focus:t,rights:n.slice()}},e.fromReadonlyArray=function(t,n){return void 0===n&&(n=0),ft.isEmpty(t)||ft.isOutOfBound(n,t)?_.none:_.some(e.make((0,ae.pipe)(t.slice(),ie.takeLeft(n)),t[n],(0,ae.pipe)(t.slice(),ie.dropLeft(n+1))))},e.fromArray=e.fromReadonlyArray,e.fromReadonlyNonEmptyArray=function(t){return e.make([],t[0],t.slice(1))},e.fromNonEmptyArray=e.fromReadonlyNonEmptyArray,e.isOutOfBound=function(t,n){return t<0||t>=e.length(n)},e.length=function(e){return e.lefts.length+1+e.rights.length},e.toNonEmptyArray=function(e){return(0,ae.pipe)(ht.of(e.focus),(function(t){return ht.concat(e.lefts,t)}),(function(t){return ht.concat(t,e.rights)}))},e.toReadonlyNonEmptyArray=e.toNonEmptyArray,e.toArray=e.toNonEmptyArray,e.update=function(t){return function(n){return e.make(n.lefts,t,n.rights)}},e.modify=function(t){return function(n){return(0,ae.pipe)(n,e.update(t(n.focus)))}},e.move=function(t,n){var r=t(n.lefts.length);return e.isOutOfBound(r,n)?_.none:e.fromArray(e.toNonEmptyArray(n),r)},e.findIndex=function(e){return function(t){return(0,ae.pipe)(t.lefts,ft.findIndex(e),_.alt((function(){return e(t.focus)?_.some(t.lefts.length):_.none})),_.alt((function(){return(0,ae.pipe)(t.rights,ft.findIndex(e),_.map((function(e){return t.lefts.length+1+e})))})))}},e.moveByFindFirst=function(t){return function(n){return(0,ae.pipe)(n,e.findIndex(t),_.chain((function(t){return t===n.lefts.length?_.some(n):e.move((function(){return t}),n)})))}},e.up=function(t){return e.move(ae.decrement,t)},e.down=function(t){return e.move(ae.increment,t)},e.start=function(t){return ie.isEmpty(t.lefts)?t:e.make([],t.lefts[0],ie.snoc((0,ae.pipe)(t.lefts,ie.dropLeft(1)),t.focus).concat(t.rights))},e.end=function(t){var n=t.rights.length;return 0===n?t:e.make(ie.snoc(t.lefts,t.focus).concat((0,ae.pipe)(t.rights,ie.takeLeft(n-1))),t.rights[n-1],[])},e.insertLeft=function(t){return function(n){return e.make(n.lefts,t,ie.cons(n.focus,n.rights))}},e.insertRight=function(t){return function(n){return e.make(ie.snoc(n.lefts,n.focus),t,n.rights)}},e.deleteLeft=function(t){var n=t.lefts.length;return e.fromArray(t.lefts.concat(t.rights),n>0?n-1:0)},e.deleteRight=function(t){var n=t.lefts.length,r=t.rights.length;return e.fromArray(t.lefts.concat(t.rights),r>0?n:n-1)};var t=function(t,n){return e.make(t.lefts.map(n),n(t.focus),t.rights.map(n))},n=function(t,n){var r=t.lefts.length;return e.make(t.lefts.map((function(e,t){return n(t,e)})),n(r,t.focus),t.rights.map((function(e,t){return n(r+1+t,e)})))},r=function(t,n){return e.make(ie.array.ap(t.lefts,n.lefts),t.focus(n.focus),ie.array.ap(t.rights,n.rights))},i=function(t,n){var r=t.lefts.map((function(r,i){return n(e.make((0,ae.pipe)(t.lefts,ie.takeLeft(i)),r,ie.snoc((0,ae.pipe)(t.lefts,ie.dropLeft(i+1)),t.focus).concat(t.rights)))})),i=t.rights.map((function(r,i){return n(e.make(ie.snoc(t.lefts,t.focus).concat((0,ae.pipe)(t.rights,ie.takeLeft(i))),r,(0,ae.pipe)(t.rights,ie.dropLeft(i+1))))}));return e.make(r,n(t),i)},o=function(e,t,n){return e.rights.reduce(n,n(e.lefts.reduce(n,t),e.focus))},a=function(e,t,n){var r=e.rights.reduceRight((function(e,t){return n(t,e)}),t),i=n(e.focus,r);return e.lefts.reduceRight((function(e,t){return n(t,e)}),i)},s=function(e){return function(t,n){var r=t.lefts.reduce((function(t,r){return e.concat(t,n(r))}),e.empty),i=t.rights.reduce((function(t,r){return e.concat(t,n(r))}),e.empty);return e.concat(e.concat(r,n(t.focus)),i)}},u=function(t){var n=ie.array.traverse(t);return function(r,i){return t.ap(t.ap(t.map(n(r.lefts,i),(function(t){return function(n){return function(r){return e.make(t,n,r)}}})),i(r.focus)),n(r.rights,i))}};e.map=function(e){return function(n){return t(n,e)}},e.mapWithIndex=function(e){return function(t){return n(t,e)}},e.ap=function(e){return function(t){return r(t,e)}},e.apFirst=function(t){return function(n){return(0,ae.pipe)(n,e.map((function(e){return function(t){return e}})),e.ap(t))}},e.apSecond=function(t){return function(n){return(0,ae.pipe)(n,e.map((function(){return function(e){return e}})),e.ap(t))}},e.of=function(t){return e.make([],t,[])},e.extend=function(e){return function(t){return i(t,e)}},e.duplicate=e.extend(ae.identity),e.foldMap=function(e){return function(t){return function(n){return s(e)(n,t)}}},e.reduce=function(e,t){return function(n){return o(n,e,t)}},e.reduceRight=function(e,t){return function(n){return a(n,e,t)}},e.sequence=function(t){var n=ie.array.sequence(t);return function(r){return t.ap(t.ap(t.map(n(r.lefts),(function(t){return function(n){return function(r){return e.make(t,n,r)}}})),r.focus),n(r.rights))}},e.extract=function(e){return e.focus},e.URI="Zipper",e.getShow=function(e){var t=ie.getShow(e);return{show:function(n){return"Zipper(".concat(t.show(n.lefts),", ").concat(e.show(n.focus),", ").concat(t.show(n.rights),")")}}},e.getSemigroup=function(t){return{concat:function(n,r){return e.make(n.lefts.concat(r.lefts),t.concat(n.focus,r.focus),n.rights.concat(r.rights))}}},e.getMonoid=function(t){return(0,w.__assign)((0,w.__assign)({},e.getSemigroup(t)),{empty:e.make([],t.empty,[])})},e.Functor={URI:e.URI,map:t},e.FunctorWithIndex={URI:e.URI,map:t,mapWithIndex:n},e.Applicative={URI:e.URI,map:t,ap:r,of:e.of},e.Apply={URI:e.URI,map:t,ap:r},e.Foldable={URI:e.URI,foldMap:s,reduce:o,reduceRight:a},e.Traversable={URI:e.URI,map:t,foldMap:s,reduce:o,reduceRight:a,traverse:u,sequence:e.sequence},e.Comonad={URI:e.URI,map:t,extend:i,extract:e.extract},e.zipper={URI:e.URI,map:t,of:e.of,ap:r,extend:i,extract:e.extract,reduce:o,reduceRight:a,foldMap:s,traverse:u,sequence:e.sequence,mapWithIndex:n}}(dt||(dt={}));var pt=function(){function e(t,n){void 0===n&&(n=new URLSearchParams),this.base=t,this.params=n;var r=e._toString(t,n).length;(0,p.kG)(r0;){n=yt(e);var o=Math.floor(n*i--),a=r[o];r[o]=r[i],r[i]=a}return r}};function vt(e){return function(t){if(t.length<2)return t;for(var n=[],r=0;r0?fe.left({recovered:i,rejected:o}):fe.right(i)}}function Ot(e){return function(t,n){var r=[],i=new Map(t);return n.forEach((function(t,n){(0,C.pipe)(ct.lookupWithKey(e)(n,i),Pt.tapLeft((function(){return r.push(n)})))})),r}}function Lt(e){for(var t=(0,ht.of)(e[0][0]),n=(0,ht.of)(e[0][1]),r=1;r0?fe.left({rejected:e.left,recovered:e.right}):fe.right(e.right)}e.URI="RecoverableOperation",e.fromArray=function(n){return function(r){return(0,C.pipe)(r.map((function(e){return(0,C.pipe)(n(e),fe.mapLeft((function(t){return(0,ae.tuple)(t,e)})))})),ie.separate,t,e.mapLeft((function(e){return e.map(En.snd)})))}},e.map=function(e){return function(t){return(0,C.pipe)(t,fe.bimap((function(t){return{rejected:t.rejected,recovered:e(t.recovered)}}),e))}},e.mapLeft=function(e){return function(t){return(0,C.pipe)(t,fe.mapLeft((function(t){return{rejected:e(t.rejected),recovered:t.recovered}})))}},e.flatten=function(e){return function(t){return(0,C.pipe)(t,fe.fold((function(t){return(0,C.pipe)(t.recovered,fe.fold((function(n){return fe.left({rejected:e.concat(t.rejected,n.rejected),recovered:n.recovered})}),(function(e){return fe.left({rejected:t.rejected,recovered:e})})))}),ae.identity))}},e.flatMap=function(t,n){return function(r){return(0,C.pipe)(r,e.map(n),e.flatten(t))}},e.recover=function(e){return fe.fold((function(t){return e(t.rejected),t.recovered}),ae.identity)},e.tapFailure=function(e){return fe.mapLeft((function(t){return e(t),t}))},e.foldSuccess=function(e){return fe.fold((function(t){return e(t.recovered)}),e)},e.of=function(e,t){return void 0===t?fe.right(e):fe.left({recovered:e,rejected:t})},e.fromSeparatedArray=t}(yn||(yn={})),function(e){e.invariantContent=function(e){return"function"===typeof Proxy?new Proxy({},{get:function(t,n){if(null==t[n])throw new Error("Please provide context using ".concat(e,".Context.Provider"));return t[n]}}):void 0}}(gn||(gn={}));var vn=["http","https","mailto","tel"];var bn=function(e){return he.tryCatchError((function(){return new URL(e)}))},wn=(0,ae.flow)(bn,fe.fold((function(){return!1}),(function(e){return vn.includes(e.protocol.replace(":",""))}))),Sn=fe.fromPredicate((function(e){return e.length<=pt.MAX_URL_LENGTH}),(function(){return new Error("URL is too long")})),Cn=fe.fromPredicate((function(e){return e.length>0}),(function(){return new Error("URL is too short")})),An=fe.fromPredicate(wn,(function(){return new Error("Url contains invalid protocol")})),_n=(0,ae.flow)(tt.sanitize,Cn,fe.map((function(e){return tt.urlContainsProtocol(e)?e:"http://"+e})),fe.chain((function(e){return(0,ae.pipe)(e,bn,fe.map((function(){return e})))})),fe.chain(An),fe.chain(Sn))},75980:function(e,t,n){"use strict";n.r(t),n.d(t,{deepEqual:function(){return P},deepUpdate:function(){return b},filterKeys:function(){return C},filterKeysBy:function(){return A},fromEntries:function(){return T},immutableUpdate:function(){return h},immutableUpdateC:function(){return f},immutableUpdateOption:function(){return p},immutableUpdateOptionC:function(){return y},isEmptyObject:function(){return l},isEqual:function(){return c},isObject:function(){return m},keys:function(){return S},merge:function(){return g},modify:function(){return w},objectWithoutProperties:function(){return M},omit:function(){return R},pick:function(){return _},pickProps:function(){return H},set:function(){return k},structuredClone:function(){return s},toArray:function(){return d},update:function(){return v}});var r=n(29388),i=n(50582),o=n(86426),a=n(58520),s=function e(t){if("object"!==typeof t)return t;var n,r,i=Object.prototype.toString.call(t);if("[object Object]"===i){if(t.constructor!==Object&&"function"===typeof t.constructor)for(n in r=new t.constructor,t)t.hasOwnProperty(n)&&r[n]!==t[n]&&(r[n]=e(t[n]));else for(n in r={},t)"__proto__"===n?Object.defineProperty(r,n,{value:e(t[n]),configurable:!0,enumerable:!0,writable:!0}):r[n]=e(t[n]);return r}if("[object Array]"===i){for(n=t.length,r=Array(n);n--;)r[n]=e(t[n]);return r}if("[object Date]"===i)return new Date(+t);if("[object RegExp]"===i)return(r=new RegExp(t.source,t.flags)).lastIndex=t.lastIndex,r;return t};var u=Object.prototype.hasOwnProperty;function c(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&c(e[r],t[r]););return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(u.call(e,n)&&++r&&!u.call(t,n))return!1;if(!(n in t)||!c(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}function M(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e){return null!=e&&!Array.isArray(e)&&"object"===typeof e}function l(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function d(e){return Object.keys(e).map((function(t){return e[t]}))}function h(e,t,n){var o,a=n,s=e,u=a[s],c=(0,r.__rest)(a,["symbol"===typeof s?s:s+""]);return(0,r.__assign)(((o={})[e]=t(i.fromNullable(u)),o),c)}var f=(0,a.W)(h);function p(e,t,n){var a=n,s=e,u=a[s],c=(0,r.__rest)(a,["symbol"===typeof s?s:s+""]),M="function"===typeof t?t(i.fromNullable(u)):t;return(0,o.pipe)(M,i.fold((function(){return c}),(function(t){var n;return(0,r.__assign)(((n={})[e]=t,n),c)})))}var y=(0,a.W)(p);function g(e,t){return E(E({},e),t)}function E(e,t){var n;for(var r in t){var i=null!==(n=e[r])&&void 0!==n?n:{},o=t[r];null!=o&&null!=i&&o.constructor===Object&&i.constructor===Object?e[r]=E(i,o):e[r]=o}return e}function v(e,t){return Object.assign({},e,t)}function b(e,t){var n={};for(var r in e){var i=t[r];void 0!==i?n[r]="object"===typeof i?b(e[r],i):i:n[r]=e[r]}return n}function w(e){return function(t){return v(t,e)}}function S(e){return Object.keys(e)}function C(e,t){return S(e).filter((function(n){return t(e[n])}))}function A(e){return function(t){return C(t,e)}}function _(e){return function(t){return t[e]}}function H(){for(var e=[],t=0;t>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+String(e))}function w(e){var t,n,r=document.createElement("div");return r.innerHTML=l(e),null!==(n=null!==(t=r.textContent)&&void 0!==t?t:r.innerText)&&void 0!==n?n:""}function S(e){if(!e)return"";var t=document.createElement("a");return t.href=e,t.hostname}function C(e){return!!e.match("\\w+\\:.*")}function A(e){return e&&(e<48||58===e||59===e||63===e)||!1}!function(e){e.URI_REGEXP=/^(?:(?:(?:f|ht)tps?|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i}(r||(r={}));var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function H(e){if(e<0)throw new TypeError("Length should not be negative: ".concat(e));return Array.from({length:e},(function(){return _.charAt(Math.random()*_.length)})).join("")}function k(e){return null!==e.match(/^[^\S\r\n]+$/)}function P(e){return null!==e.match(/[\s\r\n\t]/)}function N(e,t){return e.length<=t?e:e.substr(0,t).split(" ").slice(0,-1).join(" ")}},77160:function(e,t,n){"use strict";n.r(t),n.d(t,{Alt:function(){return i.Alt},Applicative:function(){return i.Applicative},Bifunctor:function(){return i.Bifunctor},ChainRec:function(){return i.ChainRec},Do:function(){return i.Do},Extend:function(){return i.Extend},Foldable:function(){return i.Foldable},Functor:function(){return i.Functor},Monad:function(){return i.Monad},MonadThrow:function(){return i.MonadThrow},Traversable:function(){return i.Traversable},URI:function(){return i.URI},__esModule:function(){return i.__esModule},alt:function(){return i.alt},altW:function(){return i.altW},ap:function(){return i.ap},apFirst:function(){return i.apFirst},apS:function(){return i.apS},apSW:function(){return i.apSW},apSecond:function(){return i.apSecond},apW:function(){return i.apW},bimap:function(){return i.bimap},bind:function(){return i.bind},bindTo:function(){return i.bindTo},bindW:function(){return i.bindW},chain:function(){return i.chain},chainFirst:function(){return i.chainFirst},chainFirstW:function(){return i.chainFirstW},chainLeft:function(){return c},chainNullableK:function(){return i.chainNullableK},chainW:function(){return i.chainW},duplicate:function(){return i.duplicate},either:function(){return i.either},elem:function(){return i.elem},exists:function(){return i.exists},extend:function(){return i.extend},filterOrElse:function(){return i.filterOrElse},filterOrElseW:function(){return i.filterOrElseW},flatMap:function(){return d},flatMapLeft:function(){return m},flatten:function(){return i.flatten},flattenLeft:function(){return M},fold:function(){return i.fold},foldMap:function(){return i.foldMap},fromNullable:function(){return i.fromNullable},fromNullableK:function(){return i.fromNullableK},fromOption:function(){return i.fromOption},fromPredicate:function(){return i.fromPredicate},getAltValidation:function(){return i.getAltValidation},getApplicativeValidation:function(){return i.getApplicativeValidation},getApplyMonoid:function(){return i.getApplyMonoid},getApplySemigroup:function(){return i.getApplySemigroup},getEq:function(){return i.getEq},getFilterable:function(){return i.getFilterable},getOrElse:function(){return i.getOrElse},getOrElseW:function(){return i.getOrElseW},getSemigroup:function(){return i.getSemigroup},getShow:function(){return i.getShow},getValidation:function(){return i.getValidation},getValidationMonoid:function(){return i.getValidationMonoid},getValidationSemigroup:function(){return i.getValidationSemigroup},getWitherable:function(){return i.getWitherable},isLeft:function(){return i.isLeft},isRight:function(){return i.isRight},left:function(){return i.left},map:function(){return i.map},map2:function(){return l},mapLeft:function(){return i.mapLeft},of:function(){return i.of},orElse:function(){return i.orElse},parseFiniteInt:function(){return f},parseFloat:function(){return h},parseJSON:function(){return i.parseJSON},reduce:function(){return i.reduce},reduceRight:function(){return i.reduceRight},right:function(){return i.right},sequence:function(){return i.sequence},sequenceArray:function(){return i.sequenceArray},stringifyJSON:function(){return i.stringifyJSON},swap:function(){return i.swap},throwError:function(){return i.throwError},toError:function(){return i.toError},traverse:function(){return i.traverse},traverseArray:function(){return i.traverseArray},traverseArrayWithIndex:function(){return i.traverseArrayWithIndex},tryCatch:function(){return i.tryCatch},tryCatchError:function(){return u},unsafeGet:function(){return s}});var r=n(98846),i=n(25264),o=n(19936),a=n(86426),s=(0,i.fold)((function(e){throw e}),o.identity),u=function(e){return(0,i.tryCatch)(e,i.toError)},c=function(e){return(0,i.fold)(e,i.right)},M=function(e){return i.either.chain(e,o.identity)},m=function(e){return function(t){return(0,a.pipe)(t,c((function(t){return e})))}},l=function(e){return function(t){var n=t[0],o=t[1];return(0,i.map)((function(t){var n=t[0],r=t[1];return e(n,r)}))((0,r.sequenceT)(i.either)(n,o))}},d=i.chain,h=function(e){return(0,a.pipe)(parseFloat(e),(0,i.fromPredicate)((0,o.not)(isNaN),(0,o.constant)(new Error('Could not parse float (got "'.concat(e,'")')))))},f=function(e){return(0,a.pipe)(parseInt(e,10),(0,i.fromPredicate)(isFinite,(0,o.constant)(new Error('Could not parse integer (got "'.concat(e,'")')))))}},65376:function(e,t,n){"use strict";n.r(t),n.d(t,{Alt:function(){return i.Alt},Alternative:function(){return i.Alternative},Applicative:function(){return i.Applicative},Compactable:function(){return i.Compactable},Do:function(){return i.Do},Extend:function(){return i.Extend},Filterable:function(){return i.Filterable},Foldable:function(){return i.Foldable},Functor:function(){return i.Functor},Monad:function(){return i.Monad},MonadThrow:function(){return i.MonadThrow},Traversable:function(){return i.Traversable},URI:function(){return i.URI},Witherable:function(){return i.Witherable},__esModule:function(){return i.__esModule},alt:function(){return i.alt},altW:function(){return i.altW},ap:function(){return i.ap},apFirst:function(){return i.apFirst},apS:function(){return i.apS},apSecond:function(){return i.apSecond},bind:function(){return i.bind},bindTo:function(){return i.bindTo},chain:function(){return i.chain},chainFirst:function(){return i.chainFirst},chainNullableK:function(){return i.chainNullableK},compact:function(){return i.compact},contains:function(){return g},duplicate:function(){return i.duplicate},elem:function(){return i.elem},empty:function(){return M},exists:function(){return i.exists},extend:function(){return i.extend},filter:function(){return i.filter},filterMap:function(){return i.filterMap},flatten:function(){return i.flatten},fold:function(){return i.fold},foldMap:function(){return i.foldMap},forAll:function(){return d},fromEither:function(){return i.fromEither},fromNullable:function(){return i.fromNullable},fromNullableK:function(){return i.fromNullableK},fromPredicate:function(){return i.fromPredicate},fromRemoteData:function(){return v},getApplyMonoid:function(){return i.getApplyMonoid},getApplySemigroup:function(){return i.getApplySemigroup},getEq:function(){return i.getEq},getFirstMonoid:function(){return i.getFirstMonoid},getLastMonoid:function(){return i.getLastMonoid},getLeft:function(){return i.getLeft},getMonoid:function(){return i.getMonoid},getOrElse:function(){return i.getOrElse},getOrElseW:function(){return i.getOrElseW},getOrd:function(){return i.getOrd},getRefinement:function(){return i.getRefinement},getRight:function(){return i.getRight},getShow:function(){return i.getShow},is:function(){return f},isNone:function(){return i.isNone},isSome:function(){return i.isSome},map:function(){return i.map},map2:function(){return l},mapNullable:function(){return i.mapNullable},mapOrDefault:function(){return m},none:function(){return i.none},of:function(){return i.of},option:function(){return i.option},orElse:function(){return h},orNull:function(){return u},orUndefined:function(){return c},partition:function(){return i.partition},partitionMap:function(){return i.partitionMap},reduce:function(){return i.reduce},reduceRight:function(){return i.reduceRight},separate:function(){return i.separate},sequence:function(){return i.sequence},sequenceArray:function(){return i.sequenceArray},sequenceT:function(){return E},some:function(){return i.some},tap:function(){return p},tapLeft:function(){return y},throwError:function(){return i.throwError},toNullable:function(){return i.toNullable},toUndefined:function(){return i.toUndefined},traverse:function(){return i.traverse},traverseArray:function(){return i.traverseArray},traverseArrayWithIndex:function(){return i.traverseArrayWithIndex},tryCatch:function(){return i.tryCatch},unsafeGet:function(){return s},wilt:function(){return i.wilt},wither:function(){return i.wither},zero:function(){return i.zero}});var r=n(98846),i=n(50582),o=n(19936),a=n(94018),s=(0,i.fold)((function(){throw new Error("option has empty value")}),o.identity),u=(0,i.getOrElse)(o.constNull),c=(0,i.getOrElse)(o.constUndefined),M=function(){return i.none};function m(e,t){return(0,i.fold)((function(){return t}),e)}var l=function(e){return function(t,n){return(0,i.map)((function(t){var n=t[0],r=t[1];return e(n,r)}))((0,r.sequenceT)(i.option)(t,n))}};function d(e){return function(t){return(0,i.isNone)(t)||(0,i.exists)(e)(t)}}function h(e){return(0,i.fold)((function(){return e}),i.some)}function f(e){var t,n;return"None"===(null===(t=e)||void 0===t?void 0:t._tag)||"Some"===(null===(n=e)||void 0===n?void 0:n._tag)}function p(e){return(0,i.map)((function(t){return e(t),t}))}function y(e){return(0,i.fold)((0,o.flow)(e,(function(){return i.none})),i.some)}function g(e){return(0,o.flow)((0,i.filter)((function(t){return t===e})),i.isSome)}var E=(0,r.sequenceT)(i.option);function v(e){return(0,a.d6)(e)?(0,i.some)(e.value):i.none}},27764:function(e,t,n){"use strict";n.r(t),n.d(t,{URI:function(){return o},ap:function(){return M},apFirst:function(){return m},apSecond:function(){return l},chain:function(){return d},chainFirst:function(){return h},map:function(){return f},orElse:function(){return s},promise:function(){return a},promiseSeq:function(){return u}});var r=n(86426),i=n(75980),o="Promise",a={URI:o,map:function(e,t){return e.then(t)},of:Promise.resolve.bind(Promise),ap:function(e,t){return Promise.all([e,t]).then((function(e){return(0,e[0])(e[1])}))},chain:function(e,t){return e.then(t)},mapLeft:function(e,t){return e.catch((function(e){return Promise.reject(t(e))}))},bimap:function(e,t,n){return e.then(n,(function(e){return Promise.reject(t(e))}))},throwError:function(e){return Promise.reject(e)}};function s(e){return function(t){return t.catch(e)}}var u=i.merge(a,{ap:function(e,t){return e.then((function(e){return t.then(e)}))}}),c=(0,r.pipeable)(a),M=c.ap,m=c.apFirst,l=c.apSecond,d=c.chain,h=c.chainFirst,f=c.map},94018:function(e,t,n){"use strict";var r;function i(e){return e.type===r.InProgress}function o(e){return e.type===r.Success}function a(e){return e.type===r.Error}function s(e){return e.type===r.Fatal}n.d(t,{Dy:function(){return r},IR:function(){return s},VZ:function(){return a},d6:function(){return o},n2:function(){return i}}),function(e){e.InProgress="InProgress",e.Success="Success",e.Error="Error",e.Fatal="Fatal"}(r||(r={}))},10475:function(e,t,n){"use strict";n.r(t),n.d(t,{chain:function(){return i.chain},flatMap:function(){return d},flatMapEither:function(){return h},flatMapEither2:function(){return f},flattenLeft:function(){return l},fromEither:function(){return i.fromEither},handleError:function(){return y},toPromise:function(){return m},tryDelay:function(){return p}});var r=n(65309),i=n(52453),o=n(19936),a=n(86426),s=n(77160),u=n(50582),c={};for(var M in i)["default","chain","fromEither","toPromise","flattenLeft","flatMap","flatMapEither","flatMapEither2","tryDelay","handleError"].indexOf(M)<0&&(c[M]=function(e){return i[e]}.bind(0,M));function m(e){return e().then(s.unsafeGet)}n.d(t,c);var l=function(e){return i.taskEither.chain(e,o.identity)},d=i.chain,h=function(e){return r.map(s.flatMap(e))},f=function(e){return function(t){return(0,a.pipe)(t,(0,i.chain)((function(t){return(0,i.fromEither)(e(t))})))}};function p(e,t,n){return(0,a.pipe)(e,(0,i.fold)((function(o){var s=(0,a.pipe)((0,i.left)(o),r.delay(n));return(0,a.pipe)(t(o),u.fold((function(){return(0,i.left)(o)}),(function(t){var n=(0,a.pipe)(t,r.chain((function(){return(0,i.right)(void 0)}))),o=r.getRaceMonoid().concat(s,n);return(0,a.pipe)(o,(0,i.chain)((function(){return e})))})))}),(function(e){return(0,i.right)(e)})))}var y=function(e){return(0,i.orElse)((function(t){return(0,a.pipe)(e(t),(0,i.chain)((function(){return(0,i.left)(t)})))}))}},16658:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r,i=n(29388),o=n(72791),a=n(80335),s=n(18833),u=n(50704),c=n(70091),M=n(45385);!function(e){e.Regular=function(e){return o.createElement("span",(0,i.__assign)({},(0,a.Sh)(e.a11yContrast?p.badgeA11yContrast:p.badge,e.className)),e.children)},e.New=function(t){var n=t.className;return o.createElement(e.Regular,{className:n},"New")},e.NewWrapper=function(t){var n=t.children;return o.createElement("div",null,o.createElement(e.New,null),n)},e.Premium=function(t){var n=t.className;return o.createElement(e.Regular,(0,i.__assign)({},(0,a.Sh)(p.premiumBadge,n)),o.createElement(u.JO.PaidLink,{className:p.premiumBadgeIcon,width:12}),"PREMIUM")},e.Business=function(t){var n=t.className;return o.createElement(e.Regular,(0,i.__assign)({},(0,a.Sh)(n)),"BUSINESS")}}(r||(r={}));var m={display:"inline-block",padding:"".concat(c.ux.rem(s.Zh.BadgeY)," ").concat(c.ux.rem(s.Zh.BadgeX)),height:c.ux.rem(s.L3.Badge),borderRadius:c.ux.rem(M.mA),background:s.Il.CoreGreen1,color:s.Il.CoreGreen70,verticalAlign:"middle",textAlign:"center",textTransform:s._5.Badge,letterSpacing:s.LK.Badge,fontWeight:s.U9.Badge,fontSize:c.ux.rem(s.Bf.Badge),lineHeight:c.ux.rem(s.L3.Badge)},l={background:s.Il.CoreBlue1,color:s.Il.CoreBlue60},d={marginRight:s.Zh.BadgeX,maxWidth:c.ux.rem(s.L3.Badge),maxHeight:c.ux.rem(s.L3.Badge),minWidth:c.ux.rem(s.L3.Badge),minHeight:c.ux.rem(s.L3.Badge),verticalAlign:"top"},h={background:s.Il.CoreYellow20,color:s.Il.CoreYellow80},f={fill:s.Il.CoreYellow80},p=c.ux.stylesheet({badge:[m],badgeA11yContrast:[m,l],badgeIcon:[d],premiumBadge:[m,h],premiumBadgeIcon:[d,f]})},56954:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});var r,i=n(29388),o=n(72791);!function(e){e.empty={hovered:void 0,disabled:void 0,active:void 0},e.withValue=function(e,t){return(0,i.__assign)((0,i.__assign)({},e),t)},e.emptyWithName=function(t){return e.withValue(e.empty,{name:t})},e.Context=o.createContext(e.empty)}(r||(r={}))},19949:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r,i=n(72791);!function(e){e.invariantContent=function(e){return"function"===typeof Proxy?new Proxy({},{get:function(t,n){if(null==t[n])throw new Error("Please provide context using ".concat(e,".Context.Provider"));return t[n]}}):void 0}}(r||(r={}));var o,a=n(25264),s=n(77749);!function(e){!function(e){e.supportsSVGDominantBaseline="supportsSVGDominantBaseline",e.supportsSetGoalsLoader="supportsSetGoalsLoader",e.onlyTrustedEvents="onlyTrustedEvents"}(e.Flag||(e.Flag={})),e.Context=i.createContext(r.invariantContent("PlatformEnvironment"));var t=function(){this.has=function(){return!1},this.actions={openUrl:function(){return a.right(void 0)},openPopup:function(){return a.right(void 0)}}};e.Mock=t}(o||(o={}));!function(){function e(){this.actions={openUrl:function(e){return s.vM((function(){throw new Error("Not implemented")}))},openPopup:function(e){return s.vM((function(){throw new Error("Not implemented")}))}}}e.prototype.has=function(e){throw new Error("Not implemented")}}()},9528:function(e,t,n){"use strict";n.d(t,{Y:function(){return H},X:function(){return E}});var r,i=n(29388),o=n(72791),a=n(11264),s=n(86426),u=n(30044),c=n(79978),M=n(80335),m=n(50265),l=n(24206),d=n(79559),h=n(50582),f=n(83367),p=n(56954),y=n(54164),g=n(48867);!function(e){e.EMPTY=g.w.EMPTY;var t=function(){function e(){this._subs=[]}return e.prototype.push=function(){for(var e,t=[],n=0;n i":{fill:o.Il.CoreNeutral0,stroke:o.Il.CoreNeutral0}}},disabled:{backgroundColor:o.Il.BackgroundButtonPrimaryDisabled,color:o.Il.TextButtonPrimaryDisabled},clicked:{},toggled:{},hidden:{}}),{$nest:{"& > i":{fill:o.Il.CoreNeutral0,stroke:o.Il.CoreNeutral0}}}),p=a.ux.style(m,{$nest:(r={},r[".".concat(h," &")]={padding:"0 ".concat(a.ux.rem(.5)),marginRight:a.ux.px(2),borderRadius:0,$nest:{"&:first-child":{borderRadius:"".concat(a.ux.rem(s.fx)," 0 0 ").concat(a.ux.rem(s.fx))},"&:last-child":{marginRight:0,borderRight:"none",borderRadius:"0 ".concat(a.ux.rem(s.fx)," ").concat(a.ux.rem(s.fx)," 0")}}},r[".".concat(h," &:not([data-active='true'])")]={backgroundColor:o.Il.CoreNeutral10},r)},u({default:{padding:"0 ".concat(a.ux.rem(.5)),borderRadius:a.ux.rem(s.fx),backgroundColor:o.Il.CoreNeutral10,color:o.Il.CoreBlue60,textTransform:"capitalize",letterSpacing:0,fontSize:a.ux.rem(.875),lineHeight:a.ux.rem(2),transitionDuration:".2s"},hovered:{backgroundColor:o.Il.CoreNeutral20},toggled:{backgroundColor:o.Il.CoreBlue50,color:o.Il.CoreNeutral0,$nest:{"&:hover":{backgroundColor:o.Il.CoreBlue40,color:o.Il.CoreNeutral0}}},disabled:{backgroundColor:o.Il.CoreNeutral10,color:o.Il.CoreNeutral50},clicked:{},hidden:{}})),y=a.ux.style(m,M,c(a.ux.rem(o.Zh.ButtonPrimaryX),0),u({default:{display:"inline-flex",color:o.Il.CoreBlue50,lineHeight:a.ux.rem(2),transitionDuration:".2s",transitionProperty:"border, background, color",flexWrap:"wrap",alignItems:"center"},hovered:{borderColor:o.Il.BackgroundButtonGhostHover,background:o.Il.BackgroundButtonGhostHover},disabled:{borderColor:o.Il.TextButtonGhostDisabled,color:o.Il.TextButtonGhostDisabled},clicked:{},toggled:{},hidden:{}}),{$nest:{"&[data-textpos] i[data-role='icon']":{margin:"".concat(a.ux.rem(-.1)," ").concat(a.ux.rem(.25)," 0 0")}}}),g=a.ux.style(m,M,c(a.ux.rem(.5),0),u({default:{display:"inline-flex",color:o.Il.CoreNeutral50,lineHeight:a.ux.rem(2),transitionDuration:".2s",transitionProperty:"border, background, color",flexWrap:"wrap",alignItems:"center"},hovered:{background:o.Il.CoreNeutral1,color:o.Il.CoreBlue50},disabled:{color:o.Il.CoreNeutral30},clicked:{},toggled:{},hidden:{}})),E=a.ux.style(m,c(a.ux.rem(1),a.ux.rem(.5)),u({default:{display:"inline-flex",color:o.Il.CoreNeutral90,textAlign:"left",fontWeight:"normal",fontSize:a.ux.rem(.875),lineHeight:a.ux.rem(2),transitionDuration:".2s",alignItems:"center"},hovered:{backgroundColor:o.Il.CoreNeutral10,color:o.Il.CoreBlue50},disabled:{color:o.Il.CoreNeutral40},clicked:{},toggled:{},hidden:{}}),{$nest:{"&[data-textpos] i[data-role='icon']":{margin:"".concat(a.ux.rem(-.1)," ").concat(a.ux.rem(.25)," 0 0")}}}),v=a.ux.style(m,M,{display:"flex",margin:"0 ".concat(a.ux.rem(.5)," ").concat(a.ux.rem(.5)),padding:"0 ".concat(a.ux.rem(.3)," 0 ").concat(a.ux.rem(.5)),minHeight:a.ux.rem(2),color:o.Il.CoreNeutral70,textAlign:"left",whiteSpace:"normal",fontWeight:"normal",lineHeight:a.ux.rem(1.2),transition:"background .2s",alignItems:"center",$nest:{"&[data-hovered='true']":{background:o.Il.CoreNeutral10},"&[data-active='true']":{background:o.Il.CoreNeutral20}}}),b=a.ux.style({textDecoration:"none"}),w=a.ux.style({display:"inline-flex",justifyContent:"space-around",$nest:{"& > *:not(:first-child)":{marginLeft:a.ux.rem(.5)}}}),S=a.ux.style({display:"inline-flex",flexDirection:"column",$nest:{"& > *":{borderRadius:0}}});a.ux.style({whiteSpace:"pre-line"})},96588:function(e,t,n){"use strict";n.d(t,{zx:function(){return m}});var r=n(29388),i=n(72791),o=n(79978),a=n(80335),s=n(92270),u=n(9528),c=n(14001),M=n(32998);function m(e){return i.createElement(u.Y,(0,r.__assign)({},l(e,c.LI)))}function l(e,t){var n=(0,a.Sh)(e.className,t).className;return(0,r.__assign)((0,r.__assign)({},e),{className:n})}!function(e){e.Animated=function(e){return i.createElement(u.Y,(0,r.__assign)({},(0,r.__assign)((0,r.__assign)({},e),{animationMode:Boolean(e.animationMode)?e.animationMode:M.m.FromClickPoint})))},e.Primary=function(t){return i.createElement(e.Animated,(0,r.__assign)({styleType:s.Z.Type.Button},l(t,c.T$)))},e.Ghost=function(t){return i.createElement(e.Animated,(0,r.__assign)({styleType:s.Z.Type.Button},l(t,c.fk)))},e.Tertiary=function(t){return i.createElement(e.Animated,(0,r.__assign)({styleType:s.Z.Type.Base},l(t,c.UF)))},e.Flat=function(t){return i.createElement(e.Animated,(0,r.__assign)({},l(t,c.$H)))},e.White=function(t){return i.createElement(e.Animated,(0,r.__assign)({},l(t,c.ix)))},e.SidebarFlat=function(e){return i.createElement(u.Y,(0,r.__assign)({styleType:s.Z.Type.H3Legacy},l(e,c.HN)))},e.Caps=function(e){return i.createElement(u.Y,(0,r.__assign)({styleType:s.Z.Type.H3Legacy},l(e,c.Mp)))},e.Group=function(e){var t=e.children,n=e.className,s=e.align,u=void 0===s?"horizontal":s,M=e.sticky,m=e.name;return i.createElement(o.F.div,(0,r.__assign)({role:"group"},(0,a.Sh)(n,"horizontal"===u?!0===M?c.vD:c.ru:c.oc),{"data-name":m}),t)}}(m||(m={}))},32998:function(e,t,n){"use strict";n.d(t,{H:function(){return f},m:function(){return r}});var r,i=n(29388),o=n(72791),a=n(30044),s=n(79978),u=n(38325),c=n(44095),M=n(50265),m=n(10836),l=n(18833),d=n(56954),h=n(70091);!function(e){e.None="none",e.FromClickPoint="fromClickPoint",e.FromCenter="fromCenter"}(r||(r={}));var f=function(e){function t(t,n){var r=e.call(this,t)||this;return r._ripples=a.h.create(Array()),r._disabled=a.h.create(!1).view(),r._disabled=void 0===n.disabled?r._disabled:n.disabled,r}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this;this._el&&(this._subscription=this.props.mouseDownEvents.pipe(u.b((function(t){if(!e._disabled.get()&&e._el){var n=e._getAnimationStyle(e._el,t);e._ripples.modify((function(e){return(0,i.__spreadArray)((0,i.__spreadArray)([],e,!0),[n],!1)}))}})),c.b(1e3),u.b((function(){return e._ripples.modify((function(){return[]}))}))).subscribe())},t.prototype.componentWillUnmount=function(){Boolean(this._subscription)&&this._subscription.unsubscribe()},t.prototype._getAnimationStyle=function(e,t){var n=e.getBoundingClientRect(),i=n.width;switch(this.props.animationMode){case r.None:throw new m.ej("unsupported mode, do not mount component if you do not need ripple animation");case r.FromCenter:return{className:v.rippleFromCenter,top:(n.height-i)/2,left:0,width:i,height:i};default:return{className:v.ripple,top:t.pageY-n.top-i/2,left:t.pageX-n.left-i/2,width:i,height:i}}},t.prototype.render=function(){var e=this;return o.createElement("span",{className:v.rippleContainer,ref:function(t){return e._el=t}},o.createElement(s.F.span,null,this._ripples.pipe(M.U((function(e){return e.map((function(e,t){return o.createElement("span",{className:e.className,key:t,style:e})}))})))))},t.contextType=d.f.Context,t}(o.Component),p=h.ux.keyframes({to:{opacity:0,transform:"scale(1)"}}),y=h.ux.keyframes({to:{opacity:0,transform:"scale(2)"}}),g={position:"absolute",borderRadius:h.ux.percent(100),backgroundColor:l.Il.CoreNeutral90,opacity:.15,transform:"scale(0)",animation:"".concat(y," .4s")},E={animationName:p},v=h.ux.stylesheet({rippleContainer:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",pointerEvents:"none"}],ripple:[g],rippleFromCenter:[g,E]})},69533:function(e,t,n){"use strict";n.r(t);var r=n(70091),i=n.p+"static/media/inter-bold.ac56fedcfb71f361e640.woff",o=n.p+"static/media/inter-bold.608bcc79718d3a9c1107.woff2",a=n.p+"static/media/inter-bolditalic.e19c4d28c6985bff5aeb.woff",s=n.p+"static/media/inter-bolditalic.cc4647831b8a24564a97.woff2",u=n.p+"static/media/inter-italic.cbbd4102bc234a5d226a.woff",c=n.p+"static/media/inter-italic.45ce8e8e6e16922d6291.woff2",M=n.p+"static/media/inter-light.cb65f39e890246b817b6.woff",m=n.p+"static/media/inter-light.eec5c27634de0f78e530.woff2",l=n.p+"static/media/inter-lightitalic.754e462d496615a46391.woff",d=n.p+"static/media/inter-lightitalic.113703a93601eb464b6e.woff2",h=n.p+"static/media/inter-medium.85d486611d473e948737.woff",f=n.p+"static/media/inter-medium.1adb92f91ae8cb45da68.woff2",p=n.p+"static/media/inter-mediumitalic.e0f527bf956cd98df96c.woff",y=n.p+"static/media/inter-mediumitalic.53d85fe20326acc392be.woff2",g=n.p+"static/media/inter-regular.4c8f4dc33cb4c37bb8e5.woff",E=n.p+"static/media/inter-regular.1011a20fb7a0ea2eb5d4.woff2";r.ux.fontFace({fontFamily:"Inter",fontStyle:"normal",fontWeight:300,src:"url('".concat(m,"') format('woff2'), url('").concat(M,"') format('woff')"),fontDisplay:"swap"}),r.ux.fontFace({fontFamily:"Inter",fontStyle:"normal",fontWeight:700,src:"url('".concat(o,"') format('woff2'), url('").concat(i,"') format('woff')"),fontDisplay:"swap"}),r.ux.fontFace({fontFamily:"Inter",fontStyle:"normal",fontWeight:400,src:"url('".concat(E,"') format('woff2'), url('").concat(g,"') format('woff')"),fontDisplay:"swap"}),r.ux.fontFace({fontFamily:"Inter",fontStyle:"normal",fontWeight:500,src:"url('".concat(f,"') format('woff2'), url('").concat(h,"') format('woff')"),fontDisplay:"swap"}),r.ux.fontFace({fontFamily:"Inter",fontStyle:"italic",fontWeight:300,src:"url('".concat(d,"') format('woff2'), url('").concat(l,"') format('woff')"),fontDisplay:"swap"}),r.ux.fontFace({fontFamily:"Inter",fontStyle:"italic",fontWeight:400,src:"url('".concat(c,"') format('woff2'), url('").concat(u,"') format('woff')"),fontDisplay:"swap"}),r.ux.fontFace({fontFamily:"Inter",fontStyle:"italic",fontWeight:500,src:"url('".concat(y,"') format('woff2'), url('").concat(p,"') format('woff')"),fontDisplay:"swap"}),r.ux.fontFace({fontFamily:"Inter",fontStyle:"italic",fontWeight:700,src:"url('".concat(s,"') format('woff2'), url('").concat(a,"') format('woff')"),fontDisplay:"swap"})},50704:function(e,t,n){"use strict";n.d(t,{n4:function(){return d},JO:function(){return E},a1:function(){return w},T1:function(){return H}});var r,i=n(29388),o=n(72791),a=n(88927),s=n(86426),u=n(79978),c=n(80335),M=n(82297),m=n(69844),l=n(50265);!function(e){e.Reload=function(){return o.createElement("svg",{width:"32",viewBox:"0 0 32 32"},o.createElement("path",{fill:"none",d:"M14.5 11.393A5.428 5.428 0 0011 16.5a5.502 5.502 0 003.536 5.139m3.928-10.246C20.532 12.183 22 14.154 22 16.5a5.475 5.475 0 01-3.506 5.139M11.5 11h3v3m7 8h-3v-3"}))},e.Collapse=function(){return o.createElement("svg",{width:"32",viewBox:"0 0 32 32"},o.createElement("path",{fill:"none",d:"M11.5 7.5L16 12l4.5-4.5m-9 17L16 20l4.5 4.5",strokeLinecap:"round"}))},e.MoreVertical=function(){return o.createElement("svg",{width:"32",viewBox:"0 0 32 32"},o.createElement("path",{d:"M17.5 16a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM17.5 22a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM17.5 10a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z",strokeWidth:"0"}))}}(r||(r={}));var d,h=n(18833),f=n(56954),p=n(70091),y=n(18217),g=n(45385);!function(e){e.down="down",e.left="left",e.right="right",e.up="up"}(d||(d={}));var E,v=new Map([[d.down,"0 3"],[d.left,"8 0"],[d.up,"10 8"],[d.right,"2 10"]]),b=new Map([[d.down,"0"],[d.left,"90"],[d.up,"180"],[d.right,"270"]]),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){return o.createElement(u.F.i,(0,i.__assign)({},(0,c.Sh)(J.icon,this.props.className),{"data-disabled":this.context.disabled,"data-hovered":this.context.hovered,"data-active":this.context.active,"data-role":"icon",role:this.props.role,"aria-hidden":!Boolean(this.props.role)}),o.createElement("svg",{width:this.props.width,viewBox:this.props.viewBox,className:!0===this.props.dontScale?"":J.holder,fill:this.props.fill},this.props.children))},t.contextType=f.f.Context,t}(o.Component),S=function(e){var t=o.useContext(f.f.Context);return o.createElement(u.F.i,(0,i.__assign)({},(0,c.Sh)(J.icon,e.className,!0===e.dontScale?"":J.holder),{"data-disabled":t.disabled,"data-hovered":t.hovered,"data-active":t.active,"data-role":"icon",role:e.role,"aria-hidden":!Boolean(e.role)}),e.children)},C=function(e){var t=e.className,n=e.children,r=e.role,a=o.useContext(f.f.Context);return o.createElement(u.F.i,(0,i.__assign)({},(0,c.Sh)(J.iconSimple,t),{"data-disabled":a.disabled,"data-hovered":a.hovered,"data-active":a.active,"data-role":"icon",role:r,"aria-hidden":!Boolean(r)}),n)},A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){return o.createElement("path",(0,i.__assign)({d:"M11.18 10.273c-.593 0-1.068.53-.952 1.14.08.46.522.784.997.784h1.496l.87-.115c-1.39 2.016-3.79 2.95-6.423 2.546-2.144-.334-3.988-1.774-4.765-3.79-1.762-4.575 1.6-8.942 5.97-8.942 2.285 0 4.28 1.325 5.427 2.927v.034c.3.438.903.565 1.344.254.417-.287.533-.83.278-1.266h.01C13.846 1.39 11.006-.19 7.793.018 3.633.318.247 3.705.015 7.853c-.278 4.828 3.57 8.768 8.37 8.768 2.516 0 4.766-1.093 6.307-2.856l-.184 1.014v.91c0 .472.325.91.788.99.615.116 1.148-.356 1.148-.944V10.26H11.18v.013z",fill:"#FFF",stroke:"none",fillRule:"evenodd"},this.props))},t.size=16.5,t}(o.PureComponent),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){return o.createElement(o.Fragment,null,o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6271 18.6277 24 12 24C5.37287 24 0 18.6271 0 12C0 5.37235 5.37287 0 12 0C18.6277 0 24 5.37235 24 12Z",fill:"#15C39A",stroke:"none"}),o.createElement("path",{d:"M12 24C18.6277 24 24 18.6272 24 12H0C0 18.6272 5.37281 24 12 24Z",fill:"#FFCC00",stroke:"none"}),o.createElement("path",{d:"M12 0C5.37281 0 0 5.37235 0 12H24C24 5.37235 18.6277 0 12 0Z",fill:"#0066CC",stroke:"none"}),o.createElement("g",{filter:"url(#filter0_d_2992_154725)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5683 14.5912C13.6393 14.984 14.0087 15.2533 14.4078 15.2533H15.6652L16.3941 15.151C15.228 16.8618 13.2031 17.6491 10.9894 17.3016C9.18728 17.0188 7.63928 15.7995 6.98606 14.0966C5.50328 10.231 8.32641 6.54022 12.0052 6.54022C13.9226 6.54022 15.6047 7.6917 16.5688 9.04718C16.825 9.41605 17.3316 9.52196 17.701 9.26578C18.0516 9.02265 18.1539 8.56092 17.9431 8.19778C16.6095 6.11605 14.2132 4.78405 11.5184 4.96457C8.00971 5.19987 5.17041 8.071 4.96849 11.5818C4.73423 15.667 7.97475 19.0025 12.0052 19.0025C14.1224 19.0025 16.0179 18.0806 17.3092 16.5889L17.1563 17.4446V18.2178C17.1563 18.6164 17.425 18.9863 17.8179 19.0573C18.3339 19.1501 18.7826 18.7562 18.7826 18.2574V13.6265H14.3676C13.8688 13.6265 13.4749 14.0757 13.5683 14.5912Z",fill:"white",stroke:"none"})),o.createElement("defs",null,o.createElement("filter",{id:"filter0_d_2992_154725",x:"4.95654",y:"4.94824",width:"13.8262",height:"15.1226",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.createElement("feOffset",{dy:"1"}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.4 0 0 0 0 0.8 0 0 0 0.15 0"}),o.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2992_154725"}),o.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2992_154725",result:"shape"}))))},t.size=16.5,t}(o.PureComponent);!function(e){e.UserProfile=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 14.4815 2.90386 16.7519 4.40031 18.4999L8 17C9.07177 16.5534 9.81289 15.5753 9.96923 14.4469C8.79062 13.751 8 12.4678 8 11V9C8 6.79086 9.79086 5 12 5C14.2091 5 16 6.79086 16 9V11C16 12.4678 15.2094 13.751 14.0308 14.4469C14.1871 15.5753 14.9282 16.5534 16 17L19.5997 18.4999C21.0961 16.7519 22 14.4815 22 12C22 6.47715 17.5228 2 12 2ZM18.8608 19.2753L15.6154 17.9231C14.2989 17.3746 13.3639 16.2128 13.0859 14.8509C12.7406 14.948 12.3764 15 12 15C11.6236 15 11.2594 14.948 10.9141 14.8509C10.6361 16.2128 9.70107 17.3746 8.38461 17.9231L5.13923 19.2753C6.92988 20.9646 9.34402 22 12 22C14.656 22 17.0701 20.9646 18.8608 19.2753ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 6C10.3431 6 9 7.34315 9 9V11C9 12.6569 10.3431 14 12 14C13.6569 14 15 12.6569 15 11V9C15 7.34315 13.6569 6 12 6Z"}))},e.Library=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 16"},o.createElement("path",{d:"M22.16 8.5L18.44 2c-.36-.62-1.02-1-1.74-1H7.28c-.7 0-1.37.38-1.73 1L1.72 8.5h5.96c.27 0 .5.22.5.5 0 1.74 1.85 3.5 3.82 3.5 1.92 0 3.53-1.7 3.53-3.5 0-.28.22-.5.5-.5h6.13zm.34 1h-6c-.27 2.15-2.2 4-4.5 4-2.33 0-4.5-1.9-4.8-4H1.5V13c0 1.1.9 2 2 2h17c1.1 0 2-.9 2-2V9.5zM7.28 0h9.42c1.08 0 2.07.58 2.6 1.5l4.13 7.2c.05.1.07.17.07.26V13c0 1.66-1.34 3-3 3h-17c-1.66 0-3-1.34-3-3V8.74c0-.08.02-.17.07-.25L4.7 1.47C5.22.56 6.2 0 7.27 0z",stroke:"none"}))},e.Plagiarism=function(e){var t=e.className,n=e.width,r=void 0===n?19:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 20 16"},o.createElement("path",{d:"M11.1 7.38c-.27 0-.48-.2-.48-.48V.48c0-.27.2-.48.47-.48h6.57c.27 0 .48.2.48.48V6.9c0 4.5-1.65 7.37-5.57 9.06-.23.1-.5 0-.6-.2l-1.4-2.6c-.15-.23-.04-.54.2-.65 2.35-1.05 3.1-2.3 3.17-5.12H11.1zm6.1-.48V.96h-5.63v5.46h2.87c.26 0 .47.22.47.48 0 3.32-.78 5-3.25 6.26l.94 1.74c3.26-1.54 4.6-4 4.6-8zm-13.75.48H.6c-.28 0-.5-.2-.5-.48V.48C.1.2.33 0 .6 0h6.56c.27 0 .48.2.48.48V6.9c0 4.5-1.65 7.37-5.57 9.06-.23.1-.5 0-.6-.2l-1.4-2.6c-.14-.23-.04-.54.2-.65 2.35-1.05 3.1-2.3 3.18-5.12zM6.7 6.9V.96H1.05v5.46h2.87c.26 0 .48.22.48.48 0 3.32-.8 5-3.26 6.26l.95 1.74c3.25-1.54 4.6-4 4.6-8z",stroke:"none"}))},e.PlagiarismOutcomes=function(e){var t=e.className,n=e.width,r=void 0===n?22:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 22 18"},o.createElement("path",{d:"M17.41 9.75l-.67 1.17a14.42 14.42 0 0 1-3.4 3.84l.96 1.43a16.38 16.38 0 0 0 4.96-4.58A10.62 10.62 0 0 0 21 5.55a4 4 0 1 0-4.9 3.9l1.31.3zm-3.94 7l-.96-1.43c-.29-.43-.2-1.02.2-1.35 1.12-.93 1.96-1.8 2.59-2.66.21-.3.4-.6.57-.89A4.96 4.96 0 0 1 12 5.55a5 5 0 1 1 10 0c0 5.2-2.68 8.6-7.19 11.5a.98.98 0 0 1-1.34-.3zm-12 0l-.96-1.43c-.29-.43-.2-1.02.2-1.35 1.12-.93 1.96-1.8 2.59-2.66.21-.3.4-.6.57-.89A4.96 4.96 0 0 1 0 5.55a5 5 0 1 1 10 0c0 5.2-2.68 8.6-7.19 11.5a.98.98 0 0 1-1.34-.3zm3.94-7l-.67 1.17a14.42 14.42 0 0 1-3.4 3.84l.96 1.43a16.38 16.38 0 0 0 4.96-4.58A10.62 10.62 0 0 0 9 5.55a4 4 0 1 0-4.9 3.9l1.31.3z",stroke:"none"}))},e.PlagiarismPublication=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 16 16"},o.createElement("path",{d:"M16 5.528V16H2c-1.105 0-2-.895-2-2V3.5l.05.048C.017 3.37 0 3.188 0 3c0-1.657 1.343-3 3-3h12.5c.412 0 .647.47.4.8-.563.75-.838 1.482-.838 2.2 0 .718.275 1.45.838 2.2.076.102.107.217.1.328zM14.588 1H3c-1.105 0-2 .895-2 2s.895 2 2 2h11.588c-.348-.658-.525-1.326-.525-2 0-.674.177-1.342.525-2z",fillRule:"nonzero",fill:"#A6ADC9",stroke:"none"}))},e.Proofread=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 21"},o.createElement("path",{d:"M13.97 15.08c2.5 0 4.56-2.03 4.56-4.55 0-2.5-2.06-4.53-4.56-4.53-2.5 0-4.55 2.03-4.55 4.55 0 2.5 2.06 4.53 4.55 4.53zm-.62 7.9L14.3 24H7.58C6.17 24 5 22.84 5 21.43v-.7c0-2.82 2.2-5.2 5-5.4.14 0 .3.06.4.16.98.9 2.24 1.43 3.57 1.43 1.34 0 2.63-.52 3.58-1.44.1-.1.23-.17.38-.17 2.05.15 3.78 1.45 4.56 3.24l-.8.83c-.5-1.6-1.9-2.8-3.6-3-1.14 1-2.58 1.56-4.13 1.56-1.54 0-2.98-.54-4.1-1.57-2.17.27-3.84 2.12-3.84 4.33v.7c0 .85.7 1.54 1.54 1.54h5.78zm.62-15.95c1.93 0 3.53 1.57 3.53 3.52 0 1.93-1.57 3.52-3.53 3.52-1.92 0-3.52-1.56-3.52-3.52 0-1.95 1.6-3.52 3.52-3.52zm3.4 14.66l3.45 3.78 6.8-7.5c.2-.2.5-.2.72-.02.2.18.22.5.03.7l-7.18 7.9c-.2.22-.55.22-.75 0l-3.82-4.2c-.2-.2-.17-.52.03-.7.2-.2.52-.18.7.03z",transform:"translate(-5 -6)",stroke:"none"}))},e.ProofreadOutcomes=function(e){var t=e.className,n=e.width,r=void 0===n?23:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 23 23"},o.createElement("path",{transform:"translate(-6 -5)",stroke:"none",d:"M15.5 6A3.5 3.5 0 0 0 12 9.5v2a3.5 3.5 0 0 0 7 0v-2A3.5 3.5 0 0 0 15.5 6zm1.5 9.744c-.47.166-.974.256-1.5.256s-1.03-.09-1.5-.256v1.02A2.5 2.5 0 0 1 12.618 19l-4.236 2.118A2.5 2.5 0 0 0 7 23.354V24h5a.5.5 0 1 1 0 1H6.5a.5.5 0 0 1-.5-.5v-1.146a3.5 3.5 0 0 1 1.935-3.13l4.236-2.118A1.5 1.5 0 0 0 13 16.764v-1.522a4.496 4.496 0 0 1-2-3.742v-2a4.5 4.5 0 1 1 9 0v2c0 1.56-.794 2.935-2 3.742V16.7c0 .593.349 1.13.89 1.371l3.313 1.472a.5.5 0 0 1-.406.914l-3.312-1.472A2.5 2.5 0 0 1 17 16.7v-.956zm11.146 2.402a.5.5 0 0 1 .708.708l-9 9a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708l3.646 3.647 8.646-8.647z"}))},e.NewBadge=function(e){var t=e.className;return o.createElement("div",(0,i.__assign)({},(0,c.Sh)(J.newIcon,t)),o.createElement("div",{className:J.newIconCaption},"NEW"))},e.NewBadgeWrapper=function(t){var n=t.children;return o.createElement("div",null,o.createElement(e.NewBadge,null),n)},e.Exit=function(e){var t=e.className,n=e.width,r=void 0===n?14:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(J.exitIcon,t),{width:r,viewBox:"0 0 14 10"}),o.createElement("path",{d:"M8.08 0l4.96 4.96L8 10M1.08 0l4.96 4.96L1 10"}))},e.Arrow=function(e){var t=e.className,n=e.width,r=void 0===n?10:n,i=e.direction,a=void 0===i?d.down:i;return o.createElement(w,{className:t,width:r,viewBox:"0 0 10 10"},o.createElement("path",{d:"M5 4.3L.85.14c-.2-.2-.5-.2-.7 0-.2.2-.2.5 0 .7L5 5.7 9.85.87c.2-.2.2-.5 0-.7-.2-.2-.5-.2-.7 0L5 4.28z",stroke:"none",transform:"translate(".concat(v.get(a),") rotate(").concat(b.get(a),")")}))},e.ReverseArrow=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 12"},o.createElement("path",{d:"M5 0v1L2 4h11a4 4 0 0 1 0 8h-2a1 1 0 0 1 0-1h2a3 3 0 1 0 0-6H2l3 3v1L0 5l5-5z",stroke:"none"}))},e.Download=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 16 18"},o.createElement("path",{d:"M7.5 11.06V1c0-.27.22-.5.5-.5s.5.23.5.5v10.04l3.15-3.14c.2-.2.5-.2.7 0 .2.2.2.5 0 .7L8 12.97 3.64 8.62c-.2-.2-.2-.5 0-.7.2-.2.5-.2.7 0l3.15 3.14zm-7 2c0-.26.22-.5.5-.5s.5.24.5.5v2.95c0 .28.22.5.5.5h12c.28 0 .5-.22.5-.5v-3c0-.28.22-.5.5-.5s.5.22.5.5v3c0 .84-.67 1.5-1.5 1.5H2C1.2 17.5.5 16.84.5 16v-2.93z",stroke:"none"}))},e.Print=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 18"},o.createElement("path",{d:"M2.5 3.5V1c0-.28.22-.5.5-.5h12c.28 0 .5.22.5.5v2.5H17c.28 0 .5.22.5.5v8c0 .28-.22.5-.5.5h-1.5V17c0 .28-.22.5-.5.5H3c-.28 0-.5-.22-.5-.5v-4.5H1c-.28 0-.5-.22-.5-.5V4c0-.28.22-.5.5-.5h1.5zm0 8V8c0-.28.22-.5.5-.5h12c.28 0 .5.22.5.5v3.5h1v-7h-15v7h1zm1-3v8h11v-8h-11zm0-7v2h11v-2h-11zm2.5 10c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h6c.28 0 .5.22.5.5s-.22.5-.5.5H6zm0 3c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h4c.28 0 .5.22.5.5s-.22.5-.5.5H6z",stroke:"none"}))},e.Copy=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 18"},o.createElement("path",{d:"M13.5 7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h2.38c.9 0 1.62.73 1.62 1.62v7.76c0 .9-.73 1.62-1.62 1.62H8.12c-.9 0-1.62-.73-1.62-1.62V13.5c0-.28.22-.5.5-.5s.5.22.5.5v2.38c0 .34.28.62.62.62h7.76c.34 0 .62-.28.62-.62V8.12c0-.34-.28-.62-.62-.62H13.5zM.5 2C.5 1.17 1.18.5 2 .5h8c.83 0 1.5.68 1.5 1.5v8c0 .83-.68 1.5-1.5 1.5H2c-.83 0-1.5-.68-1.5-1.5V2zm1 0v8c0 .27.23.5.5.5h8c.27 0 .5-.23.5-.5V2c0-.27-.23-.5-.5-.5H2c-.27 0-.5.23-.5.5z",stroke:"none"}))},e.Share=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 18"},o.createElement("path",{d:"M15.7 5.45h-1.77c-4.33 0-7.85 3.5-7.85 7.83 0 .28-.22.5-.5.5-.27 0-.5-.22-.5-.5 0-4.88 3.97-8.83 8.85-8.83h1.84L12.6 1.28c-.2-.2-.2-.5 0-.7.2-.2.5-.2.7 0l4.35 4.34-4.36 4.36c-.2.2-.52.2-.7 0-.2-.2-.2-.5 0-.7l3.1-3.13zM.5 13.08c0-.28.22-.5.5-.5s.5.22.5.5v2.94c0 .27.22.5.5.5h12c.28 0 .5-.23.5-.5v-3c0-.3.22-.5.5-.5s.5.2.5.5v3c0 .82-.67 1.5-1.5 1.5H2C1.2 17.5.5 16.83.5 16v-2.94z",stroke:"none"}))},e.Stats=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 16 16"},o.createElement("path",{d:"M2.5 12h-1V5h1v7zm-1 0V5c0-.67 1-.67 1 0v7c0 .67-1 .67-1 0zm4 0V6c0-.67 1-.67 1 0v6c0 .67-1 .67-1 0zm4 0V4c0-.67 1-.67 1 0v8c0 .67-1 .67-1 0zm4 0V1.14c0-.67 1-.67 1 0V12c0 .67-1 .67-1 0zm-13 3.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h15c.28 0 .5.22.5.5s-.22.5-.5.5H.5z",stroke:"none"}))},e.Star=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.starIcon),{width:r,viewBox:"0 0 16 16"}),o.createElement("path",{d:"M6.65 10.8l-4.02 2.72L4.03 9c.08-.24 0-.5-.2-.65L-.03 5.5l4.86-.1c.24 0 .45-.16.53-.38l1.6-4.5 1.62 4.5c.08.22.3.38.54.38l4.85.1-3.85 2.85c-.2.15-.28.4-.2.64l1.4 4.52-4.02-2.7c-.2-.14-.46-.14-.65 0z",transform:"translate(1 1)",strokeLinejoin:"round"}))},e.Pin=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.pinIcon),{width:r,viewBox:"0 0 24 24"}),o.createElement("path",{d:"M15.3585 2.63085L21.3689 8.64126L21.1911 8.81909C20.5291 9.48107 19.5801 9.76841 18.6621 9.58481L18.3637 9.52514L15.005 12.8839L15.2839 13.7206C15.763 15.1579 15.3889 16.7426 14.3176 17.8139L14.1211 18.0104L5.98935 9.87869L6.18583 9.68222C7.25716 8.61089 8.84183 8.2368 10.2792 8.71591L11.1159 8.99481L14.4746 5.63605L14.415 5.3377C14.2314 4.41969 14.5187 3.47066 15.1807 2.80868L15.3585 2.63085Z",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.0557 13.9446L5.63625 18.364",strokeLinecap:"round"}))},e.New=function(e){var t=e.className,n=e.width,r=void 0===n?21:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 21 21"},o.createElement("path",{d:"M11 10h4c.14 0 .26.05.36.14.1.1.14.21.14.36s-.05.27-.14.36c-.1.1-.22.14-.36.14h-4v4c0 .15-.05.27-.14.36-.1.1-.21.15-.36.15a.49.49 0 0 1-.36-.15.49.49 0 0 1-.14-.35V11H6a.49.49 0 0 1-.36-.14.49.49 0 0 1-.14-.36c0-.15.05-.27.14-.36.1-.1.21-.14.36-.14h4V6c0-.15.05-.27.14-.36.1-.1.21-.14.36-.14s.27.04.36.14c.1.1.14.21.14.36v4zm-.5 11c-1.45 0-2.8-.28-4.08-.83a10.66 10.66 0 0 1-5.6-5.59A10.16 10.16 0 0 1 0 10.5c0-1.45.28-2.8.83-4.08A10.66 10.66 0 0 1 6.42.82C7.69.29 9.05 0 10.5 0c1.45 0 2.8.28 4.08.83a10.66 10.66 0 0 1 5.6 5.59c.54 1.27.82 2.63.82 4.08 0 1.45-.28 2.8-.83 4.08a10.66 10.66 0 0 1-5.59 5.6c-1.27.54-2.63.82-4.08.82zm0-1a9.35 9.35 0 0 0 6.72-2.78A9.35 9.35 0 0 0 20 10.5a9.35 9.35 0 0 0-2.78-6.72A9.35 9.35 0 0 0 10.5 1a9.35 9.35 0 0 0-6.72 2.78A9.35 9.35 0 0 0 1 10.5a9.35 9.35 0 0 0 2.78 6.72A9.35 9.35 0 0 0 10.5 20z",stroke:"none"}))},e.NewSmall=function(e){var t=e.className,n=e.width,r=void 0===n?14:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.newSmall),{fill:"none",width:r,viewBox:"0 0 14 14"}),o.createElement("path",{d:"M7 4.01v6m3-3H4m9 0a6 6 0 11-12 0 6 6 0 0112 0z",strokeLinecap:"round",strokeLinejoin:"round"}))},e.IdeasRecommended=function(e){var t=e.className,n=e.width,r=void 0===n?18:n,a=e.height,s=void 0===a?20:a;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.ideasRecommended),{fill:"none",width:r,height:s,viewBox:"0 0 18 20"}),o.createElement("path",{d:"M8.049.514a2 2 0 011.902 0L13.4 2.38l3.34 2.054a2 2 0 01.95 1.648L17.8 10l-.11 3.92a2 2 0 01-.95 1.647L13.4 17.62l-3.449 1.865a2 2 0 01-1.902 0L4.6 17.62l-3.34-2.054a2 2 0 01-.95-1.648L.2 10l.11-3.92a2 2 0 01.95-1.647L4.6 2.38 8.049.514z","data-figure":"bg"}),o.createElement("path",{d:"M4.507 13.472l2.574-3.379 2 1.5L11.5 8.5","data-figure":"arrow",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M14 5.02l.034 4.768a.3.3 0 01-.481.242l-4.246-3.2a.3.3 0 01.1-.528L14 5.019z","data-figure":"arrow_spire"}))},e.Dict=function(e){var t=e.className,n=e.width,r=void 0===n?17:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 17 21"},o.createElement("path",{d:"M1.5 15.26c.53-.47 1.23-.76 2-.76h9V10c0-.28.22-.5.5-.5s.5.22.5.5v5c0 .28-.22.5-.5.5H3.5c-1.1 0-2 .9-2 2s.9 2 2 2H13c.28 0 .5.22.5.5s-.22.5-.5.5H3.5c-1.66 0-3-1.34-3-3V5.14c0-.9.66-1.64 1.5-1.64h5c.28 0 .5.22.5.5s-.22.5-.5.5H2c-.26 0-.5.27-.5.64v10.12zm11-11.76V1c0-.28.22-.5.5-.5s.5.22.5.5v2.5H16c.28 0 .5.22.5.5s-.22.5-.5.5h-2.5V7c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.5H10c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h2.5zM3.5 18c-.28 0-.5-.22-.5-.5s.22-.5.5-.5H12c.28 0 .5.22.5.5s-.22.5-.5.5H3.5z",stroke:"none"}))},e.Ignore=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 19"},o.createElement("path",{d:"M5 3.5v-1c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2v1h4c.28 0 .5.22.5.5s-.22.5-.5.5h-1.53l-.8 11.2c-.12 1.58-1.42 2.8-3 2.8H6.33c-1.58 0-2.88-1.22-3-2.8l-.8-11.2H1C.72 4.5.5 4.28.5 4s.22-.5.5-.5h4zm-1.46 1l.8 11.14c.07 1.05.94 1.86 2 1.86h5.33c1.05 0 1.92-.8 2-1.86l.8-11.14H3.53zM6 2.5v1h6v-1c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1zM6.75 7c0-.28.22-.5.5-.5s.5.22.5.5v7.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V7zm3.5 0c0-.28.22-.5.5-.5s.5.22.5.5v7.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V7z",stroke:"none"}))};var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,n=e.className,r=e.width,i=void 0===r?16:r;return this._idSuffix=Boolean(this._idSuffix)?this._idSuffix:"megaphone_".concat(t._nextIdSuffix++),o.createElement(w,{className:n,width:i,viewBox:"0 0 20 20"},o.createElement("g",{stroke:"none"},o.createElement("path",{d:"M11.7797 14.3022C11.8035 15.2747 11.3069 16.2275 10.4041 16.74C9.50098 17.2518 8.42879 17.1893 7.60723 16.6709L6.49817 17.2993C7.31036 18.4503 9.43348 18.5122 10.9275 17.6637C12.4238 16.8153 13.4597 14.9609 12.8879 13.6731L11.7797 14.3022Z",fill:"url(#paint0_linear_".concat(this._idSuffix,")")}),o.createElement("path",{d:"M1.05347 16.3869C1.05347 16.3869 -0.102468 17.1307 1.38347 18.6169C2.87034 20.1032 3.61253 18.9457 3.61253 18.9457L1.05347 16.3869Z",fill:"url(#paint1_linear_".concat(this._idSuffix,")")}),o.createElement("path",{d:"M8.47503 1.60596L1.0569 16.335V16.336C0.530966 17.1469 2.85378 19.4728 3.66472 18.9431L18.3828 11.5322L8.47503 1.60596Z",fill:"url(#paint2_linear_".concat(this._idSuffix,")")}),o.createElement("path",{d:"M19.0434 10.9432L18.6446 11.3416C17.6243 12.3616 14.5634 10.9513 11.8065 8.19379C9.04868 5.43567 7.63837 2.37442 8.65712 1.35535L9.0565 0.956604L19.0434 10.9432Z",fill:"url(#paint3_linear_".concat(this._idSuffix,")")}),o.createElement("path",{d:"M15.8947 4.10531C18.6522 6.86281 20.0628 9.92437 19.0434 10.9431C18.024 11.9616 14.9625 10.5516 12.205 7.795C9.44716 5.03718 8.03716 1.975 9.05654 0.956558C10.0759 -0.062817 13.1359 1.34718 15.8947 4.10531Z",fill:"url(#paint4_radial_".concat(this._idSuffix,")")}),o.createElement("path",{d:"M12.2012 7.78905C14.1547 9.74311 16.2622 11.0203 17.6856 11.2356C17.4628 9.81124 16.1897 7.71374 14.2422 5.76655C12.2872 3.81155 10.1812 2.53593 8.75623 2.32062C8.98029 3.74437 10.2534 5.84218 12.2012 7.78905Z",fill:"url(#paint5_radial_".concat(this._idSuffix,")")}),o.createElement("defs",null,o.createElement("linearGradient",{id:"paint0_linear_".concat(this._idSuffix),x1:"10.9449",y1:"17.6538",x2:"9.67964",y2:"15.4623",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#FF2121"}),o.createElement("stop",{offset:"0.3304",stopColor:"#FC1F1F"}),o.createElement("stop",{offset:"0.5957",stopColor:"#F2181B"}),o.createElement("stop",{offset:"0.8377",stopColor:"#E10B13"}),o.createElement("stop",{offset:"1",stopColor:"#D1000B"})),o.createElement("linearGradient",{id:"paint1_linear_".concat(this._idSuffix),x1:"1.04497",y1:"16.3921",x2:"2.83903",y2:"19.4995",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#D9E0E4"}),o.createElement("stop",{offset:"0.2316",stopColor:"#D6DDE1"}),o.createElement("stop",{offset:"0.8311",stopColor:"#C2CACD"})),o.createElement("linearGradient",{id:"paint2_linear_".concat(this._idSuffix),x1:"3.91606",y1:"4.23768",x2:"10.6913",y2:"15.9728",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#FF2121"}),o.createElement("stop",{offset:"0.3304",stopColor:"#FC1F1F"}),o.createElement("stop",{offset:"0.5957",stopColor:"#F2181B"}),o.createElement("stop",{offset:"0.8377",stopColor:"#E10B13"}),o.createElement("stop",{offset:"1",stopColor:"#D1000B"})),o.createElement("linearGradient",{id:"paint3_linear_".concat(this._idSuffix),x1:"8.32606",y1:"6.31504",x2:"19.0435",y2:"6.31504",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#D9E0E4"}),o.createElement("stop",{offset:"0.2316",stopColor:"#D6DDE1"}),o.createElement("stop",{offset:"0.8311",stopColor:"#C2CACD"})),o.createElement("radialGradient",{id:"paint4_radial_".concat(this._idSuffix),cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(14.05 5.94975) scale(5.31209 10.6762)"},o.createElement("stop",{stopColor:"#D9E0E4"}),o.createElement("stop",{offset:"0.3011",stopColor:"#D6DDE1"}),o.createElement("stop",{offset:"0.5285",stopColor:"#C2CACD"}),o.createElement("stop",{offset:"0.7526",stopColor:"#A2AAAD"}),o.createElement("stop",{offset:"1",stopColor:"#A2AAAD"})),o.createElement("radialGradient",{id:"paint5_radial_".concat(this._idSuffix),cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(13.2208 6.77573) scale(4.45006 3.13017)"},o.createElement("stop",{stopColor:"#545061"}),o.createElement("stop",{offset:"0.2793",stopColor:"#464253"}),o.createElement("stop",{offset:"0.6105",stopColor:"#312D3D"}),o.createElement("stop",{offset:"0.7961",stopColor:"#211D2D"}),o.createElement("stop",{offset:"0.9556",stopColor:"#1A1626"})))))},t._nextIdSuffix=0,t}(o.Component);e.Megaphone=t,e.Mute=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 16 16"},o.createElement("path",{d:"M13.0202 3.68689C13.2155 3.49162 13.2155 3.17504 13.0202 2.97978C12.825 2.78452 12.5084 2.78452 12.3131 2.97978L13.0202 3.68689ZM2.97978 12.3131C2.78452 12.5084 2.78452 12.825 2.97978 13.0202C3.17504 13.2155 3.49162 13.2155 3.68689 13.0202L2.97978 12.3131ZM12.3131 2.97978L2.97978 12.3131L3.68689 13.0202L13.0202 3.68689L12.3131 2.97978ZM8 15.5C12.1421 15.5 15.5 12.1421 15.5 8H14.5C14.5 11.5899 11.5899 14.5 8 14.5V15.5ZM15.5 8C15.5 3.85786 12.1421 0.5 8 0.5V1.5C11.5899 1.5 14.5 4.41015 14.5 8H15.5ZM8 0.5C3.85786 0.5 0.5 3.85786 0.5 8H1.5C1.5 4.41015 4.41015 1.5 8 1.5V0.5ZM0.5 8C0.5 12.1421 3.85786 15.5 8 15.5V14.5C4.41015 14.5 1.5 11.5899 1.5 8H0.5Z",stroke:"none"}))},e.Report=function(e){var t=e.className,n=e.width,r=void 0===n?15:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 15 17"},o.createElement("path",{d:"M1.03 2.57V9.8h12.19l-2.96-3c-.2-.2-.2-.5-.02-.7l3.08-3.53H1.06h-.03zm0-1.04h13.43c.43 0 .67.53.38.86l-3.5 4 3.48 3.56c.32.33.1.88-.37.88H1.05h-.02v5.65c0 .27-.23.5-.5.5-.3 0-.53-.23-.53-.5V.5C0 .24.23 0 .52 0c.28 0 .5.23.5.5v1.03z",stroke:"none"}))},e.Expand=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 5"},o.createElement("path",{d:"M2.5 4.5c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm0-1c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm6.5 1c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm0-1c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm6.5 1c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm0-1c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1z",stroke:"none"}))},e.Reference=function(e){var t=e.className,n=e.width,r=void 0===n?13:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 13 19"},o.createElement("path",{d:"M3 2v1h7V2h1.5c.83 0 1.5.67 1.5 1.5v14c0 .83-.68 1.5-1.5 1.5h-10C.67 19 0 18.33 0 17.5v-14C0 2.67.68 2 1.5 2H3zm8.5 1h-10c-.27 0-.5.23-.5.5v14c0 .28.22.5.5.5h10c.27 0 .5-.23.5-.5v-14c0-.28-.22-.5-.5-.5zm-7.65 7.6l1.68 1.7 3.62-3.65c.2-.2.5-.2.7 0 .2.2.2.5 0 .7L5.53 13.7l-2.38-2.4c-.2-.2-.2-.5 0-.7.2-.2.5-.2.7 0zM9 3.5v-1c0-.56-.45-1-1-1H5c-.56 0-1 .44-1 1v1h5zm-6-1c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2V4c0 .28-.23.5-.5.5h-6c-.27 0-.5-.22-.5-.5V2.5z",transform:"translate(0 -.5)",stroke:"none"}))},e.Yes=function(e){var t=e.className,n=e.width,r=void 0===n?12:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.yesIcon),{width:r,viewBox:"0 0 12 10"}),o.createElement("path",{d:"M.54 4.35l2.98 3.12L9.46.53",fill:"none",fillRule:"evenodd",strokeLinecap:"round",transform:"translate(1 1)"}))},e.YesCircle=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.yesCircleIcon),{width:r,viewBox:"0 0 18 18"}),o.createElement("circle",{cx:"9",cy:"9",r:"8"}),o.createElement("polyline",{points:"5.5,10 8,12.5 13.5,7"}))},e.NoCircle=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.noCircleIcon),{width:r,viewBox:"0 0 18 18"}),o.createElement("circle",{cx:"9",cy:"9",r:"8"}),o.createElement("polyline",{points:"5.5,9 12.5,9"}))},e.ValidationOk=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 18"},o.createElement("circle",{cx:"9",cy:"9",r:"8",fill:"#15C39A",stroke:"#15C39A",strokeWidth:"1"}),o.createElement("polyline",{points:"5.5,10 8,12.5 13.5,7",fill:"none",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"}))},e.ValidationWarning=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 18"},o.createElement("circle",{cx:"9",cy:"9",r:"8",fill:"none",stroke:"#C6CBDE",strokeWidth:"2"}))},e.Controls=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 20 17"},o.createElement("path",{d:"M10 2a.5.5 0 000 1V2zm9 1a.5.5 0 000-1v1zM1 2a.5.5 0 000 1V2zm0 6a.5.5 0 000 1V8zm9 1a.5.5 0 000-1v1zm9 0a.5.5 0 000-1v1zm-7 5a.5.5 0 000 1v-1zm7 1a.5.5 0 000-1v1zM1 14a.5.5 0 000 1v-1zm9-11h9V2h-9v1zM1 3h4V2H1v1zm0 6h9V8H1v1zm14 0h4V8h-4v1zm-3 6h7v-1h-7v1zM1 15h6v-1H1v1zM7.5 2.5a1 1 0 01-1 1v1a2 2 0 002-2h-1zm-1 1a1 1 0 01-1-1h-1a2 2 0 002 2v-1zm-1-1a1 1 0 011-1v-1a2 2 0 00-2 2h1zm1-1a1 1 0 011 1h1a2 2 0 00-2-2v1zm8 7a1 1 0 01-1 1v1a2 2 0 002-2h-1zm-1 1a1 1 0 01-1-1h-1a2 2 0 002 2v-1zm-1-1a1 1 0 011-1v-1a2 2 0 00-2 2h1zm1-1a1 1 0 011 1h1a2 2 0 00-2-2v1zm-4 7a1 1 0 01-1 1v1a2 2 0 002-2h-1zm-1 1a1 1 0 01-1-1h-1a2 2 0 002 2v-1zm-1-1a1 1 0 011-1v-1a2 2 0 00-2 2h1zm1-1a1 1 0 011 1h1a2 2 0 00-2-2v1z",stroke:"none"}))},e.Checkmark=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,{width:r,className:t,viewBox:"0 0 33 32"},o.createElement("defs",null,o.createElement("polyline",{id:"path",points:"7.35 14.35 11.9839764 19.5363636 27.65 3.5"})),o.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(2, 2)"},o.createElement("circle",{id:"Oval",stroke:"#F1F2FA",strokeWidth:"3",cx:"14",cy:"14",r:"14"}),o.createElement("use",{stroke:"#15C39A",strokeWidth:"3",strokeLinecap:"round",xlinkHref:"#path"})))},e.CheckmarkAnimated=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,{width:r,className:t,viewBox:"0 0 33 32"},o.createElement("defs",null,o.createElement("polyline",{id:"path",points:"7.35 14.35 11.9839764 19.5363636 27.65 3.5"})),o.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(2, 2)"},o.createElement("circle",{className:J.circle,stroke:"#A6ADC9",strokeWidth:"1.5",cx:"14",cy:"14",r:"15",transform:"rotate(-240, 14, 14) scale(-1,1) translate(-28, 0)"}),o.createElement("use",{stroke:"#15C39A",className:J.checkmark,strokeWidth:"3",strokeLinecap:"round",xlinkHref:"#path"})))},e.CheckmarkOutcomes=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,{viewBox:"0 0 16 16",width:r,className:t},o.createElement("path",{stroke:"none",d:"M14.33083 3.1085L7.5 9.93935 5.03033 7.46967c-.2929-.2929-.76777-.2929-1.06066 0-.2929.2929-.2929.76777 0 1.06066L7.5 12.06066l7.65102-7.65102C15.69418 5.48934 16 6.70895 16 8c0 4.41828-3.58172 8-8 8s-8-3.58172-8-8 3.58172-8 8-8c2.576 0 4.86763 1.21752 6.33083 3.1085z"}))},e.Helpfull=function(e){var t=e.className,n=e.width,r=void 0===n?12:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 10 12"},o.createElement("path",{d:"M1.54 5.346L4.522 8.47l5.938-6.938",strokeWidth:"1.5",stroke:"#4C7AF1",fill:"none",fillRule:"evenodd",strokeLinecap:"round"}))},e.Close=function(t){var n=t.className,r=t.width,a=void 0===r?11:r;return o.createElement(e.Cross,(0,i.__assign)({},(0,c.Sh)(n,J.closeIcon),{width:a}))},e.Cross=function(e){var t=e.className,n=e.width,r=void 0===n?11:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 11 10"}),o.createElement("path",{d:"M1.1.5l7.06 7.07M8.16.5L1.1 7.57",fill:"none",fillRule:"evenodd",strokeLinecap:"round",transform:"translate(1 1)"}))},e.QuestionMark=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 16 16"}),o.createElement("circle",{cx:"8",cy:"8",r:"7",fill:"none"}),o.createElement("path",{d:"M7.402 10.175H8.51v-.056c.018-1.145.314-1.643 1.126-2.151.813-.494 1.293-1.205 1.293-2.225 0-1.44-1.053-2.493-2.678-2.493-1.495 0-2.682.923-2.751 2.493h1.163c.07-1.09.831-1.533 1.588-1.533.868 0 1.57.573 1.57 1.478 0 .734-.42 1.26-.96 1.588-.905.549-1.445 1.084-1.459 2.843v.056zm.59 2.733a.833.833 0 00.832-.831.833.833 0 00-.831-.831.833.833 0 00-.831.83c0 .458.374.832.83.832z",stroke:"none"}))},e.More=function(e){var t=e.className,n=e.width,r=void 0===n?4:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 4 16"}),o.createElement("path",{d:"M2 12.5a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm0-6a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm0-6a1.5 1.5 0 110 3 1.5 1.5 0 010-3z",fill:"none"}))},e.VoteYes=function(){var e,t,n,r=o.useContext(f.f.Context),i=null!==(e=r.disabled)&&void 0!==e?e:M.of(!1),a=null!==(t=r.hovered)&&void 0!==t?t:M.of(!1),s=null!==(n=r.active)&&void 0!==n?n:M.of(!1);return o.createElement(C,{className:J.voteYes},o.createElement(u.F.Fragment,null,m.aj([s,i,a]).pipe(l.U((function(e){var t=e[0],n=e[1],r=e[2];return o.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 24C20.4183 24 24 20.4183 24 16C24 11.5817 20.4183 8 16 8C11.5817 8 8 11.5817 8 16C8 20.4183 11.5817 24 16 24Z",stroke:"#9FA6BF"}),o.createElement("path",{d:t||!n&&r?"M13.0303 16.4697C12.7374 16.1768 12.2626 16.1768 11.9697 16.4697C11.6768 16.7626 11.6768 17.2374 11.9697 17.5303L13.0303 16.4697ZM15 19.5L14.4697 20.0303L15 20.5607L15.5303 20.0303L15 19.5ZM21.0303 14.5303C21.3232 14.2374 21.3232 13.7626 21.0303 13.4697C20.7374 13.1768 20.2626 13.1768 19.9697 13.4697L21.0303 14.5303ZM11.9697 17.5303L14.4697 20.0303L15.5303 18.9697L13.0303 16.4697L11.9697 17.5303ZM15.5303 20.0303L21.0303 14.5303L19.9697 13.4697L14.4697 18.9697L15.5303 20.0303Z":"M12.8536 16.6464C12.6583 16.4512 12.3417 16.4512 12.1464 16.6464C11.9512 16.8417 11.9512 17.1583 12.1464 17.3536L12.8536 16.6464ZM15 19.5L14.6464 19.8536L15 20.2071L15.3536 19.8536L15 19.5ZM20.8536 14.3536C21.0488 14.1583 21.0488 13.8417 20.8536 13.6464C20.6583 13.4512 20.3417 13.4512 20.1464 13.6464L20.8536 14.3536ZM12.1464 17.3536L14.6464 19.8536L15.3536 19.1464L12.8536 16.6464L12.1464 17.3536ZM15.3536 19.8536L20.8536 14.3536L20.1464 13.6464L14.6464 19.1464L15.3536 19.8536Z",fill:"#9FA6BF"}))})))))},e.VoteNo=function(){var e,t,n,r=o.useContext(f.f.Context),i=null!==(e=r.disabled)&&void 0!==e?e:M.of(!1),a=null!==(t=r.hovered)&&void 0!==t?t:M.of(!1),s=null!==(n=r.active)&&void 0!==n?n:M.of(!1);return o.createElement(C,{className:J.voteNo},o.createElement(u.F.Fragment,null,m.aj([s,i,a]).pipe(l.U((function(e){var t=e[0],n=e[1],r=e[2];return o.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 24C20.4183 24 24 20.4183 24 16C24 11.5817 20.4183 8 16 8C11.5817 8 8 11.5817 8 16C8 20.4183 11.5817 24 16 24Z",stroke:"#9FA6BF"}),o.createElement("path",{d:"M12.5 16H19.5",stroke:"#9FA6BF",strokeLinecap:"round",strokeWidth:t||!n&&r?"1.5":void 0}))})))))},e.OpenFeedbackFormArrow=function(){return o.createElement(C,{className:J.openFeedbackFormArrow},o.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M13.5 10.5L19 16L13.5 21.5",stroke:"#6D758D",strokeLinecap:"round"})))},function(e){e.Heart=function(e){var t=e.className;return o.createElement(C,{className:t},o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M7.99947 3.05348C5.87573 -0.570296 0 0.84483 0 5.39625C0 8.4491 2.71013 10.492 7.99947 15C13.2885 10.492 16 8.4491 16 5.39625C16 0.84483 10.1235 -0.570296 7.99947 3.05348Z",fill:"#A963DA"}),o.createElement("path",{d:"M7.24245 9.42687H8.64928V9.30067C8.65671 8.57684 8.91654 8.23905 9.50303 7.88641C10.1972 7.47439 10.65 6.92873 10.65 6.05642C10.65 4.75724 9.60325 4 8.12961 4C6.78217 4 5.68343 4.70527 5.65002 6.19005H7.1645C7.18677 5.585 7.63592 5.26206 8.12218 5.26206C8.6233 5.26206 9.0279 5.59614 9.0279 6.1121C9.0279 6.59837 8.67527 6.92131 8.2187 7.21084C7.59509 7.60431 7.24616 8.00149 7.24245 9.30067V9.42687ZM7.97371 11.8025C8.44884 11.8025 8.86086 11.4053 8.86458 10.9117C8.86086 10.4254 8.44884 10.0282 7.97371 10.0282C7.48373 10.0282 7.07913 10.4254 7.08284 10.9117C7.07913 11.4053 7.48373 11.8025 7.97371 11.8025Z",fill:"white"})))},e.ExternalLink=function(e){var t=e.className;return o.createElement(C,{className:t},o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M11 7.5H9.5C8.39543 7.5 7.5 8.39543 7.5 9.5V15.5C7.5 16.6046 8.39543 17.5 9.5 17.5H15.5C16.6046 17.5 17.5 16.6046 17.5 15.5V14M12.5 12.5L17.5 7.5M17.5 7.5H13.5M17.5 7.5V11.5",stroke:"white",strokeLinecap:"round"})))}}(e.EthicalAI||(e.EthicalAI={})),e.Gear=function(e){var t=e.className,n=e.width,r=void 0===n?24:n,a=e.enforceStroke;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 24 24"}),o.createElement("path",(0,i.__assign)({d:"M23 14.325h-1.997c-1.436 0-1.99 1.409-.998 2.401l1.413 1.413a.5.5 0 0 1 0 .707l-2.577 2.576a.5.5 0 0 1-.707 0l-1.414-1.414c-1.003-1.002-2.401-.382-2.401.994V23a.5.5 0 0 1-.5.5h-3.645a.5.5 0 0 1-.5-.5v-2c0-1.23-1.544-1.851-2.397-.998L5.86 21.418a.5.5 0 0 1-.707 0L2.578 18.84a.5.5 0 0 1 0-.707l1.417-1.417c1.067-1.067.477-2.398-.993-2.398H1a.5.5 0 0 1-.5-.5v-3.645a.5.5 0 0 1 .5-.5h2.003c1.29 0 1.908-1.484.996-2.397L2.582 5.861a.5.5 0 0 1 0-.707L5.16 2.577a.5.5 0 0 1 .707 0l1.416 1.416c.824.821 2.4.152 2.4-.994V1a.5.5 0 0 1 .5-.5h3.643a.5.5 0 0 1 .5.5v2c0 1.228 1.512 1.884 2.4.995l1.414-1.413a.5.5 0 0 1 .707 0l2.576 2.577a.5.5 0 0 1 0 .707l-1.413 1.413c-.94.94-.343 2.402.995 2.402H23a.5.5 0 0 1 .5.5v3.644a.5.5 0 0 1-.5.5zm-.5-3.644h-1.496c-2.232 0-3.27-2.542-1.702-4.109l1.06-1.06-1.87-1.869-1.06 1.06c-1.526 1.526-4.107.405-4.107-1.703V1.5h-2.644V3c0 2.03-2.647 3.154-4.106 1.701L5.512 3.638l-1.869 1.87L4.706 6.57c1.543 1.544.476 4.104-1.703 4.104H1.5v2.645h1.502c2.345 0 3.408 2.396 1.7 4.105l-1.064 1.064 1.87 1.869 1.062-1.062c1.479-1.48 4.104-.422 4.104 1.705v1.5h2.645v-1.498c0-2.251 2.464-3.345 4.108-1.7l1.06 1.06 1.87-1.87-1.06-1.058c-1.614-1.615-.632-4.109 1.706-4.109H22.5v-2.644zM12 16.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z"},null!==a&&void 0!==a&&a?{fill:"none"}:{stroke:"none"})))},e.Info=function(e){var t=e.className,n=e.width,r=void 0===n?13:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 13 13"},o.createElement("path",{d:"M6.5 12.5c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm0-1c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0-7c-.4 0-.75-.34-.75-.75 0-.4.34-.75.75-.75.4 0 .75.34.75.75 0 .4-.34.75-.75.75zM6 6c0-.28.22-.5.5-.5s.5.22.5.5v3.5c0 .28-.22.5-.5.5S6 9.78 6 9.5V6z",stroke:"none"}))},e.All=function(e){var t=e.className,n=e.width,r=void 0===n?25:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 25 13"},o.createElement("path",{d:"M1.35 6.37l4.82 4.82L16.44.92c.2-.2.5-.2.7 0 .2.2.2.5 0 .7L6.54 12.25c-.2.2-.52.2-.72 0L.65 7.08c-.2-.2-.2-.52 0-.7.2-.2.5-.2.7 0zM20 4.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h4.5c.28 0 .5.22.5.5s-.22.5-.5.5H20zm-3 3c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h4.5c.28 0 .5.22.5.5s-.22.5-.5.5H17zm-3 3c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h4.5c.28 0 .5.22.5.5s-.22.5-.5.5H14z",fillRule:"nonzero"}))},e.SynonymLoader=function(e){var t=e.className,n=e.width,r=void 0===n?14:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 14 14"},o.createElement("circle",{cx:"7",cy:"7",r:"6",stroke:"#A6ADC9",strokeWidth:"1",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeDasharray:"25,300",strokeLinejoin:"round"}))},e.Undo=function(e){var t=e.className,n=e.width,r=void 0===n?18:n,i=e.color,a=void 0===i?"#E4E6F2":i;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 12"},o.createElement("g",{fill:"none",stroke:a,strokeLinecap:"round"},o.createElement("path",{d:"M4.85498.551514l-3.5 3.49659 3.49435 3.50341"}),o.createElement("path",{d:"M2.00033 4h11.07438c2.03911 0 3.692136 1.534823 3.692136 3.41954 0 1.888558-1.65961 3.419538-3.692137 3.419538h-2.921497"})))},e.OuterLink=function(e){var t=e.className,n=e.width,r=void 0===n?12:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 12 11",fill:"none"},o.createElement("path",{d:"M4.5 0.5H3C1.89543 0.5 1 1.39543 1 2.5V8.5C1 9.60457 1.89543 10.5 3 10.5H9C10.1046 10.5 11 9.60457 11 8.5V7M6 5.5L11 0.5M11 0.5H7M11 0.5V4.5",strokeLinecap:"round"}))},e.NotificationError=function(e){var t=e.className,n=e.width,r=void 0===n?26:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 26 26"},o.createElement("g",{stroke:"none"},o.createElement("path",{fill:"#FF6C83",d:"M18.943355.651473l6.405172 6.405173c.375073.375072.585786.88378.585786 1.414213v9.05828c0 .530432-.210713 1.03914-.585786 1.414213l-6.405172 6.405172c-.375073.375073-.88378.585786-1.414214.585786H8.47086c-.530434 0-1.039142-.210712-1.414215-.585785l-6.405172-6.40517C.2764 18.56828.065687 18.059575.065687 17.52914V8.47086c0-.530434.210713-1.039142.585786-1.414215L7.056646.651473C7.431718.2764 7.940426.065687 8.47086.065687h9.05828c.530434 0 1.039142.210713 1.414215.585786z"}),o.createElement("g",{fill:"#FFF",transform:"translate(12 7)"},o.createElement("rect",{width:"2",height:"7",rx:"1"}),o.createElement("circle",{cx:"1",cy:"10.5",r:"1"}))))},e.NotificationWarning=function(e){var t=e.className,n=e.width,r=void 0===n?28:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 28 25"},o.createElement("g",{stroke:"none"},o.createElement("path",{fill:"#F6BC41",d:"M15.738773 1.693563l11.3456 19.98132c.5454.96053.20887 2.181324-.75166 2.726722-.301054.170942-.641327.26081-.98753.26081h-22.6912c-1.10457 0-2-.89543-2-2 0-.346203.089867-.686476.26081-.98753l11.3456-19.981323c.545397-.96053 1.766192-1.29706 2.72672-.75166.31377.17816.5735.43789.75166.75166z"}),o.createElement("g",{fill:"#FFF",transform:"translate(13 8)"},o.createElement("rect",{width:"2",height:"7",rx:"1"}),o.createElement("circle",{cx:"1",cy:"10.5",r:"1"}))))},e.NotificationInfo=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none"},o.createElement("circle",{cx:"12",cy:"12",r:"11.5",fill:"#00CDA3"}),o.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M7.54 12.81l3.343 3.5 6.657-7.78",strokeLinecap:"round"})))},e.GreenOk=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 32 32"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",stroke:"none",d:"M32 16c0 8.8366-7.1634 16-16 16-8.83656 0-16-7.1634-16-16C0 7.16344 7.16344 0 16 0c5.152 0 9.7353 2.43504 12.6617 6.21701L15 19.8787l-4.9393-4.9394c-.58583-.5857-1.53557-.5857-2.12136 0-.58579.5858-.58579 1.5356 0 2.1214L15 24.1213 30.302 8.81927C31.3884 10.9787 32 13.4179 32 16z",fill:"#15C39A"}))},e.OnboardingTriangle=function(e){var t=e.className,n=e.width,r=void 0===n?12:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 12 14"},o.createElement("path",{d:"M6 4l10 12H-4",fill:"#5A5F76",fillRule:"evenodd",fillOpacity:".97",stroke:"none"}))},e.Grammarly=function(e){var t=e.className,n=e.width,r=void 0===n?"100%":n,a=e.color,s=void 0===a?"#15C39A":a;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.gIcon),{width:r,viewBox:"0 0 24 24",dontScale:!0}),o.createElement("circle",{stroke:"none",fill:s,cx:"12",cy:"12",r:"11"}),o.createElement(A,{transform:"scale(.8) translate(6.75 6.5)"}))},e.GrammarlyUkraine=function(e){var t=e.className,n=e.width,r=void 0===n?"100%":n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.gIcon),{width:r,viewBox:"0 0 24 24",dontScale:!0}),o.createElement(_,{transform:"scale(.8) translate(6.75 6.5)"}))},e.GrammarlyInverse=function(e){var t=e.className,n=e.width,r=void 0===n?"100%":n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 64 64",dontScale:!0},o.createElement("path",{d:"M32 64a32 32 0 1 1 0-64 32 32 0 0 1 0 64zm6.3-27.66c-1.33 0-2.4 1.2-2.14 2.58.18 1.04 1.17 1.77 2.24 1.77h3.36l1.95-.26c-3.12 4.55-8.51 6.66-14.42 5.75-4.8-.76-8.95-4-10.69-8.56-3.95-10.33 3.6-20.19 13.4-20.19 5.13 0 9.6 3 12.18 6.6v.09a2.15 2.15 0 0 0 3.64-2.3h.02A18.84 18.84 0 0 0 30.7 13.2a18.95 18.95 0 0 0-17.46 17.7 18.7 18.7 0 0 0 18.79 19.79c5.64 0 10.69-2.47 14.15-6.45l-.42 2.29v2.05c0 1.07.73 2.06 1.77 2.24 1.38.26 2.58-.8 2.58-2.13V36.32H38.3v.02z",fill:"#FFF",stroke:"none"}))},e.Rank=function(e){var t=e.className,n=e.width,r=void 0===n?29:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 29 28"},o.createElement("g",{transform:"translate(1 -1)",fill:"none",fillRule:"evenodd"},o.createElement("path",{stroke:"#B0B9DB",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.73 21.53l8.02-9.18 7.65 4.6 8.02-8.42"}),o.createElement("path",{d:"M24.73 13.35c0-.2.17-.38.38-.38.22 0 .4.17.4.38v14.42c0 .2-.18.38-.4.38-.2 0-.37-.17-.37-.38V13.35zm-8 8c0-.2.17-.38.38-.38.22 0 .4.17.4.38v7.1c0 .2-.18.38-.4.38-.2 0-.37-.17-.37-.38v-7.1zm-7-4c0-.2.17-.38.38-.38.22 0 .4.17.4.38v10.92c0 .22-.18.4-.4.4-.2 0-.37-.18-.37-.4V17.35zm-8 7.85c0-.2.17-.38.38-.38.22 0 .4.17.4.38v2.9c0 .2-.18.38-.4.38-.2 0-.37-.17-.37-.38v-2.9zm0-23.85c0-.2.17-.38.38-.38.22 0 .4.17.4.38v14.42c0 .2-.18.38-.4.38-.2 0-.37-.17-.37-.38V1.35zm8 0c0-.2.17-.38.38-.38.22 0 .4.17.4.38v7.1c0 .2-.18.38-.4.38-.2 0-.37-.17-.37-.38v-7.1zm7 0c0-.2.17-.38.38-.38.22 0 .4.17.4.38v10.92c0 .22-.18.4-.4.4-.2 0-.37-.18-.37-.4V1.35zm8 0c0-.2.17-.38.38-.38.22 0 .4.17.4.38v2.9c0 .2-.18.38-.4.38-.2 0-.37-.17-.37-.38v-2.9z",fill:"#E4E6F2",fillRule:"nonzero"}),o.createElement("circle",{stroke:"#BAC1DD",fill:"#FFF",cx:"2.11",cy:"21.14",r:"1.91"}),o.createElement("circle",{stroke:"#BAC1DD",fill:"#FFF",cx:"9.75",cy:"12.73",r:"1.91"}),o.createElement("circle",{stroke:"#BAC1DD",fill:"#FFF",cx:"17.4",cy:"16.56",r:"1.91"}),o.createElement("circle",{stroke:"#BAC1DD",fill:"#FFF",cx:"24.85",cy:"8.91",r:"1.91"})))},e.Paid=function(e){var t=e.className,n=e.width,r=void 0===n?22:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 22 17"},o.createElement("path",{d:"M10.28 8h-.05c-.12 0-.23.07-.3.16l-4.8 5.28c-.18.18-.17.5 0 .66l10.1 10.1c.17.16.5.16.67 0L26 14.1c.16-.17.17-.48 0-.66l-4.8-5.28c-.1-.1-.22-.16-.36-.16H10.28zm.2.96H13l-2.05 4.32H6.55l3.94-4.32zm3.57 0h3.02l2.06 4.32H12l2.05-4.32zm4.08 0h2.5l3.94 4.32H20.2l-2.07-4.32zm-11.5 5.28h4.3l3.2 7.5-7.5-7.5zm5.33 0h7.2l-3.6 8.38-3.6-8.38zm8.24 0h4.3l-7.5 7.5 3.2-7.5z",transform:"translate(-5 -8)",fillRule:"nonzero",stroke:"none"}))},e.AssistantFeedback=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 32 32"},o.createElement("path",{d:"M10.667 20.343h.5v-.5h-.5v.5Zm3.555 0v-.5h-.166l-.133.1.3.4ZM10.667 23h-.5v.998l.799-.598-.3-.4ZM22 9.5H10v1h12v-1ZM7.5 12v6.343h1V12h-1Zm17 6.343V12h-1v6.343h1Zm-14.5 2.5h.667v-1H10v1Zm4.222 0H22v-1h-7.778v1Zm-4.055-.5V23h1v-2.657h-1Zm.799 3.058 3.556-2.658-.6-.8-3.555 2.656.599.802ZM23.5 18.343a1.5 1.5 0 0 1-1.5 1.5v1a2.5 2.5 0 0 0 2.5-2.5h-1Zm-16 0a2.5 2.5 0 0 0 2.5 2.5v-1a1.5 1.5 0 0 1-1.5-1.5h-1ZM10 9.5A2.5 2.5 0 0 0 7.5 12h1a1.5 1.5 0 0 1 1.5-1.5v-1Zm12 1a1.5 1.5 0 0 1 1.5 1.5h1A2.5 2.5 0 0 0 22 9.5v1ZM11 14h10v-1H11v1Zm0 3h10v-1H11v1Z",stroke:"none"}))},e.PaidSmall=function(e){var t=e.className,n=e.width,r=void 0===n?15:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 14 11"},o.createElement("path",{d:"M1 4.10345L3.52632 1H6.05263M1 4.10345L7 10M1 4.10345H4.47368M13 4.10345L10.4737 1H7.94737M13 4.10345L7 10M13 4.10345H9.21053M7 10L4.47368 4.10345M7 10L9.21053 4.10345M4.47368 4.10345H9.21053M4.47368 4.10345L6.05263 1M9.21053 4.10345L7.94737 1M7.94737 1H6.05263",strokeLinecap:"round",fill:"none",strokeLinejoin:"round"}))},e.PaidLink=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.diamondIcon),{width:r,viewBox:"0 0 20 16"}),o.createElement("path",{d:"M4.92.88h-.04a.45.45 0 0 0-.28.14L.18 5.88a.46.46 0 0 0 .02.6l9.27 9.27c.16.17.46.17.62 0l9.27-9.27a.46.46 0 0 0 .02-.6l-4.42-4.86a.45.45 0 0 0-.32-.14H4.92zm.2.88h2.3l-1.9 3.97H1.5l3.62-3.97zm3.27 0h2.78l1.89 3.97H6.5l1.9-3.97zm3.76 0h2.3l3.6 3.97h-4.01l-1.9-3.97zM1.58 6.6h3.94l2.95 6.9-6.9-6.9zm4.9 0h6.6l-3.3 7.7-3.3-7.7zm7.56 0h3.94l-6.89 6.9 2.95-6.9z"}))},function(e){e.TitleDiamond=function(e){var t=e.className;return o.createElement(C,{className:t},o.createElement("svg",{width:"16",height:"24",viewBox:"0 0 16 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#0E101A"},o.createElement("path",{d:"M2 11.1034L4.52632 8H7.05263M2 11.1034L8 17M2 11.1034H5.47368M14 11.1034L11.4737 8H8.94737M14 11.1034L8 17M14 11.1034H10.2105M8 17L5.47368 11.1034M8 17L10.2105 11.1034M5.47368 11.1034H10.2105M5.47368 11.1034L7.05263 8M10.2105 11.1034L8.94737 8M8.94737 8H7.05263",strokeLinecap:"round",strokeLinejoin:"round"})))},e.ButtonDiamond=function(){return o.createElement(C,null,o.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M7 14.5L10.7895 9.5H14.5789M7 14.5L16 24M7 14.5H12.2105M25 14.5L21.2105 9.5H17.4211M25 14.5L16 24M25 14.5H19.3158M16 24L12.2105 14.5M16 24L19.3158 14.5M12.2105 14.5H19.3158M12.2105 14.5L14.5789 9.5M19.3158 14.5L17.4211 9.5M17.4211 9.5H14.5789",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})))}}(e.UpgradeHookPanel||(e.UpgradeHookPanel={})),e.CitationStyle=function(e){var t=e.className,n=e.width,r=void 0===n?8:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 8 3"},o.createElement("path",{d:"M1 0l3 3 3-3",fill:"none",fillRule:"evenodd",strokeLinecap:"round"}))},e.Performance=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 32 32"},o.createElement("g",{stroke:"#A6ADC9",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{d:"M7 22l5-8.5 7 5.5 6-11"}),o.createElement("circle",{fill:"#FFF",cx:"7",cy:"22",r:"2"}),o.createElement("circle",{fill:"#FFF",cx:"12",cy:"13.5",r:"2"}),o.createElement("circle",{fill:"#FFF",cx:"19",cy:"19",r:"2"}),o.createElement("circle",{fill:"#FFF",cx:"25",cy:"8",r:"2"})))},e.GoalsEmpty=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 32 32"},o.createElement("g",{stroke:"#A6ADC9",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("circle",{cx:"16",cy:"16",r:"8"}),o.createElement("path",{d:"M9 27l2-4m12 4l-2-4m-5-7l9-9V4m0 3h3"}),o.createElement("circle",{cx:"16",cy:"16",r:"4"})))},e.GoalsPartial=function(e){var t=e.className,n=e.width,r=void 0===n?32:n,i=e.percentage,a=void 0===i?0:i;return o.createElement(w,{className:t,width:r,viewBox:"0 0 32 32"},o.createElement("circle",{stroke:"#F1F2FA",fill:"none",strokeWidth:"4",cx:"16",cy:"16",r:"7"}),o.createElement("circle",{stroke:"#A6ADC9",fill:"none",transform:"rotate(-90 16 16)",strokeDashoffset:2*Math.PI*7*(100-a)/100,strokeDasharray:"43.98 43.98",strokeWidth:"4",cx:"16",cy:"16",r:"7"}))},e.GoalsComplete=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 32 32"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("circle",{stroke:"#F1F2FA",strokeWidth:"4",cx:"16",cy:"16",r:"7"}),o.createElement("circle",{stroke:"#A6ADC9",strokeWidth:"4",transform:"matrix(1 0 0 -1 0 32)",cx:"16",cy:"16",r:"7"}),o.createElement("path",{d:"M9 27l2-4m12 4l-2-4m-5-7l9-9V4m0 3h3",stroke:"#A6ADC9",strokeLinecap:"round",strokeLinejoin:"round"})))},e.Align=function(e){var t=e.className,n=e.width,r=void 0===n?11:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 11 15"},o.createElement("path",{transform:"translate(-11.000000, -9.000000)",strokeWidth:"1",stroke:"none",fillRule:"nonzero",d:"M16,13.7426407 L13.3535534,16.3890873 C13.1582912,16.5843494 12.8417088,16.5843494 12.6464466,16.3890873 C12.4511845,16.1938252 12.4511845,15.8772427 12.6464466,15.6819805 L16.0533009,12.2751263 C16.1356181,12.1119288 16.3047379,12 16.5,12 C16.5059664,12 16.5119084,12.0001045 16.5178242,12.0003118 C16.6516221,11.9955992 16.7869515,12.0443108 16.8890873,12.1464466 L20.4802536,15.7376129 C20.6755158,15.9328751 20.6755158,16.2494576 20.4802536,16.4447197 C20.2849915,16.6399819 19.968409,16.6399819 19.7731468,16.4447197 L17,13.6715729 L17,23.5 C17,23.7761424 16.7761424,24 16.5,24 C16.2238576,24 16,23.7761424 16,23.5 L16,13.7426407 Z M11.5,10 C11.2238576,10 11,9.77614237 11,9.5 C11,9.22385763 11.2238576,9 11.5,9 L21.5,9 C21.7761424,9 22,9.22385763 22,9.5 C22,9.77614237 21.7761424,10 21.5,10 L11.5,10 Z"}))},e.ToolbarCreate=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.toolbarIcon),{width:r,viewBox:"0 0 20 20"}),o.createElement("g",{transform:"translate(1 1)",strokeWidth:"1"},o.createElement("circle",{cx:"9",cy:"9",r:"9"}),o.createElement("path",{d:"M9 3.375v11.25M3.375 9h11.25"})))},e.ToolbarDownload=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.toolbarIcon),{width:r,viewBox:"0 0 20 19"}),o.createElement("path",{strokeWidth:"1",d:"M10 .4886514v12.02026821M5 8.06180972l4.99384055 4.98770004 5.00615945-5M1 14.0773926v1.9329052c0 1.1045695.8954305 2 2 2h14c1.1045695 0 2-.8954305 2-2V14.006229"}))},e.SearchQuestion=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 17"},o.createElement("g",{transform:"translate(1 1)",stroke:"#A6ADC9",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{d:"M10.9 10.9l4.972 4.972"}),o.createElement("circle",{cx:"6",cy:"6",r:"6"})))},e.TriangleArrow=function(e){var t=e.className,n=e.width,r=void 0===n?10:n;return o.createElement(w,{viewBox:"0 0 50 50",className:t,width:r},o.createElement("polygon",{points:"6,40 23,14 40,40"}))},e.HideAssistantStatic=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,{viewBox:"0 0 42 26",className:t,width:r},o.createElement("path",{d:"M0 1h22M0 7h22M0 13h22M0 19h22M0 25h12",stroke:"#A5ACC8",strokeWidth:"2"}),o.createElement("path",{d:"M41.02 2v22a1 1 0 0 1-1 1h-10a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z",stroke:"#A5ACC8",fill:"none",strokeWidth:"2"}))},e.WordCounter=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,{viewBox:"0 0 19 17",className:t,width:r},o.createElement("path",{d:"M7 16h2v-2.1308594c0-.2763672.2236328-.5.5-.5.2763672 0 .5.2236328.5.5V16h2v-2.9404297c0-.2763672.2236328-.5.5-.5.2763672 0 .5.2236328.5.5V16h2v-2.1308593c0-.2763672.2236328-.5.5-.5.2763672 0 .5.2236328.5.5V16h2v-6H1v6h2v-2.1308594c0-.2763672.2236328-.5.5-.5.2763672 0 .5.2236328.5.5V16h2v-2.9404297c0-.2763672.2236328-.5.5-.5.2763672 0 .5.2236328.5.5V16zm-7 .4914443V9.5085557C0 9.2274595.2236328 9 .5 9h18c.2763672 0 .5.2274595.5.5085557v6.9828886C19 16.7725405 18.7763672 17 18.5 17H.5c-.2763672 0-.5-.2274595-.5-.5085557zM9.5 0L13 5H6l3.5-5z",fill:"#9FA6BF",fillRule:"evenodd",stroke:"none"}))},function(e){e.VerySatisfied=function(e){var t=e.width,n=void 0===t?24:t;return o.createElement(w,{className:J.emote,viewBox:"0 0 24 24",width:n},o.createElement("path",{d:"M7.75 9.84c-1.52 0-1.75 1.53-1.75.4 0-.96.47-2.8 1.75-2.8s1.75 1.84 1.75 2.8c0 1.13-.23-.4-1.75-.4zm8.5 0c-1.52 0-1.75 1.53-1.75.4 0-.96.47-2.8 1.75-2.8S18 9.28 18 10.24c0 1.13-.23-.4-1.75-.4zM12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zm0 2a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm-6.29-8.42a1 1 0 1 1 1.63-1.16A5.71 5.71 0 0 0 12 16.88c1.86 0 3.57-.92 4.66-2.46a1 1 0 0 1 1.63 1.16 7.7 7.7 0 0 1-6.29 3.3 7.7 7.7 0 0 1-6.29-3.3z"}))},e.Satisfied=function(e){var t=e.width,n=void 0===t?24:t;return o.createElement(w,{className:J.emote,viewBox:"0 0 24 24",width:n},o.createElement("path",{d:"M7.75 12a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5zm8.5 0a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5zM12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zm0 2a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm4.72-7.3A6.33 6.33 0 0 1 12 18.52c-1.93 0-3.53-.6-4.72-1.82a1 1 0 1 1 1.44-1.4c.79.81 1.86 1.22 3.28 1.22 1.42 0 2.5-.4 3.28-1.22a1 1 0 0 1 1.44 1.4z"}))},e.Neutral=function(e){var t=e.width,n=void 0===t?24:t;return o.createElement(w,{className:J.emote,viewBox:"0 0 24 24",width:n},o.createElement("path",{d:"M7.75 12a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5zm8.5 0a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5zM12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zm0 2a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm-3.5-7a1 1 0 1 1 0-2h7a1 1 0 1 1 0 2h-7z"}))},e.Unsatisfied=function(e){var t=e.width,n=void 0===t?24:t;return o.createElement(w,{className:J.emote,viewBox:"0 0 24 24",width:n},o.createElement("path",{d:"M7.75 12a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5zm8.5 0a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5zM12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zm0 2a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm4.47-8.14a1 1 0 1 1-.94 1.77A7.7 7.7 0 0 0 12 16.7c-1.21 0-2.44.35-3.54.93a1 1 0 0 1-.92-1.77A9.68 9.68 0 0 1 12 14.7c1.57 0 3.11.44 4.47 1.16z"}))},e.VeryUnsatisfied=function(e){var t=e.width,n=void 0===t?24:t;return o.createElement(w,{className:J.emote,viewBox:"0 0 24 24",width:n},o.createElement("path",{d:"M17.44 16.56a1 1 0 1 1-1.76.94C14.8 15.85 13.45 15 12 15c-1.46 0-2.84.86-3.7 2.5a1 1 0 1 1-1.77-.92C7.73 14.28 9.78 13 12 13c2.2 0 4.22 1.27 5.44 3.56zM7.75 12a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5zm8.5 0a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5zM12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zm0 2a12 12 0 1 1 0-24 12 12 0 0 1 0 24z"}))}}(e.Emote||(e.Emote={})),function(e){e.Head=function(e){var t=e.className,n=e.width,r=void 0===n?17:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 17 16"},o.createElement("path",{d:"M15.406 9l-2.737 15H11.5l2.737-15H8V8h14v1h-6.594zm4.54 15h-1.17l1.46-8H17v-1h8v1h-3.594l-1.46 8z",transform:"translate(-8 -8)",stroke:"none"}))},e.Bold=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("rect",{stroke:"none",fill:"none",width:"24",height:"24",rx:"4"}),o.createElement("path",{d:"M17 14.5c0 1.9329966-1.5670034 3.5-3.5 3.5H8V6h4.5C14.4329966 6 16 7.56700338 16 9.5c0 .7565678-.240051 1.4570687-.6481422 2.029492C16.3415826 12.1478064 17 13.2470124 17 14.5zM10 8v3h2.5c.8284271 0 1.5-.6715729 1.5-1.5 0-.82842712-.6715729-1.5-1.5-1.5H10zm0 5v3h3.5c.8284271 0 1.5-.6715729 1.5-1.5s-.6715729-1.5-1.5-1.5H10z",stroke:"none"}))},e.Italic=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("rect",{stroke:"none",fill:"none",width:"24",height:"24",rx:"4"}),o.createElement("path",{d:"M10.5827118 17l1.8181818-10H10V6h6v1h-2.5827118l-1.8181818 10H14v1H8v-1h2.5827118z",stroke:"none"}))},e.Underline=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("rect",{stroke:"none",fill:"none",width:"24",height:"24",rx:"4"}),o.createElement("path",{d:"M7.5 6h1v6.5c0 1.9329966 1.5670034 3.5 3.5 3.5s3.5-1.5670034 3.5-3.5V6h1v6.5c0 2.4852814-2.0147186 4.5-4.5 4.5-2.48528137 0-4.5-2.0147186-4.5-4.5V6zM6 20v-1h12v1H6z",stroke:"none"}))},e.Header1=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("rect",{stroke:"none",fill:"none",width:"24",height:"24",rx:"4"}),o.createElement("path",{d:"M6 11h5V6h1v12h-1v-6H6v6H5V6h1v5zm11.6477238-1.7272644V18h-1.0056809v-7.193175h-.0681817c-.1235794.2386362-.8394879.6477267-1.8409074.6477267v-.8863628c1.3465897 0 1.9730095-1.20596475 2.0284072-1.2954533h.8863628z",stroke:"none"}))},e.Header2=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("rect",{stroke:"none",fill:"none",width:"24",height:"24",rx:"4"}),o.createElement("path",{d:"M6 11h5V6h1v12h-1v-6H6v6H5V6h1v5zm7.9034082 7v-.7670447l2.8806791-3.1534061c1.0099422-1.1036921 1.4829531-1.7002825 1.4829531-2.5056794 0-.9204523-.7244311-1.4999986-1.6704529-1.4999986-1.0099422 0-1.6534075.6605107-1.6534075 1.6534075h-1.0056809c0-1.5340894 1.1633512-2.57386117 2.6931793-2.57386117 1.5340894 0 2.6249975 1.07386257 2.6249975 2.42045227 0 .9673286-.4431814 1.7173279-1.94318 3.3238604l-1.9602254 2.0965889v.0681818h4.0568143V18h-5.5056766z",stroke:"none"}))},e.Link=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("rect",{stroke:"none",fill:"none",width:"24",height:"24",rx:"4"}),o.createElement("path",{d:"M10.79289322 15.5355339c.19526214-.19526214.51184462-.19526216.70710678 0 .19526216.19526217.19526214.51184464 0 .70710679l-1.06066017 1.06066017c-1.17157288 1.17157287-3.07106785 1.17157284-4.24264069 0s-1.17157287-3.07106781 0-4.24264069l2.47487374-2.47487373c.97631074-.97631075 2.55922315-.97631075 3.5355339 0 .19526216.19526216.19526216.51184462 0 .70710678-.19526216.19526216-.51184462.19526216-.70710678 0-.58578642-.58578642-1.53553392-.58578642-2.12132034 0l-2.47487374 2.47487373c-.78104858.78104859-.78104858 2.04737854 0 2.82842713.78104859.78104858 2.04737854.78104858 2.82842713 0l1.06066017-1.06066017zm1.41421356-7.0710678c-.19526216.19526216-.51184464.19526214-.70710678 0-.19526214-.19526215-.19526216-.51184462 0-.70710679l1.06066017-1.06066017c1.17157284-1.17157284 3.07106785-1.17157284 4.24264069 0s1.17157284 3.07106785 0 4.24264069l-2.47487374 2.47487373c-.97631074.97631075-2.55922315.97631075-3.5355339 0-.19526216-.19526216-.19526216-.51184462 0-.70710678.19526216-.19526216.51184462-.19526216.70710678 0 .58578642.58578642 1.53553392.58578642 2.12132034 0l2.47487374-2.47487373c.78104858-.78104859.78104858-2.04737854 0-2.82842713-.78104859-.78104858-2.04737854-.78104858-2.82842713 0L12.20710678 8.4644661z",stroke:"none"}))},e.OrderedList=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("rect",{stroke:"none",fill:"none",width:"24",height:"24",rx:"4"}),o.createElement("path",{d:"M7.28569043 17H9v1H6v-.7643054c0-.2985079.13335599-.5814079.36361705-.7713733l1.45457443-1.2000239C7.933322 15.1693147 8 15.0278648 8 14.8786108V14.425c0-.234721-.19027898-.425-.425-.425H7.5c-.27614237 0-.5.2238576-.5.5v.5H6v-.5c0-.8284271.67157288-1.5 1.5-1.5h.075C8.36200577 13 9 13.6379942 9 14.425v.4536108c0 .4477619-.20003399.8721118-.54542557 1.1570599L7.28569043 17zM9 10v1H6v-1h1V7H6V6h2v4h1zm2.5-2c-.2761424 0-.5-.22385763-.5-.5 0-.27614237.2238576-.5.5-.5h7c.2761424 0 .5.22385763.5.5 0 .27614237-.2238576.5-.5.5h-7zm0 10c-.2761424 0-.5-.2238576-.5-.5s.2238576-.5.5-.5h7c.2761424 0 .5.2238576.5.5s-.2238576.5-.5.5h-7zm0-5c-.2761424 0-.5-.2238576-.5-.5s.2238576-.5.5-.5h7c.2761424 0 .5.2238576.5.5s-.2238576.5-.5.5h-7z",stroke:"none"}))},e.BulletList=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M10.5 8c-.2761424 0-.5-.22385763-.5-.5 0-.27614237.2238576-.5.5-.5h7c.2761424 0 .5.22385763.5.5 0 .27614237-.2238576.5-.5.5h-7zm-4 5.5c-.55228475 0-1-.4477153-1-1s.44771525-1 1-1 1 .4477153 1 1-.44771525 1-1 1zm0 5c-.55228475 0-1-.4477153-1-1s.44771525-1 1-1 1 .4477153 1 1-.44771525 1-1 1zm0-10c-.55228475 0-1-.44771525-1-1s.44771525-1 1-1 1 .44771525 1 1-.44771525 1-1 1zm4 9.5c-.2761424 0-.5-.2238576-.5-.5s.2238576-.5.5-.5h7c.2761424 0 .5.2238576.5.5s-.2238576.5-.5.5h-7zm0-5c-.2761424 0-.5-.2238576-.5-.5s.2238576-.5.5-.5h7c.2761424 0 .5.2238576.5.5s-.2238576.5-.5.5h-7z",stroke:"none"}))},e.Clear=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,width:r,viewBox:"0 0 24 24"},o.createElement("rect",{stroke:"none",fill:"none",width:"24",height:"24",rx:"4"}),o.createElement("path",{d:"M16.8328726 18L5.29441111 6h1.37271624L18.2055889 18h-1.3727163zm-5.7179705 0h-1.0214709l.953124-4.574995.8395651.8731477L11.1149021 18zm1.5097756-7.2469228l-.8395651-.87314768L12.3850979 7H9.01594957l-.96153846-1H18v1h-4.5934312l-.7818911 3.7530772z",stroke:"none"}))},e.Image=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,viewBox:"0 0 24 24",width:r,height:"24",fill:"none"},o.createElement("path",{d:"M19 6.25001L4.99999 6.25009C4.44771 6.25009 4 6.69781 4 7.25009V16.7577C4 17.31 4.44772 17.7577 5 17.7577H19C19.5523 17.7577 20 17.31 20 16.7577V7.25001C20 6.69772 19.5523 6.25 19 6.25001Z",stroke:"#6D758D"}),o.createElement("path",{d:"M20 13.7501L15.5 9.25008L10.5 14.2501L8.675 12.6578L4 16.9078",stroke:"#6D758D",strokeLinecap:"round"}),o.createElement("path",{d:"M7.8248 8.40776C8.52897 8.40776 9.0998 8.9786 9.0998 9.68276C9.0998 10.3869 8.52897 10.9578 7.8248 10.9578C7.12064 10.9578 6.5498 10.3869 6.5498 9.68276C6.5498 8.9786 7.12064 8.40776 7.8248 8.40776Z",fill:"#6D758D"}))}}(e.Formatting||(e.Formatting={})),e.Ellipsis=function(e){var t=e.className,n=e.width,r=void 0===n?10:n;return o.createElement(w,{className:t,width:r,viewBox:"-5 -1 10 2"},o.createElement("circle",{cx:"-4",cy:"0",r:"1",stroke:"none"}),o.createElement("circle",{cx:"0",cy:"0",r:"1",stroke:"none"}),o.createElement("circle",{cx:"4",cy:"0",r:"1",stroke:"none"}))},e.EllipsisSmall=function(e){var t=e.className,n=e.width,r=void 0===n?13:n;return o.createElement(w,{className:t,width:r,viewBox:"-6.5 -1.5 13 3"},o.createElement("circle",{cx:"-5",cy:"0",r:"1.5",stroke:"none"}),o.createElement("circle",{cx:"0",cy:"0",r:"1.5",stroke:"none"}),o.createElement("circle",{cx:"5",cy:"0",r:"1.5",stroke:"none"}))},function(t){t.ExpandMenu=function(e){var t=e.className,n=e.width,r=void 0===n?23:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 23 14"},o.createElement("path",{d:"M23 6.5L20 9V4l3 2.5zM.85 1C.65 1 .5.78.5.5S.66 0 .85 0h13.3c.2 0 .35.22.35.5s-.16.5-.35.5H.85zm0 12c-.2 0-.35-.22-.35-.5s.16-.5.35-.5h13.3c.2 0 .35.22.35.5s-.16.5-.35.5H.85zm0-6C.65 7 .5 6.78.5 6.5S.66 6 .85 6h13.3c.2 0 .35.22.35.5s-.16.5-.35.5H.85z",stroke:"none"}))},t.Collapse=function(e){var t=e.className,n=e.width,r=void 0===n?27:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 27 15"},o.createElement("path",{d:"M26 1a.5.5 0 0 0 0-1H7a.5.5 0 1 0 0 1h19zM0 7.5L3 10V5L0 7.5zM26 15a.5.5 0 1 0 0-1H7a.5.5 0 1 0 0 1h19zm0-7a.5.5 0 1 0 0-1H7a.5.5 0 1 0 0 1h19z",stroke:"none"}))},t.NewDocument=e.New,t.UploadFile=function(e){var t=e.className,n=e.width,r=void 0===n?21:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 21 20"},o.createElement("path",{d:"M10 1.7v12.8l.1.3.4.2c.1 0 .3 0 .4-.2l.1-.3V1.7l4.2 4.1.3.2c.1 0 .3 0 .3-.2l.2-.3c0-.1 0-.3-.2-.3l-5-5a.5.5 0 0 0-.7 0l-5 5a.5.5 0 0 0 0 .6l.4.2c.1 0 .3 0 .3-.2L10 1.7zM0 15.6l.1-.4.4-.1.4.1.1.4v1.9c0 .4.1.8.4 1 .3.4.7.5 1.1.5h16c.4 0 .8-.1 1-.4.4-.3.5-.7.5-1.1v-2l.1-.4.4-.1.4.1.1.4v2c0 .7-.2 1.3-.7 1.8-.5.5-1.1.7-1.8.7h-16c-.7 0-1.3-.2-1.8-.7-.5-.5-.7-1.1-.7-1.8v-2z",stroke:"none"}))},t.UndoGrey=e.ReverseArrow,t.Redo=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 12"},o.createElement("path",{d:"M5 0v1L2 4h11a4 4 0 0 1 0 8h-2a1 1 0 0 1 0-1h2a3 3 0 1 0 0-6H2l3 3v1L0 5l5-5z",transform:"matrix(-1 0 0 1 17 0)",stroke:"none"}))},t.Cut=function(e){var t=e.className,n=e.width,r=void 0===n?19:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 19 18"},o.createElement("path",{d:"M8.95 8.126L5.55.717a.5.5 0 0 1 .9-.434L9.5 6.927 12.55.283a.5.5 0 1 1 .9.434l-6.728 14.66a.507.507 0 0 1-.018.034 3.5 3.5 0 1 1 .092-2.592L8.95 8.126zM3.5 16.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zm6.439-6.22l.55-1.199 1.715 3.738A3.501 3.501 0 0 1 19 14a3.5 3.5 0 0 1-6.704 1.411.507.507 0 0 1-.018-.034l-2.34-5.098zM15.5 16.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z",stroke:"none"}))},t.Paste=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 24"},o.createElement("path",{d:"M4.05 2A2.5 2.5 0 0 1 6.5 0h2c1.2 0 2.22.86 2.45 2h2.55c.83 0 1.5.67 1.5 1.5v2.55a.5.5 0 1 1-1 0V3.5a.5.5 0 0 0-.5-.5H11v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3H1.5c-.28 0-.5.2-.5.45v16.1c0 .24.22.45.5.45H3a.5.5 0 1 1 0 1H1.5C.68 21 0 20.36 0 19.55V3.45C0 2.65.68 2 1.5 2h2.55zm5.95.57a.5.5 0 0 1 0-.13A1.5 1.5 0 0 0 8.5 1h-2C5.67 1 5 1.67 5 2.5V4h5V2.57zM6 9.5v13c0 .28.22.5.5.5h10a.5.5 0 0 0 .5-.5v-13a.5.5 0 0 0-.5-.5h-10a.5.5 0 0 0-.5.5zM16.5 8c.83 0 1.5.67 1.5 1.5v13c0 .83-.67 1.5-1.5 1.5h-10A1.5 1.5 0 0 1 5 22.5v-13C5 8.67 5.67 8 6.5 8h10zm-8 4a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3a.5.5 0 1 1 0-1h3a.5.5 0 1 1 0 1h-3z",stroke:"none"}))},t.PrintFile=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 20 19"},o.createElement("path",{d:"M4 .5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5V5h3.5c.28 0 .5.22.5.5v9a.5.5 0 0 1-.5.5H16v3.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V15H.5a.5.5 0 0 1-.5-.5v-9c0-.28.22-.5.5-.5H4V.5zM5 5h10V1H5v4zm-1 9V9.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5V14h3V6H1v8h3zm11-4H5v8h10v-8zm-8.5 2.5c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5zm0 3c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5z",stroke:"none"}))},t.FreeLabel=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 32 13"},o.createElement("rect",{fill:"#4A6EE0",width:"32",height:"13",rx:"2",stroke:"none"}),o.createElement("text",{fontFamily:"Helvetica",fontSize:"10",fontWeight:"bold",letterSpacing:"0.4761905",fill:"#FFFFFF",fontStyle:"normal",stroke:"none"},o.createElement("tspan",{x:"2.21265806",y:"10"},"FREE")))},t.PremiumLabel=function(e){var t=e.className,n=e.width,r=void 0===n?54:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 54 13"},o.createElement("rect",{fill:"#FAB712",width:"54",height:"13",rx:"2",stroke:"none"}),o.createElement("text",{fontFamily:"Helvetica",fontSize:"10",fontWeight:"bold",letterSpacing:"0.4761905",fill:"#FFFFFF",fontStyle:"normal",stroke:"none"},o.createElement("tspan",{x:"2.21265806",y:"10"},"PREMIUM")))},t.BusinessLabel=function(e){var t=e.className,n=e.width,r=void 0===n?59:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 59 13"},o.createElement("rect",{fill:"#15C39A",width:"59",height:"13",rx:"2",stroke:"none"}),o.createElement("text",{fontFamily:"Helvetica",fontSize:"10",fontWeight:"bold",letterSpacing:"0.4761905",fill:"#FFFFFF",fontStyle:"normal",stroke:"none"},o.createElement("tspan",{x:"2.21265806",y:"10"},"BUSINESS")))},t.AustralianFlag=function(e){var t=e.className,n=e.width,r=void 0===n?28:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 32 32"},o.createElement("g",{stroke:"none"},o.createElement("path",{d:"M24 16a8 8 0 0 1-16 0l8-8a8 8 0 0 1 8 8z",fill:"#006"}),o.createElement("path",{d:"M16 12.17V8a8 8 0 0 0-8 8h4.17v-2.35L14.52 16h1.46l.02-.02v-1.46l-2.35-2.35H16z",fill:"#F0F2FC"}),o.createElement("path",{d:"M12.02 9H16v2.1h-4.9V16H9v-3.98A8.09 8.09 0 0 1 12.02 9zM16 15.01V16l-3.85-3.85h.99L16 15.01z",fill:"#CE1331"}),o.createElement("path",{d:"M13 17.25l.5.99 1.1-.25-.5.99.9.68-1.11.24V21l-.89-.69-.89.69v-1.1L11 19.66l.9-.68-.5-.99 1.1.25.5-.99zM20 19l.25.49.55-.12-.25.48.45.34-.56.12v.54l-.44-.34-.45.34v-.54l-.55-.12.45-.34-.25-.48.55.12L20 19zm-2-4l.25.49.55-.12-.25.48.45.34-.56.12v.54l-.44-.34-.45.34v-.54l-.55-.12.45-.34-.25-.48.55.12L18 15zm2-3l.25.49.55-.12-.25.48.45.34-.56.12v.54l-.44-.34-.45.34v-.54l-.55-.12.45-.34-.25-.48.55.12L20 12zm2 2l.25.49.55-.12-.25.48.45.34-.56.12v.54l-.44-.34-.45.34v-.54l-.55-.12.45-.34-.25-.48.55.12L22 14zm-1.24 2.33l.18.51h.58l-.47.32.18.5-.47-.3-.47.3.18-.5-.47-.32h.58l.18-.5z",fill:"#F0F2FC"})))},t.CanadianFlag=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 16 16"},o.createElement("path",{d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z",fill:"#D8D8D8",stroke:"none"}),o.createElement("mask",{id:"canadian_flag_mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",stroke:"none"},o.createElement("path",{d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z",fill:"white"})),o.createElement("g",{mask:"url(#canadian_flag_mask0)"},o.createElement("path",{d:"M1.0061 -2H15.0061V18H1.0061V-2Z",fill:"#F0F2FC"}),o.createElement("path",{d:"M-5 -2H1.99903V18H-5V-2ZM14.001 -2H21V18H14.0048L14.001 -2ZM12.915 8.98304L10.5186 10.7764C10.4162 10.8513 10.372 10.9755 10.4063 11.0921L10.596 11.7198C10.187 11.6765 9.80774 11.6232 9.4317 11.5704C9.02819 11.5138 8.6284 11.4576 8.19955 11.4149C8.12987 11.4077 8.01759 11.5261 8.01759 11.605L8.07954 13.94H7.69239L7.80079 11.5978C7.80079 11.5225 7.6769 11.4149 7.60722 11.4149C7.15012 11.4594 6.73016 11.5184 6.31032 11.5775C5.95142 11.628 5.59261 11.6784 5.21078 11.7198L5.42371 11.0562C5.45299 10.943 5.40928 10.8243 5.31144 10.7513L2.915 8.95793L3.41055 8.74273C3.60803 8.67738 3.57745 8.57633 3.50898 8.35011C3.50228 8.32797 3.49522 8.30464 3.48798 8.28003L3.12406 7.04617L4.51779 7.31877C4.62573 7.33811 4.73222 7.27954 4.76556 7.18247L4.94365 6.60141L6.04702 7.7456C6.21349 7.92852 6.53095 7.92852 6.43416 7.50528L5.96184 5.20255L6.59289 5.50743C6.77098 5.5971 6.94907 5.61145 7.04973 5.45004L7.92081 3.94L8.78027 5.4608C8.88093 5.62221 9.05902 5.60786 9.23711 5.51819L9.86815 5.21331L9.39584 7.53039C9.31066 7.95363 9.62812 7.95363 9.78298 7.7707L10.8864 6.62651L11.0644 7.20757C11.0978 7.30464 11.2043 7.36322 11.3122 7.34387L12.7059 7.07128L12.342 8.30514C12.3348 8.32975 12.3277 8.35308 12.321 8.37521C12.2526 8.60144 12.222 8.70249 12.4195 8.76783L12.915 8.98304Z",fill:"#FF0000",stroke:"none"})))},t.GBFlag=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 16 16"},o.createElement("g",{stroke:"none"},o.createElement("circle",{fill:"#006",cx:"8",cy:"8",r:"8"}),o.createElement("path",{d:"M15.75 6a8.01 8.01 0 0 1 0 4h-4.13l2.79 2.79c-.6.8-1.36 1.5-2.22 2.02L10 12.62v3.13a8.01 8.01 0 0 1-4 0v-3.13l-2.2 2.2a8.04 8.04 0 0 1-2.2-2.03L4.37 10H.25a8.01 8.01 0 0 1 0-4h3.13l-2.2-2.2a8.04 8.04 0 0 1 2.03-2.2L6 4.37V.25a8.01 8.01 0 0 1 4 0v4.13l2.79-2.79c.8.6 1.5 1.36 2.02 2.22L12.62 6h3.13z",fill:"#F0F2FC"}),o.createElement("path",{d:"M14.1 13.17c-.32.38-.68.73-1.07 1.05L9 10.18v5.76a8.08 8.08 0 0 1-2 0v-5.01l-3.61 3.6c-.41-.28-.8-.61-1.14-.97L6.8 9H.06a8.08 8.08 0 0 1 0-2H5.1L1.47 3.38c.29-.41.62-.8.98-1.14L7 6.79V.06a8.08 8.08 0 0 1 2 0V6.1l4.19-4.19c.38.33.73.69 1.05 1.08L10.22 7h5.72a8.08 8.08 0 0 1 0 2h-6l4.17 4.17z",fill:"#CE1331"}),o.createElement("path",{d:"M15.94 7H9V.06c.34.04.67.1 1 .2V6h5.75c.08.33.15.66.19 1zM7 .06V7H.06c.04-.34.1-.67.2-1H6V.25c.33-.08.66-.15 1-.19zM15.94 9c-.04.34-.1.67-.2 1H10v5.75c-.33.08-.66.15-1 .19V9h6.94zM.06 9H7v6.94c-.34-.04-.67-.1-1-.2V10H.25a7.96 7.96 0 0 1-.19-1z",fill:"#F0F2FC"})))},t.USFlag=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 16 16"},o.createElement("g",{stroke:"none"},o.createElement("path",{d:"M2.7 2h10.6c.64.57 1.2 1.25 1.63 2H1.07c.44-.75.99-1.43 1.64-2zM.26 6h15.5c.16.64.25 1.3.25 2H0c0-.7.09-1.36.25-2zm0 4h15.5a7.95 7.95 0 0 1-.82 2H1.07a7.95 7.95 0 0 1-.82-2zm2.46 4h10.58a7.97 7.97 0 0 1-10.58 0z",fill:"#CE1331"}),o.createElement("path",{d:"M13.3 2H2.7a7.97 7.97 0 0 1 10.6 0zM1.06 4h13.86c.36.62.64 1.29.82 2H.25c.18-.71.46-1.38.82-2zM0 8h16c0 .7-.09 1.36-.25 2H.25A8.01 8.01 0 0 1 0 8zm1.07 4h13.86a8.04 8.04 0 0 1-1.64 2H2.71a8.04 8.04 0 0 1-1.64-2z",fill:"#F0F2FC"}),o.createElement("path",{d:"M8 0v8H0a8 8 0 0 1 8-8z",fill:"#006"}),o.createElement("path",{d:"M6.05 1.05l.22.7H7l-.59.42.23.68-.59-.42-.59.42.23-.69-.59-.42h.73l.22-.69zM4 2.8l.22.69h.73l-.59.42.22.7L4 4.18l-.59.42.22-.69-.58-.42h.72l.23-.7zM1.94 4.54l.23.7h.72l-.58.42.22.69-.59-.43-.58.43.22-.7L1 5.23h.72l.22-.69zm4.11 0l.22.7H7l-.59.42.23.69-.59-.43-.59.43.23-.7-.59-.42h.73l.22-.69z",fill:"#F0F2FC"})))},t.Home=function(e){var t=e.className,n=e.width,r=void 0===n?18:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 18 19"},o.createElement("path",{d:"M1 7.97V18.5a.5.5 0 1 1-1 0V7.74a.5.5 0 0 1 .18-.38L8.68.12a.5.5 0 0 1 .64 0l8.5 7.24c.12.1.18.23.18.38V18.5a.5.5 0 1 1-1 0V7.97L9 1.16l-8 6.8zM7 18.5a.5.5 0 1 1-1 0V13a3 3 0 0 1 6 0v5.5a.5.5 0 1 1-1 0V13a2 2 0 1 0-4 0v5.5z",stroke:"none"}))},t.Selected=function(e){var t=e.className,n=e.width,r=void 0===n?14:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 14 12"},o.createElement("path",{d:"M4.47 9.72l8.6-9.56a.4.4 0 0 1 .32-.16c.14 0 .26.04.36.13.1.1.16.22.17.35a.5.5 0 0 1-.1.36L4.5 11.16.16 6.66A.5.5 0 0 1 0 6.3a.4.4 0 0 1 .16-.33.5.5 0 0 1 .71 0l3.6 3.75z",stroke:"none",fill:"#4A6EE0"}))}}(e.DocumentSettings||(e.DocumentSettings={})),e.VotedUp=function(e){var t=e.className,n=e.width,r=void 0===n?14:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 14 12"},o.createElement("path",{d:"M18.38,7 L19.17,7.79 C19.37,8 19.5,8.28 19.5,8.59 L19.5,8.59 L19.48,8.82 L18.82,12 L23,12 C23.55,12 24,12.45 24,13 L24,13 L24,14.25 C24,14.44 23.96,14.63 23.89,14.8 L23.89,14.8 L21.63,19.09 C21.4,19.62 20.87,20 20.25,20 L20.25,20 L14.5,20 C13.67,20 13,19.33 13,18.5 L13,18.5 L13,13 C13,12.59 13.17,12.21 13.44,11.94 L13.44,11.94 L18.38,7 Z M11,12 C11.5522847,12 12,12.4477153 12,13 L12,19 C12,19.5522847 11.5522847,20 11,20 L10,20 C9.44771525,20 9,19.5522847 9,19 L9,13 C9,12.4477153 9.44771525,12 10,12 L11,12 Z",stroke:"none",transform:"translate(-9, -7)"}))},e.VotedDown=function(e){var t=e.className,n=e.width,r=void 0===n?16:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 16 13"},o.createElement("path",{d:"M18.38,7 L19.17,7.79 C19.37,8 19.5,8.28 19.5,8.59 L19.5,8.59 L19.48,8.82 L18.82,12 L23,12 C23.55,12 24,12.45 24,13 L24,13 L24,14.25 C24,14.44 23.96,14.63 23.89,14.8 L23.89,14.8 L21.63,19.09 C21.4,19.62 20.87,20 20.25,20 L20.25,20 L14.5,20 C13.67,20 13,19.33 13,18.5 L13,18.5 L13,13 C13,12.59 13.17,12.21 13.44,11.94 L13.44,11.94 L18.38,7 Z M11,12 C11.5522847,12 12,12.4477153 12,13 L12,19 C12,19.5522847 11.5522847,20 11,20 L10,20 C9.44771525,20 9,19.5522847 9,19 L9,13 C9,12.4477153 9.44771525,12 10,12 L11,12 Z",stroke:"none",transform:"translate(23, 20) scale(-1, -1)"}))},e.NoTone=function(e){var t=e.className,n=e.width,r=void 0===n?19:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 19 18"},o.createElement("g",{transform:"translate(2 2)",stroke:"#9FA6BF",fill:"none"},o.createElement("circle",{cx:"7.5",cy:"7.5",r:"7.5"}),o.createElement("circle",{fill:"#D8D8D8",cx:"4.5",cy:"5.5",r:"1"}),o.createElement("circle",{fill:"#D8D8D8",cx:"10.5",cy:"5.5",r:"1"}),o.createElement("path",{d:"M3.5 10.5l.571-.5A2.603 2.603 0 0 1 7.5 10a2.603 2.603 0 0 0 3.429 0l.571-.5"})))},e.ClarityOutcome=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.noStrokeIcon),{width:r,viewBox:"0 0 20 20",dontScale:!0}),o.createElement("path",{fill:"#B3D1FF",fillRule:"evenodd",d:"M10.1 15.9c3.3 0 6-2.7 6-6s-2.7-6-6-6-6 2.7-6 6 2.7 6 6 6z",clipRule:"evenodd",opacity:"0.6"}),o.createElement("path",{fill:"#548AFF",d:"M16.1 9.9c0 3.3-2.7 6-6 6s-6-2.7-6-6c0-.6.1-1.2.3-1.8 1.7-.8 3.9-.5 5.2 1l.1.1c1.5 1.8 4.2 2 6 .5l.4-.4v.6z"}))},e.PlagiarismOutcome=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.noStrokeIcon),{width:r,viewBox:"0 0 20 20",dontScale:!0}),o.createElement("path",{fill:"#5CDAE6",d:"M7.8 9.1c0-.8.7-1.5 1.5-1.5h5.2c.8 0 1.5.7 1.5 1.5v5.2c0 .8-.7 1.5-1.5 1.5H9.3c-.8 0-1.5-.7-1.5-1.5V9.1z"}),o.createElement("path",{fill:"#99F7FF",d:"M4.1 5.4c0-.8.7-1.5 1.5-1.5h5.2c.8 0 1.5.7 1.5 1.5v5.2c0 .8-.7 1.5-1.5 1.5H5.6c-.8 0-1.5-.7-1.5-1.5V5.4z"}),o.createElement("path",{fill:"#79E8F2",fillRule:"evenodd",d:"M12.3 7.6v3c0 .8-.7 1.5-1.5 1.5h-3v-3c0-.8.7-1.5 1.5-1.5h3z",clipRule:"evenodd"}))},e.DeliveryOutcome=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.noStrokeIcon),{width:r,viewBox:"0 0 20 20",dontScale:!0}),o.createElement("path",{fill:"#E8C7FF",fillRule:"evenodd",d:"M10.1 15.9c3.3 0 6-2.7 6-6s-2.7-6-6-6-6 2.7-6 6 2.7 6 6 6z",clipRule:"evenodd"}),o.createElement("path",{fill:"#D29CFA",fillRule:"evenodd",d:"M10.1 15.9c2.5 0 4.5-2 4.5-4.5s-2-4.5-4.5-4.5-4.5 2-4.5 4.5 2 4.5 4.5 4.5z",clipRule:"evenodd"}),o.createElement("path",{fill:"#BC78ED",fillRule:"evenodd",d:"M10.1 15.9c1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3 1.3 3 3 3z",clipRule:"evenodd"}))},e.EngagementOutcome=function(e){var t=e.className,n=e.width,r=void 0===n?20:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.noStrokeIcon),{width:r,viewBox:"0 0 20 20",dontScale:!0}),o.createElement("path",{fill:"#B9F9EA",fillRule:"evenodd",d:"M10.1 15.9c3.3 0 6-2.7 6-6s-2.7-6-6-6-6 2.7-6 6 2.7 6 6 6z",clipRule:"evenodd"}),o.createElement("path",{fill:"#0FDCAC",fillRule:"evenodd",d:"M10.1 11.4c2.1 0 3.8-1.7 3.8-3.7s-1.7-3.8-3.8-3.8-3.7 1.7-3.7 3.7 1.6 3.8 3.7 3.8zm0 4.5c2.1 0 3.8-1.7 3.8-3.8s-1.7-3.8-3.8-3.8-3.8 1.7-3.8 3.8 1.7 3.8 3.8 3.8z",clipRule:"evenodd"}),o.createElement("path",{fill:"#C0F9EC",fillRule:"evenodd",d:"M13.1 9.9c-.7.9-1.8 1.5-3 1.5s-2.3-.6-3-1.5c.7-.9 1.8-1.5 3-1.5s2.3.6 3 1.5z",clipRule:"evenodd"}))},e.Sparkles=function(e){var t=e.className,n=e.width,r=void 0===n?32:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.noStrokeIcon),{width:r,viewBox:"0 0 32 32"}),o.createElement("path",{fill:"url(#sparkles_paint0_linear)",d:"M11.5 2C10.6 12.11 8.75 13.93 1 15c7.75 1.07 9.6 2.89 10.5 13 .9-10.11 2.75-11.93 10.5-13-7.75-1.07-9.6-2.89-10.5-13z"}),o.createElement("path",{fill:"url(#sparkles_paint1_linear)",d:"M25 1c-.52 5.06-1.57 5.97-6 6.5 4.43.53 5.48 1.44 6 6.5.52-5.06 1.57-5.97 6-6.5-4.43-.53-5.48-1.44-6-6.5z"}),o.createElement("path",{fill:"url(#sparkles_paint2_linear)",d:"M22 18c-.52 5.06-1.57 5.97-6 6.5 4.43.53 5.48 1.44 6 6.5.52-5.06 1.57-5.97 6-6.5-4.43-.53-5.48-1.44-6-6.5z"}),o.createElement("defs",null,o.createElement("linearGradient",{id:"sparkles_paint0_linear",x1:"11.5",x2:"11.5",y1:"27.99",y2:"1.99",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#F90"}),o.createElement("stop",{offset:".02",stopColor:"#FF9C03"}),o.createElement("stop",{offset:".27",stopColor:"#FFB91D"}),o.createElement("stop",{offset:".52",stopColor:"#FFCE31"}),o.createElement("stop",{offset:".77",stopColor:"#FFDB3C"}),o.createElement("stop",{offset:"1",stopColor:"#FFDF40"})),o.createElement("linearGradient",{id:"sparkles_paint1_linear",x1:"25",x2:"25",y1:"14",y2:"1",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#6FAD00"}),o.createElement("stop",{offset:".04",stopColor:"#73B202"}),o.createElement("stop",{offset:".26",stopColor:"#87CC0F"}),o.createElement("stop",{offset:".49",stopColor:"#96DE17"}),o.createElement("stop",{offset:".73",stopColor:"#9EE91C"}),o.createElement("stop",{offset:"1",stopColor:"#A1ED1E"})),o.createElement("linearGradient",{id:"sparkles_paint2_linear",x1:"22",x2:"22",y1:"31",y2:"18",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#7D0C7A"}),o.createElement("stop",{offset:".09",stopColor:"#930C90"}),o.createElement("stop",{offset:".25",stopColor:"#B30DAE"}),o.createElement("stop",{offset:".42",stopColor:"#CC0DC6"}),o.createElement("stop",{offset:".59",stopColor:"#DD0ED8"}),o.createElement("stop",{offset:".78",stopColor:"#E80EE2"}),o.createElement("stop",{offset:"1",stopColor:"#EB0EE5"}))))},e.Feedback=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 24 22",fill:"none"}),o.createElement("path",{d:"M6.983 15.53H3.48L2.5 12.01l16-10.5 4 14.02h-9m-6.517 0H13.5m-6.517 0l.23 1.322a2 2 0 001.97 1.658h2.454a2 2 0 001.972-2.331l-.109-.65",strokeLinejoin:"round"}))},e.Goals=function(e){var t=e.className,n=e.width,r=void 0===n?23:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 23 26",fill:"none"}),o.createElement("path",{d:"M9 14.01l7.5-7.5m0 0v-3.5m0 3.5H20m-1.5-5.5v3.5H22M10.5 9.766a4.5 4.5 0 102.744 2.744m2.968-3a8.46 8.46 0 011.288 4.5 8.499 8.499 0 01-4.496 7.5M13.5 6.797A8.5 8.5 0 104.996 21.51M3 25.01l1.996-3.5m0 0c1.193.639 2.556 1 4.004 1 1.447 0 2.81-.361 4.004-1M15 25.01l-1.996-3.5",strokeLinecap:"round"}))},e.Correctness=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.noStrokeIcon),{width:r,viewBox:"0 0 24 24",fill:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m6.75 6.926 5.113-1.676 5.113 1.676v3.45a8.64 8.64 0 0 1-3.164 6.684l-1.949 1.597-1.95-1.597a8.64 8.64 0 0 1-3.163-6.683V6.926Z",fill:"#FFC8D2"}),o.createElement("g",{filter:"url(#a)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.863 5.25v13.407l-1.95-1.597a8.64 8.64 0 0 1-3.163-6.683V6.926l5.113-1.676Z",fill:"#EE445F"})),o.createElement("defs",null,o.createElement("filter",{id:"a",x:"1.75",y:".25",width:"15.113",height:"23.407",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.createElement("feOffset",null),o.createElement("feGaussianBlur",{stdDeviation:"2.5"}),o.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),o.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),o.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}))))},e.Sensitivity=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t,J.noStrokeIcon),{width:r,viewBox:"0 0 24 25",dontScale:!0}),o.createElement("path",{d:"M11.9995 7.05738C9.87573 3.43361 4 4.84874 4 9.40015C4 12.453 6.71013 14.4959 11.9995 19.0039C17.2885 14.4959 20 12.453 20 9.40015C20 4.84874 14.1235 3.43361 11.9995 7.05738Z",fill:"#A963DA"}),o.createElement("path",{d:"M11.2423 13.4308H12.6492V13.3046C12.6566 12.5807 12.9164 12.243 13.5029 11.8903C14.197 11.4783 14.6499 10.9326 14.6499 10.0603C14.6499 8.76114 13.6031 8.00391 12.1295 8.00391C10.782 8.00391 9.68331 8.70918 9.6499 10.194H11.1644C11.1867 9.58891 11.6358 9.26597 12.1221 9.26597C12.6232 9.26597 13.0278 9.60005 13.0278 10.116C13.0278 10.6023 12.6751 10.9252 12.2186 11.2147C11.595 11.6082 11.246 12.0054 11.2423 13.3046V13.4308ZM11.9736 15.8064C12.4487 15.8064 12.8607 15.4093 12.8645 14.9156C12.8607 14.4293 12.4487 14.0321 11.9736 14.0321C11.4836 14.0321 11.079 14.4293 11.0827 14.9156C11.079 15.4093 11.4836 15.8064 11.9736 15.8064Z",fill:"white"}))},e.ExternalLink=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,fill:"none",viewBox:"0 0 24 25"},o.createElement("path",{d:"M11 7.50391H9.5C8.39543 7.50391 7.5 8.39934 7.5 9.50391V15.5039C7.5 16.6085 8.39543 17.5039 9.5 17.5039H15.5C16.6046 17.5039 17.5 16.6085 17.5 15.5039V14.0039M12.5 12.5039L17.5 7.50391M17.5 7.50391H13.5M17.5 7.50391V11.5039",stroke:"white",strokeLinecap:"round"}))},e.StyleGuideRule=function(e){var t=e.className,n=e.width,r=void 0===n?23:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 18 18",fill:"none"}),o.createElement("path",{d:"M9.05637 8.99999C9.05637 8.99999 10.3527 12.8891 7.76 15.4818C5.16728 18.0745 1.27819 16.7782 1.27819 16.7782C1.27819 16.7782 0.521981 14.5095 1.31982 12.2825M9.05637 8.99999C9.05637 8.99999 7.76002 5.11092 10.3527 2.51819C12.9455 -0.0745306 16.8346 1.22183 16.8346 1.22183C16.8346 1.22183 17.7553 3.98399 16.493 6.40455M9.05637 8.99999C9.05637 8.99999 12.9454 7.70366 15.5382 10.2964C18.1309 12.8891 16.8345 16.7782 16.8345 16.7782C16.8345 16.7782 14.3503 17.6063 12.0291 16.6151M9.05637 8.99999C9.05637 8.99999 5.16732 10.2963 2.57459 7.70361C-0.0181346 5.11088 1.27823 1.2218 1.27823 1.2218C1.27823 1.2218 4.0679 0.291905 6.497 1.58237",stroke:"white",strokeLinecap:"round"}))},e.Draggable=function(e){var t=e.className,n=e.width,r=void 0===n?23:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 24 24",fill:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7C10.5523 7 11 6.55228 11 6C11 5.44772 10.5523 5 10 5C9.44772 5 9 5.44772 9 6C9 6.55228 9.44772 7 10 7ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11ZM11 14C11 14.5523 10.5523 15 10 15C9.44772 15 9 14.5523 9 14C9 13.4477 9.44772 13 10 13C10.5523 13 11 13.4477 11 14ZM10 19C10.5523 19 11 18.5523 11 18C11 17.4477 10.5523 17 10 17C9.44772 17 9 17.4477 9 18C9 18.5523 9.44772 19 10 19ZM15 6C15 6.55228 14.5523 7 14 7C13.4477 7 13 6.55228 13 6C13 5.44772 13.4477 5 14 5C14.5523 5 15 5.44772 15 6ZM14 11C14.5523 11 15 10.5523 15 10C15 9.44772 14.5523 9 14 9C13.4477 9 13 9.44772 13 10C13 10.5523 13.4477 11 14 11ZM15 14C15 14.5523 14.5523 15 14 15C13.4477 15 13 14.5523 13 14C13 13.4477 13.4477 13 14 13C14.5523 13 15 13.4477 15 14ZM14 19C14.5523 19 15 18.5523 15 18C15 17.4477 14.5523 17 14 17C13.4477 17 13 17.4477 13 18C13 18.5523 13.4477 19 14 19Z",fill:"#9FA6BF"}))},e.StyleGuide=function(e){var t=e.className,n=e.width,r=void 0===n?28:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 28 28",fill:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1905 13.1904C10.0251 13.6474 7.60727 13.0407 5.93684 11.3703C4.26641 9.69985 3.65971 7.28197 4.11673 4.11664C7.28205 3.65962 9.69993 4.26633 11.3704 5.93676C13.0408 7.60719 13.6762 10.2184 13.1905 13.1904Z",fill:"url(#paint0_linear_3375_16826)",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.8828 4.11678C24.3398 7.28211 23.7331 9.69999 22.0627 11.3704C20.3922 13.0408 17.9744 13.6476 14.809 13.1905C14.352 10.0252 14.9587 7.60733 16.6291 5.9369C18.2996 4.26647 20.9108 3.63103 23.8828 4.11678Z",fill:"url(#paint1_linear_3375_16826)",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.8095 14.8095C17.9749 14.3525 20.3927 14.9592 22.0632 16.6296C23.7336 18.3 24.3403 20.7179 23.8833 23.8832C20.7179 24.3403 18.3001 23.7335 16.6296 22.0631C14.9592 20.3927 14.3238 17.7815 14.8095 14.8095Z",fill:"url(#paint2_linear_3375_16826)",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11723 23.8832C3.66021 20.7179 4.26691 18.3 5.93734 16.6296C7.60777 14.9592 10.0256 14.3525 13.191 14.8095C13.648 17.9748 13.0413 20.3927 11.3709 22.0631C9.70042 23.7335 7.08924 24.369 4.11723 23.8832Z",fill:"url(#paint3_linear_3375_16826)",stroke:"none"}),o.createElement("defs",null,o.createElement("linearGradient",{id:"paint0_linear_3375_16826",x1:"13.37",y1:"10.2199",x2:"3.92",y2:"10.2199",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#D2E3FF"}),o.createElement("stop",{offset:"1",stopColor:"#548AFF"})),o.createElement("linearGradient",{id:"paint1_linear_3375_16826",x1:"14.6295",y1:"7.07003",x2:"24.0795",y2:"7.07002",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#FFD0D8"}),o.createElement("stop",{offset:"1",stopColor:"#EE445F"})),o.createElement("linearGradient",{id:"paint2_linear_3375_16826",x1:"14.63",y1:"17.78",x2:"24.08",y2:"17.78",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#ECD1FF"}),o.createElement("stop",{offset:"1",stopColor:"#BC78ED"})),o.createElement("linearGradient",{id:"paint3_linear_3375_16826",x1:"14.0004",y1:"20.93",x2:"4.55039",y2:"20.93",gradientUnits:"userSpaceOnUse"},o.createElement("stop",{offset:"0.195885",stopColor:"#CAFAEF"}),o.createElement("stop",{offset:"1",stopColor:"#0FDCAC"}))))},e.StyleGuideWhite=function(e){var t=e.className,n=e.width,r=void 0===n?23:n;return o.createElement(w,(0,i.__assign)({},(0,c.Sh)(t),{width:r,viewBox:"0 0 18 18",fill:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.53741 7.53742C5.72866 7.79857 4.34701 7.45188 3.39248 6.49735C2.43795 5.54282 2.09126 4.16118 2.35242 2.35242C4.16117 2.09127 5.54282 2.43795 6.49735 3.39249C7.45188 4.34702 7.81499 5.83912 7.53741 7.53742Z",fill:"white",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6472 2.35248C13.9083 4.16124 13.5616 5.54288 12.6071 6.49741C11.6526 7.45195 10.2709 7.79863 8.46217 7.53748C8.20101 5.72872 8.5477 4.34708 9.50223 3.39255C10.4568 2.43802 11.9489 2.07491 13.6472 2.35248Z",fill:"white",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.46259 8.46258C10.2713 8.20143 11.653 8.54812 12.6075 9.50265C13.562 10.4572 13.9087 11.8388 13.6476 13.6476C11.8388 13.9087 10.4572 13.562 9.50265 12.6075C8.54812 11.653 8.18501 10.1609 8.46259 8.46258Z",fill:"white",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.35284 13.6475C2.09169 11.8388 2.43838 10.4571 3.39291 9.50259C4.34744 8.54805 5.72908 8.20137 7.53783 8.46252C7.79899 10.2713 7.4523 11.6529 6.49777 12.6075C5.54324 13.562 4.05113 13.9251 2.35284 13.6475Z",fill:"white",stroke:"none"}))},function(e){e.Document=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M9 7H15M9 10H15M9 13H15M9 16H12M7 19H17C17.5523 19 18 18.5523 18 18V5C18 4.44772 17.5523 4 17 4H7C6.44772 4 6 4.44772 6 5V18C6 18.5523 6.44772 19 7 19Z",stroke:"inherit",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))},e.Image=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{dontScale:!0,className:t,viewBox:"0 0 24 24",width:r},o.createElement("path",{d:"M19 12.5232L15.2315 9.15406C14.8253 8.79085 14.203 8.81978 13.8322 9.2191L5.16357 18.5546M6 19H18C18.5523 19 19 18.5523 19 18V6C19 5.44772 18.5523 5 18 5H6C5.44772 5 5 5.44772 5 6V18C5 18.5523 5.44772 19 6 19ZM10 8.5C10 9.32843 9.32843 10 8.5 10C7.67157 10 7 9.32843 7 8.5C7 7.67157 7.67157 7 8.5 7C9.32843 7 10 7.67157 10 8.5Z",stroke:"inherit",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))},e.Presentation=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M12.5 8.5V8H12V8.5H12.5ZM17.5 8.5H18V8H17.5V8.5ZM17.5 15.5V16H18V15.5H17.5ZM12.5 15.5H12V16H12.5V15.5ZM9.5 9.5C9.77614 9.5 10 9.27614 10 9C10 8.72386 9.77614 8.5 9.5 8.5V9.5ZM6.5 8.5C6.22386 8.5 6 8.72386 6 9C6 9.27614 6.22386 9.5 6.5 9.5V8.5ZM9.5 12.5C9.77614 12.5 10 12.2761 10 12C10 11.7239 9.77614 11.5 9.5 11.5V12.5ZM6.5 11.5C6.22386 11.5 6 11.7239 6 12C6 12.2761 6.22386 12.5 6.5 12.5V11.5ZM9.5 15.5C9.77614 15.5 10 15.2761 10 15C10 14.7239 9.77614 14.5 9.5 14.5V15.5ZM6.5 14.5C6.22386 14.5 6 14.7239 6 15C6 15.2761 6.22386 15.5 6.5 15.5V14.5ZM4.5 6H19.5V5H4.5V6ZM20 6.5V17.5H21V6.5H20ZM19.5 18H4.5V19H19.5V18ZM4 17.5V6.5H3V17.5H4ZM4.5 18C4.22386 18 4 17.7761 4 17.5H3C3 18.3284 3.67157 19 4.5 19V18ZM20 17.5C20 17.7761 19.7761 18 19.5 18V19C20.3284 19 21 18.3284 21 17.5H20ZM19.5 6C19.7761 6 20 6.22386 20 6.5H21C21 5.67157 20.3284 5 19.5 5V6ZM4.5 5C3.67157 5 3 5.67157 3 6.5H4C4 6.22386 4.22386 6 4.5 6V5ZM12.5 9H17.5V8H12.5V9ZM17 8.5V15.5H18V8.5H17ZM17.5 15H12.5V16H17.5V15ZM13 15.5V8.5H12V15.5H13ZM9.5 8.5H6.5V9.5H9.5V8.5ZM9.5 11.5H6.5V12.5H9.5V11.5ZM9.5 14.5H6.5V15.5H9.5V14.5Z",fill:"inherit",stroke:"none"}))},e.Spreadsheet=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M12 6L12 18M4 14H20M4 10H20M4 6H20V18H4V6Z",stroke:"inherit",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))},e.Archive=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M11 12V11.5C10.7452 11.5 10.5312 11.6916 10.5031 11.9448L11 12ZM13 12L13.4969 11.9448C13.4688 11.6916 13.2548 11.5 13 11.5V12ZM13.5 16.5V17C13.6422 17 13.7777 16.9394 13.8726 16.8335C13.9674 16.7275 14.0126 16.5861 13.9969 16.4448L13.5 16.5ZM10.5 16.5L10.0031 16.4448C9.98735 16.5861 10.0326 16.7275 10.1274 16.8335C10.2223 16.9394 10.3578 17 10.5 17V16.5ZM10.5 4.5H10V5.5H10.5V4.5ZM12 5.5H12.5V4.5H12V5.5ZM10.5 6.5H10V7.5H10.5V6.5ZM12 7.5H12.5V6.5H12V7.5ZM10.5 8.5H10V9.5H10.5V8.5ZM12 9.5H12.5V8.5H12V9.5ZM10.5 10.5H10V11.5H10.5V10.5ZM12 11.5H12.5V10.5H12V11.5ZM12 5.5H11.5V6.5H12V5.5ZM13.5 6.5H14V5.5H13.5V6.5ZM12 7.5H11.5V8.5H12V7.5ZM13.5 8.5H14V7.5H13.5V8.5ZM12 9.5H11.5V10.5H12V9.5ZM13.5 10.5H14V9.5H13.5V10.5ZM6.5 4.5H17.5V3.5H6.5V4.5ZM18 5V19H19V5H18ZM17.5 19.5H6.5V20.5H17.5V19.5ZM6 19V5H5V19H6ZM6.5 19.5C6.22386 19.5 6 19.2761 6 19H5C5 19.8284 5.67157 20.5 6.5 20.5V19.5ZM18 19C18 19.2761 17.7761 19.5 17.5 19.5V20.5C18.3284 20.5 19 19.8284 19 19H18ZM17.5 4.5C17.7761 4.5 18 4.72386 18 5H19C19 4.17157 18.3284 3.5 17.5 3.5V4.5ZM6.5 3.5C5.67157 3.5 5 4.17157 5 5H6C6 4.72386 6.22386 4.5 6.5 4.5V3.5ZM11 12.5H13V11.5H11V12.5ZM12.5031 12.0552L13.0031 16.5552L13.9969 16.4448L13.4969 11.9448L12.5031 12.0552ZM13.5 16H10.5V17H13.5V16ZM10.9969 16.5552L11.4969 12.0552L10.5031 11.9448L10.0031 16.4448L10.9969 16.5552ZM10.5 5.5H12V4.5H10.5V5.5ZM10.5 7.5H12V6.5H10.5V7.5ZM10.5 9.5H12V8.5H10.5V9.5ZM10.5 11.5H12V10.5H10.5V11.5ZM12 6.5H13.5V5.5H12V6.5ZM12 8.5H13.5V7.5H12V8.5ZM12 10.5H13.5V9.5H12V10.5Z",fill:"inherit",stroke:"none"}))},e.Attachment=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M14.6822 7.82107L8.45826 14.045C7.85166 14.6517 7.85166 15.6351 8.45826 16.2417C9.06487 16.8483 10.0484 16.8483 10.655 16.2417L17.9773 8.91942C18.9883 7.90841 18.9883 6.26925 17.9773 5.25825C16.9663 4.24725 15.3271 4.24725 14.3161 5.25825L6.26156 13.3128C4.84616 14.7282 4.84616 17.023 6.26156 18.4384C7.67697 19.8539 9.97179 19.8539 11.3872 18.4384L18.3434 11.4822",stroke:"inherit",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))},e.Email=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M9 17.5C9.27614 17.5 9.5 17.2761 9.5 17C9.5 16.7239 9.27614 16.5 9 16.5V17.5ZM17.5 11.5C17.5 11.7761 17.7239 12 18 12C18.2761 12 18.5 11.7761 18.5 11.5H17.5ZM13 16.5C12.7239 16.5 12.5 16.7239 12.5 17C12.5 17.2761 12.7239 17.5 13 17.5V16.5ZM20 17L20.3536 17.3536L20.7071 17L20.3536 16.6464L20 17ZM17.3536 13.6464C17.1583 13.4512 16.8417 13.4512 16.6464 13.6464C16.4512 13.8417 16.4512 14.1583 16.6464 14.3536L17.3536 13.6464ZM16.6464 19.6464C16.4512 19.8417 16.4512 20.1583 16.6464 20.3536C16.8417 20.5488 17.1583 20.5488 17.3536 20.3536L16.6464 19.6464ZM10.2929 12.2929L10.6464 11.9393L10.2929 12.2929ZM4.70905 6.00195C4.51379 5.80668 4.19721 5.80668 4.00195 6.00195C3.80668 6.19721 3.80668 6.51379 4.00195 6.70905L4.70905 6.00195ZM17.9981 6.70905C18.1933 6.51379 18.1933 6.19721 17.9981 6.00195C17.8028 5.80668 17.4862 5.80668 17.2909 6.00195L17.9981 6.70905ZM11.7071 12.2929L11.3536 11.9393L11.7071 12.2929ZM5 6.5H17V5.5H5V6.5ZM4.5 16V7H3.5V16H4.5ZM9 16.5H5V17.5H9V16.5ZM17.5 7V11.5H18.5V7H17.5ZM3.5 16C3.5 16.8284 4.17157 17.5 5 17.5V16.5C4.72386 16.5 4.5 16.2761 4.5 16H3.5ZM17 6.5C17.2761 6.5 17.5 6.72386 17.5 7H18.5C18.5 6.17157 17.8284 5.5 17 5.5V6.5ZM5 5.5C4.17157 5.5 3.5 6.17157 3.5 7H4.5C4.5 6.72386 4.72386 6.5 5 6.5V5.5ZM13 17.5H20V16.5H13V17.5ZM20.3536 16.6464L17.3536 13.6464L16.6464 14.3536L19.6464 17.3536L20.3536 16.6464ZM19.6464 16.6464L16.6464 19.6464L17.3536 20.3536L20.3536 17.3536L19.6464 16.6464ZM10.6464 11.9393L4.70905 6.00195L4.00195 6.70905L9.93934 12.6464L10.6464 11.9393ZM17.2909 6.00195L11.3536 11.9393L12.0607 12.6464L17.9981 6.70905L17.2909 6.00195ZM9.93934 12.6464C10.5251 13.2322 11.4749 13.2322 12.0607 12.6464L11.3536 11.9393C11.1583 12.1346 10.8417 12.1346 10.6464 11.9393L9.93934 12.6464Z",fill:"inherit",stroke:"none"}))},e.Pdf=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4C6 3.72386 6.22386 3.5 6.5 3.5H13.5C13.6326 3.5 13.7598 3.55268 13.8536 3.64645L17.8536 7.64645C17.9473 7.74021 18 7.86739 18 8V11H17V8.5H13.5C13.2239 8.5 13 8.27614 13 8V4.5H7V11H6V4ZM14 5.20711L16.2929 7.5H14V5.20711Z",fill:"inherit",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.63 18.65H7.54971V17.2396H8.32285C9.32327 17.2396 9.90525 16.6428 9.90525 15.7741C9.90525 14.9096 9.33389 14.3 8.34622 14.3H6.63V18.65ZM7.54971 16.5026V15.0519H8.16992C8.70093 15.0519 8.95793 15.3408 8.95793 15.7741C8.95793 16.2052 8.70093 16.5026 8.17417 16.5026H7.54971Z",fill:"inherit",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8652 18.65C13.1906 18.65 13.9935 17.8301 13.9935 16.4708C13.9935 15.1156 13.1906 14.3 11.878 14.3H10.3232V18.65H11.8652ZM11.2429 17.862V15.088H11.8291C12.6448 15.088 13.0759 15.5043 13.0759 16.4708C13.0759 17.4414 12.6448 17.862 11.827 17.862H11.2429Z",fill:"inherit",stroke:"none"}),o.createElement("path",{d:"M15.4151 18.65H14.4953V14.3H17.3755V15.0583H15.4151V16.0948H17.1844V16.8531H15.4151V18.65Z",fill:"inherit",stroke:"none"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 12V21H19.5V12H4.5ZM18.5 13H5.5V20H18.5V13Z",fill:"inherit",stroke:"none"}))},e.Video=function(e){var t=e.className,n=e.width,r=void 0===n?24:n;return o.createElement(w,{className:t,width:r,viewBox:"0 0 24 24"},o.createElement("path",{d:"M3.5 6.5C3.5 5.94772 3.94772 5.5 4.5 5.5H19.5C20.0523 5.5 20.5 5.94772 20.5 6.5V17.5C20.5 18.0523 20.0523 18.5 19.5 18.5H4.5C3.94772 18.5 3.5 18.0523 3.5 17.5V6.5Z",stroke:"inherit",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10 8.85L15 11.9733L10 15.0965V8.85Z",stroke:"inherit",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))}}(e.Attachments||(e.Attachments={}))}(E||(E={}));var H=(0,s.pipe)(r,(0,a.map)((function(e){return function(t){var n=t.className;return o.createElement(S,{className:n},o.createElement(e,null))}}))),k=p.ux.keyframes({to:{strokeDashoffset:13}}),P=p.ux.keyframes({to:{strokeDashoffset:0}}),N={display:"inline-flex",minWidth:p.ux.rem(2),minHeight:p.ux.rem(2),verticalAlign:"middle",transition:"fill .2s, stroke .2s",justifyContent:"center",alignItems:"center",stroke:h.Il.CoreNeutral50,fill:h.Il.CoreNeutral50,$nest:{"&:not([data-disabled='true'])[data-hovered='true'], &:not([data-disabled='true'])[data-active='true']":{stroke:h.Il.CoreBlue50,fill:h.Il.CoreBlue50},"&[data-disabled='true']":{stroke:y.xO,fill:y.xO}}},T={minWidth:p.ux.rem(1.5),minHeight:p.ux.rem(1.5)},R={minWidth:p.ux.rem(1.5),minHeight:p.ux.rem(1.5),stroke:"none",fill:h.Il.CoreYellow50,$nest:{"&:not([data-disabled='true'])[data-hovered='true'], &:not([data-disabled='true'])[data-active='true']":{stroke:"none",fill:h.Il.CoreYellow50}}},B={stroke:h.Il.CoreNeutral50,fill:"none",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round",fillRule:"evenodd",$nest:{"&:not([data-disabled='true'])[data-hovered='true']":{fill:"none"}}},D={fill:"none",stroke:y.FW,strokeLinecap:"round",strokeLinejoin:"round",$nest:{"&:not([data-disabled='true'])[data-hovered='true']":{fill:"none",stroke:h.Il.CoreBlue50}}},F={animation:"".concat(k," .5s linear forwards"),strokeDasharray:94,strokeDashoffset:94},I={animation:"".concat(P," 1.5s linear forwards"),strokeDasharray:100,strokeDashoffset:100},x={fill:h.Il.CoreNeutral30,stroke:"none",$nest:{"&:not([data-disabled='true'])[data-hovered='true'], &:not([data-disabled='true'])[data-active='true']":{stroke:"none"}}},O={position:"absolute",top:p.ux.rem(1.74),left:p.ux.rem(7.35),zIndex:1,width:p.ux.rem(1.5),height:p.ux.rem(1),borderRadius:p.ux.rem(g.mA),background:h.Il.CoreGreen10,color:h.Il.CoreGreen70,textAlign:"center",fontWeight:"bold",fontSize:p.ux.rem(.5),lineHeight:p.ux.rem(1)},L={position:"relative",top:p.ux.percent(50),letterSpacing:p.ux.px(.8),transform:"translateY(-50%)"},j={stroke:h.Il.CoreNeutral50,fill:"none",$nest:{"&:not([data-disabled='true'])[data-hovered='true'], &:not([data-disabled='true'])[data-active='true']":{stroke:h.Il.CoreBlue50,fill:"none"},"&[data-disabled='true']":{stroke:y.xO,fill:"none"}}},z={$nest:{"&:not([data-disabled='true'])[data-active='true']":{stroke:h.Il.CoreGreen50,fill:h.Il.CoreGreen50,strokeWidth:p.ux.px(2)}}},Q={$nest:{"&:not([data-disabled='true'])[data-active='true']":{stroke:h.Il.CoreRed50,fill:h.Il.CoreRed50,strokeWidth:p.ux.px(2)}}},G={$nest:{"&:not([data-disabled='true'])[data-hovered='true'] > svg > path:first-child, &[data-active='true'] > svg > path:first-child":{stroke:"none",fill:h.Il.CoreGreen50},"&:not([data-disabled='true'])[data-hovered='true'] > svg > path:last-child, &[data-active='true'] > svg > path:last-child":{fill:"white"}}},W={$nest:{"&:not([data-disabled='true'])[data-hovered='true'] > svg > path:first-child, &[data-active='true'] > svg > path:first-child":{stroke:"none",fill:h.Il.CoreRed50},"&:not([data-disabled='true'])[data-hovered='true'] > svg > path:last-child, &[data-active='true'] > svg > path:last-child":{stroke:"white"}}},U={$nest:{"&:not([data-disabled='true'])[data-hovered='true'] > svg > path":{stroke:h.Il.CoreBlue50}}},X={$nest:{'& path[data-figure="bg"]':{fill:h.Il.CoreBlue50,stroke:"none"},'& path[data-figure="arrow"]':{fill:"none",stroke:h.Il.CoreNeutral0},'& path[data-figure="arrow_spire"]':{fill:h.Il.CoreNeutral0,stroke:"none"}}},J=p.ux.stylesheet({icon:[N],iconSimple:[{display:"inline-flex"}],gIcon:[T],holder:[{transform:"scale(calc(var(--rem)/16))"}],starIcon:[{fillOpacity:0,$nest:{"&:not([data-disabled='true'])[data-active='true']":{fillOpacity:1}}}],pinIcon:[{fillOpacity:0,$nest:{"&:not([data-disabled='true'])[data-active='true']":{fillOpacity:1}}}],diamondIcon:[R],toolbarIcon:[B],exitIcon:[D],circle:[F],checkmark:[I],emote:[x],newIcon:[O],newIconCaption:[L],noStrokeIcon:[{stroke:"none",$nest:{"&:not([data-disabled='true'])[data-hovered='true'], &:not([data-disabled='true'])[data-active='true']":{stroke:"none"},"&[data-disabled='true']":{stroke:"none"}}}],yesCircleIcon:[j],noCircleIcon:[j],yesIcon:[z],closeIcon:[Q],voteYes:[G],voteNo:[W],openFeedbackFormArrow:[U],newSmall:[{fill:"none"}],ideasRecommended:[X]})},70091:function(e,t,n){"use strict";n.d(t,{ux:function(){return U}});var r={};n.r(r),n.d(r,{TypeStyle:function(){return Y},classes:function(){return G},createTypeStyle:function(){return ue},cssRaw:function(){return q},cssRule:function(){return ee},extend:function(){return W},fontFace:function(){return ne},forceRenderStyles:function(){return te},getStyles:function(){return re},keyframes:function(){return ie},media:function(){return X},reinit:function(){return oe},setStylesTarget:function(){return $},style:function(){return ae},stylesheet:function(){return se},types:function(){return Z}});var i=n(29388),o=/[\s]*([a-z-]+)[\s]*\([\s]*([^\)]+)[\s]*\)[\s]*/i,a=/^(\-?\d+\.?\d{0,5})/,s=function(e){return function(t){return t+e}},u=parseFloat;function c(e){return"number"===typeof e?e:.01*u(e)}function M(e){return m(100*e)+"%"}function m(e){return a.exec(e.toString())[1]}function l(e,t){return e+"("+Array.prototype.join.call(t,", ")+")"}function d(e){return function(){return l(e,arguments)}}var h=function(e,t){return Array.prototype.filter.call(e,t)},f=s("%"),p=(s("deg"),s("em"),s("ex"),s("px")),y=(s("rad"),s("rem"),s("vh")),g=s("vw"),E=(s("turn"),function(e){return function(){return h(arguments,(function(e){return e||0===e})).map((function(e){return"number"===typeof e?p(e):e.toString()})).join(e)}});E(" "),E(",");var v,b=Math.round;function w(e,t){return b(e*t)/t}var S="rgb",C="hsl",A=((v={}).rgbhsl=function(e,t,n,r,i){var o,a,s=e/255,u=t/255,c=n/255,M=Math.min(s,u,c),m=Math.max(s,u,c),l=(M+m)/2,d=m-M;o=m===M?0:s===m?(u-c)/d:u===m?2+(c-s)/d:c===m?4+(s-u)/d:0;(o=Math.min(60*o,360))<0&&(o+=360);a=m===M?0:l<=.5?d/(m+M):d/(2-m-M);return new N(C,o,a,l,r,i)},v.hslrgb=function(e,t,n,r,i){var o=e/360,a=t,s=n;if(0===a){return new N(S,f=255*s,f,f,r,i)}for(var u=s<.5?s*(1+a):s+a-s*a,c=2*s-u,M=0,m=0,l=0,d=0;d<3;d++){var h=o+1/3*-(d-1);h<0&&h++,h>1&&h--;var f=void 0;f=6*h<1?c+6*(u-c)*h:2*h<1?u:3*h<2?c+(u-c)*(2/3-h)*6:c,f*=255,0===d?M=f:1===d?m=f:l=f}return new N(S,M,m,l,r,i)},v),_={r:255,g:255,b:255,h:360,s:1,l:1,a:1};function H(e){return function(e){var t=e.match(/#(([a-f0-9]{6})|([a-f0-9]{3}))$/i);if(!t)return;var n=t[1],r=parseInt(3===n.length?n[0]+n[0]+n[1]+n[1]+n[2]+n[2]:n,16);return new N(S,r>>16&255,r>>8&255,255&r,1,!1)}(e)||function(e){var t=function(e){var t=o.exec(e);if(t&&t.length)return[t[1]].concat(t[2].split(","))}(e);if(!t||4!==t.length&&5!==t.length)return;var n,r=t[0],i="rgba"===r,a="hsla"===r,s=r===S,M=r===C,m=a||i;if(s||i)n=S;else{if(!M&&!a)throw new Error("unsupported color string");n=C}var l=u(t[1]),d=s||i?u(t[2]):c(t[2]),h=s||i?u(t[3]):c(t[3]),f=m?u(t[4]):1;return new N(n,l,d,h,f,m)}(e)||k(255,0,0)}function k(e,t,n,r){return new N(S,e,t,n,void 0===r?1:c(r),void 0!==r)}function P(e,t,n){var r=t.f,i=t.r,o=t.g,a=t.b,s=t.a,u=void 0===n?t.o:n;return r!==e?A[r+e](i,o,a,s,u):void 0===n?t:new N(r,i,o,a,s,u)}var N=function(){function e(e,t,n,r,i,o){var a=this;a.f=e,a.o=o;var s=e===C;a.r=B(s?"h":"r",t),a.g=B(s?"s":"g",n),a.b=B(s?"l":"b",r),a.a=B("a",i)}return e.prototype.toString=function(){var e,t,n=this,r=n.o,i=n.f,o=n.r,a=n.g,s=n.b,u=n.a;if(i===S)e=r?"rgba":S,t=[b(o),b(a),b(s)];else{if(i!==C)throw new Error("Invalid color format");e=r?"hsla":C,t=[b(o),M(w(a,100)),M(w(s,100))]}return r&&t.push(m(w(u,1e5))),l(e,t)},e.prototype.toHexString=function(){var e=P(S,this);return"#"+(T(e.r)+T(e.g)+T(e.b)).toUpperCase()},e.prototype.toHSL=function(){return P(C,this,!1)},e.prototype.toHSLA=function(){return P(C,this,!0)},e.prototype.toRGB=function(){return P(S,this,!1)},e.prototype.toRGBA=function(){return P(S,this,!0)},e.prototype.red=function(){var e=this;return(e.f===S?e:e.toRGB()).r},e.prototype.green=function(){var e=this;return(e.f===S?e:e.toRGB()).g},e.prototype.blue=function(){var e=this;return(e.f===S?e:e.toRGB()).b},e.prototype.hue=function(){var e=this;return(e.f===C?e:e.toHSL()).r},e.prototype.saturation=function(){var e=this;return(e.f===C?e:e.toHSL()).g},e.prototype.lightness=function(){var e=this;return(e.f===C?e:e.toHSL()).b},e.prototype.alpha=function(){return this.a},e.prototype.opacity=function(){return this.a},e.prototype.invert=function(){var t=this,n=P(S,t);return P(t.f,new e(S,255-n.r,255-n.g,255-n.b,t.a,t.o))},e.prototype.lighten=function(t,n){var r=this,i=P(C,r),o=_.l,a=i.b+(n?o-i.b:o)*c(t);return P(r.f,new e(C,i.r,i.g,a,r.a,r.o))},e.prototype.darken=function(t,n){var r=this,i=P(C,r),o=i.b-(n?i.b:_.l)*c(t);return P(r.f,new e(C,i.r,i.g,o,r.a,r.o))},e.prototype.saturate=function(t,n){var r=this,i=P(C,r),o=_.s,a=i.g+(n?o-i.g:o)*c(t);return P(r.f,new e(C,i.r,a,i.b,r.a,r.o))},e.prototype.desaturate=function(t,n){var r=this,i=P(C,r),o=_.s,a=i.g-(n?i.g:o)*c(t);return P(r.f,new e(C,i.r,a,i.b,r.a,r.o))},e.prototype.grayscale=function(){return this.desaturate(1)},e.prototype.fade=function(t){var n=this,r=B("a",c(t));return P(n.f,new e(n.f,n.r,n.g,n.b,r,!0))},e.prototype.fadeOut=function(t,n){var r=this,i=B("a",r.a-(n?r.a:1)*c(t));return P(r.f,new e(r.f,r.r,r.g,r.b,i,!0))},e.prototype.fadeIn=function(t,n){var r=this,i=B("a",r.a+(n?r.a:1)*c(t));return P(r.f,new e(r.f,r.r,r.g,r.b,i,!0))},e.prototype.mix=function(t,n){var r=D(t),i=P(S,this),o=P(S,r),a=void 0===n?.5:n,s=2*a-1,u=Math.abs(i.a-o.a),c=((s*u===-1?s:(s+u)/(1+s*u))+1)/2,M=1-c,m=new e(S,b(i.r*c+o.r*M),b(i.g*c+o.g*M),b(i.b*c+o.b*M),i.a*a+o.a*(1-a),this.o||r.o);return P(this.f,m)},e.prototype.tint=function(e){return k(255,255,255).mix(this,e)},e.prototype.shade=function(e){return k(0,0,0).mix(this,e)},e.prototype.spin=function(t){var n=this,r=P(C,n);return P(n.f,new e(C,R(r.r+t),r.g,r.b,n.a,n.o))},e}();function T(e){var t=b(e);return(t<16?"0":"")+t.toString(16)}function R(e){return((e<0?360:0)+e%360)%360}function B(e,t){var n=_[e];return t<0?0:t>n?n:t}function D(e){return e instanceof N?e:H(e)}function F(e){for(var t=[],n=1;n1?d.left("can not convert number: ".concat(n," to ratio")):d.left("unknown parse error")},e.unsafeFromNumber=function(t){return h.MH(e.fromNumber(t))},e.unwrap=function(e){return t.unwrap(e)},e.create=function(t,n){return e.prism.getOption(n/t)}}(m||(m={})),function(e){e.iso=i.iso(),e.ord=i.getOrd(o.ordNumber),e.MIN=e.iso.wrap(0),e.MAX=e.iso.wrap(100),e.is=function(t){return Number.isInteger(t)&&o.between(e.ord)(e.MIN,e.MAX)(e.iso.wrap(t))},e.prism=i.prism(e.is),e.isMin=a(e.ord.equals)(e.MIN),e.isMax=a(e.ord.equals)(e.MAX),e.groupSum=M,e.fromNumber=function(t){return(0,f.kG)(e.is(t),"can not create percent from: ".concat(t)),e.iso.wrap(t)},e.fromRatio=function(t){var n=m.prism.reverseGet(t),r=m.closeToMin(t)?1:m.closeToMax(t)?99:Math.round(100*n);return(0,f.kG)(e.is(r),"incorrect percent value: ".concat(r," was derived from ratio: ").concat(t)),e.iso.wrap(r)}}(l||(l={}))},46727:function(e,t,n){"use strict";n.d(t,{UL:function(){return f},pK:function(){return p},q_:function(){return l}});var r=n(29388),i=n(83191),o=n(42666),a=n(86426),s=n(10836),u=n(79559),c=n(25264),M=n(50582),m=n(77749);function l(e,t){if(null==(null===e||void 0===e?void 0:e.parentElement))return!1;var n=e.className;return"string"===typeof n&&n.indexOf(t)>-1||l(e.parentElement,t)}var d,h,f;function p(e){return void 0!==e.dataset&&"true"===e.dataset.disabled}!function(e){e.isLI=function(e){return"LI"===e.nodeName},e.isUL=function(e){return"UL"===e.nodeName},e.isOL=function(e){return"OL"===e.nodeName},e.isP=function(e){return"P"===e.nodeName},e.isH1=function(e){return"H1"===e.nodeName},e.isH2=function(e){return"H2"===e.nodeName},e.isLink=function(e){return"A"===e.nodeName},e.isBR=function(e){return"BR"===e.nodeName},e.isSPAN=function(e){return"SPAN"===e.nodeName},e.isHTMLElement=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isDocumentFragment=function(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}}(d||(d={})),function(e){e.eq=(0,o.fromEquals)((function(e,t){return e.height===t.height&&e.width===t.width})),e.placeIntoRect=function(e,t){var n=Math.trunc(e.width),r=Math.trunc(e.height);(0,s.kG)(n===t.width||r===t.height,"we should have similar box&rect dimensions for placing operation",(function(){return JSON.stringify({box:e,rect:t})}));var o={x:Math.ceil(t.left),y:Math.ceil(t.top)},a={x:Math.ceil(t.left+t.width/2-n/2),y:Math.ceil(t.top+t.height/2-r/2)},u={x:Math.ceil(t.right-n),y:Math.ceil(t.bottom-r)};return i.array.traverse(c.either)([o,a,u],(function(e){return f.validate({top:e.y,right:e.x+n,bottom:e.y+r,left:e.x,height:r,width:n})}))}}(h||(h={})),function(e){e.eq=(0,o.fromEquals)((function(e,t){return h.eq.equals(e,t)&&e.top===t.top&&e.bottom===t.bottom&&e.left===t.left&&e.right===t.right})),e.fromRectLike=function(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}},e.validate=function(t){if("object"!==typeof t||null==t)return c.left(new Error("not an object"));if(!Object.keys(e.empty).every((function(e){return e in t})))return c.left(new Error("object does not have all required rect props"));var n=t;return Math.round(n.right-n.left)!==Math.round(n.width)?c.left(new Error("incorrect horizontal dimensions, expected width: ".concat(n.right-n.left,", got: ").concat(n.width))):Math.round(n.bottom-n.top)!==Math.round(n.height)?c.left(new Error("incorrect vertical dimensions, expected height: ".concat(n.bottom-n.top,", got: ").concat(n.height))):n.top>n.bottom?c.left(new Error("incorrect vertical dimensions, expected top ".concat(n.top," to be less than bottom ").concat(n.bottom))):n.left>n.right?c.left(new Error("incorrect horizontal dimensions, expected left ".concat(n.left," to be less than right ").concat(n.right))):n.width<0?c.left(new Error("width cannot be negative")):n.height<0?c.left(new Error("height cannot be negative")):c.right(n)},e.empty={top:0,right:0,bottom:0,left:0,height:0,width:0},e.fromEl=function(e){return e.getBoundingClientRect()};var t,n;e.hasIntersection=function(e,t){return function(e,t){return Math.ceil(e.bottom)>=Math.floor(t.top)&&Math.ceil(e.top)<=Math.floor(t.bottom)||Math.ceil(t.bottom)>=Math.floor(e.top)&&Math.ceil(t.top)<=Math.floor(e.bottom)}(e,t)&&function(e,t){return Math.ceil(e.right)>=Math.floor(t.left)&&Math.ceil(e.left)<=Math.floor(t.right)||Math.ceil(t.right)>=Math.floor(e.left)&&Math.ceil(t.left)<=Math.floor(e.right)}(e,t)},e.intersection=function(t,n){return e.hasIntersection(t,n)?(0,a.pipe)(M.some({top:Math.floor(Math.max(t.top,n.top)),bottom:Math.ceil(Math.min(t.bottom,n.bottom)),left:Math.floor(Math.max(t.left,n.left)),right:Math.ceil(Math.min(t.right,n.right))}),M.chain((function(t){return M.fromEither(e.validate((0,r.__assign)((0,r.__assign)({},t),{width:t.right-t.left,height:t.bottom-t.top})))}))):M.none},e.growByBox=function(t,n){var r=t.height,i=t.width;return e.validate({top:n.top-r/2,right:n.right+i/2,bottom:n.bottom+r/2,left:n.left-i/2,height:n.height+r,width:n.width+i})},e.shrinkTop=function(t,n){return e.validate((0,r.__assign)((0,r.__assign)({},n),{top:n.top+t,height:n.height-t}))},e.shrinkBottom=function(t,n){return e.validate((0,r.__assign)((0,r.__assign)({},n),{bottom:n.bottom-t,height:n.height-t}))},e.scale=function(t,n){var r=n.height*t,i=n.width*t;return e.growByBox({width:i,height:r},n)},e.normalize=function(t){return e.validate({top:Math.ceil(t.top),bottom:Math.ceil(t.bottom),left:Math.ceil(t.left),right:Math.ceil(t.right),height:Math.ceil(t.height),width:Math.ceil(t.width)})},e.join=function(){for(var t=[],n=0;n=Math.trunc(r)&&Math.trunc(e.left)<=Math.trunc(n)&&Math.trunc(e.right)>=Math.trunc(n)},e.getMedian=function(t,n){return(0,a.pipe)(e.intersection(t,n),M.map((function(e){var r=Math.trunc(e.width/2),i=Math.trunc(e.height/2),o={x:Math.trunc(e.left+r),y:Math.trunc(e.top+i)};return{side:0===r?t.left x.some".\n Incorrect example: "function (x) { var y = x.some; return y }" or "({some}) => some"')}(e.toString())}function y(e){return void 0===e?function(e){return o.create((function(t){return t[e]}),(function(t,n){return(0,d.Dt)(e,t,n)}))}:o.create((function(t){return t[e]}),(function(t,n){return(0,d.Dt)(e,t,n)}))}var g=0;o.key=y,o.prop=function(e){var t=p(e);return d.z3&&function(e){if(g<10){g++;var t="x."+e.join("."),n="'"+e.join("', '")+"'";(0,d.Kp)("The property expression overload of Atom.lens and Lens.prop are deprecated and will be removed in next versions of Focal. Please use the key name overload for Atom.lens and Lens.key instead. You can convert your code by changing the calls:\n a.lens(x => "+t+") to a.lens("+n+"),\n Lens.prop((x: T) => "+t+") to Lens.key()("+n+").")}}(t),o.compose.apply(o,t.map(y()))},o.index=function(e){if(e<0)throw new TypeError(e+" is not a valid array index, expected >= 0");return i.create((function(t){return t[e]}),(function(t,n){return n.length<=e?n.concat(Array(e-n.length),[t]):(0,h.f)(t,n[e])?n:n.slice(0,e).concat([t],n.slice(e+1))}))},o.withDefault=function(e){return o.replace(void 0,e)},o.replace=function(e,t){return o.create((function(n){return(0,h.f)(n,e)?t:n}),(0,d.t_)((function(n){return(0,h.f)(n,t)?e:n})))},o.find=function(e){return t=function(t){var n=(0,d.cx)(t,e);return n<0?o.nothing():o.index(n)},o.create((function(e){return t(e).get(e)}),(function(e,n){return t(n).set(e,n)}));var t};var E,v=n(69844),b=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(){for(var e=0,t=0,n=arguments.length;t=0;)i(s=t[u],o)&&!r(c,s)&&(c[c.length]=s),u-=1;return c}:function(e){return Object(e)!==e?[]:Object.keys(e)}}();function u(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}function c(e,t,n,a){if(void 0===n&&(n=[]),void 0===a&&(a=[]),o(e,t))return!0;if(u(e)!==u(t))return!1;if(null==e||null==t)return!1;if("function"===typeof e.equals||"function"===typeof t.equals)return"function"===typeof e.equals&&e.equals(t)&&"function"===typeof t.equals&&t.equals(e);switch(u(e)){case"Arguments":case"Array":case"Object":if("function"===typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!==typeof t||!o(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!o(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1;break;case"Map":case"Set":if(!c(r(e.entries()),r(t.entries()),n,a))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var M=s(e);if(M.length!==s(t).length)return!1;for(var m=n.length-1;m>=0;){if(n[m]===e)return a[m]===t;m-=1}for(n.push(e),a.push(t),m=M.length-1;m>=0;){var l=M[m];if(!i(l,t)||!c(t[l],e[l],n,a))return!1;m-=1}return n.pop(),a.pop(),!0}},79978:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(72791),i=n(80335);var o=function(){var e={};return["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"].forEach((function(t){return e[t]=(n=t,function(e){return r.createElement(i.Tm,{component:n,props:e})});var n})),e.Fragment=function(e){return r.createElement(i.Tm,{component:r.Fragment,props:e})},e}()},80335:function(e,t,n){"use strict";n.d(t,{Sh:function(){return C},Tm:function(){return m},ak:function(){return _}});var r=n(72791),i=n(82629),o=n(77404),a=n(79722),s=n(69844),u=n(82297),c=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n":"An unnamed component")+" has received an observable that doesn't immediately emit a value in one of its props. Since this observable hasn't yet called its subscription handler, the component can not be rendered at the time. Check the props of "+(e?"<"+e+">":"this component")+".")}var b=function(){function e(e,t){var n=this;this._innerSubscription=null,this._receivedValue=!1;var r={subscription:this,renderCache:e.state&&e.state.renderCache};this._liftedComponent=new g(r,t),p(t.props,(function(e){n._innerSubscription=e.subscribe((function(e){return n._handleValue(e)}),E,(function(){return n._handleCompleted()})),n._innerSubscription&&n._innerSubscription.closed&&(n._innerSubscription=null)})),o.z3&&!this._receivedValue&&v((0,o._o)(this._liftedComponent.props.component)),this._liftedComponent=e,e.setState(r)}return e.prototype.unsubscribe=function(){this._innerSubscription&&this._innerSubscription.unsubscribe()},e.prototype._handleValue=function(e){o.z3&&(this._receivedValue=!0);var t=this._liftedComponent,n=t.props,r=y(n.component,n.props,[e]);t.setState((function(e){return(0,i.f)(e.renderCache,r)?{}:{renderCache:r}}))},e.prototype._handleCompleted=function(){this._innerSubscription=null,this._liftedComponent.setState(m._endState)},e}(),w=function(){function e(e,t,n){var r=this,i={subscription:this,renderCache:e.state&&e.state.renderCache};this._liftedComponent=new g(i,t),this._innerSubscriptions=[],this._values=Array(n);for(var a=0;ae&&(this._innerSubscriptions[e]=null),t===this._values.length){for(var n=0;n0?n.join(" "):void 0}))};var n=S(e||[]);return{className:n.length>0?n.join(" "):void 0}}function A(e){return function(t){for(var n in e)e[n].set(t.target[n])}}function _(e){return M(M({},e),{onChange:A(e)})}},77404:function(e,t,n){"use strict";n.d(t,{Dt:function(){return o},Kp:function(){return u},_o:function(){return c},cx:function(){return s},t_:function(){return a},z3:function(){return i}});var r=n(82629),i="undefined"!==typeof process&&!1;function o(e,t,n){if(e in n&&(0,r.f)(t,n[e]))return n;var i={};for(var o in n)i[o]=n[o];return i[e]=t,i}function a(e){return function(t,n){return function(e,t){return(0,r.f)(e,t)?t:e}(e(t,n),n)}}function s(e,t){for(var n=0;n x.some".\n Incorrect example: "function (x) { var y = x.some; return y }" or "({some}) => some"')}(e.toString())}function y(e){return void 0===e?function(e){return o.create((function(t){return t[e]}),(function(t,n){return(0,d.Dt)(e,t,n)}))}:o.create((function(t){return t[e]}),(function(t,n){return(0,d.Dt)(e,t,n)}))}var g=0;o.key=y,o.prop=function(e){var t=p(e);return d.z3&&function(e){if(g<10){g++;var t="x."+e.join("."),n="'"+e.join("', '")+"'";(0,d.Kp)("The property expression overload of Atom.lens and Lens.prop are deprecated and will be removed in next versions of Focal. Please use the key name overload for Atom.lens and Lens.key instead. You can convert your code by changing the calls:\n a.lens(x => "+t+") to a.lens("+n+"),\n Lens.prop((x: T) => "+t+") to Lens.key()("+n+").")}}(t),o.compose.apply(o,t.map(y()))},o.index=function(e){if(e<0)throw new TypeError(e+" is not a valid array index, expected >= 0");return i.create((function(t){return t[e]}),(function(t,n){return n.length<=e?n.concat(Array(e-n.length),[t]):(0,h.f)(t,n[e])?n:n.slice(0,e).concat([t],n.slice(e+1))}))},o.withDefault=function(e){return o.replace(void 0,e)},o.replace=function(e,t){return o.create((function(n){return(0,h.f)(n,e)?t:n}),(0,d.t_)((function(n){return(0,h.f)(n,t)?e:n})))},o.find=function(e){return t=function(t){var n=(0,d.cx)(t,e);return n<0?o.nothing():o.index(n)},o.create((function(e){return t(e).get(e)}),(function(e,n){return t(n).set(e,n)}));var t};var E,v=n(69844),b=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(){for(var e=0,t=0,n=arguments.length;t=0;)i(s=t[u],o)&&!r(c,s)&&(c[c.length]=s),u-=1;return c}:function(e){return Object(e)!==e?[]:Object.keys(e)}}();function u(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}function c(e,t,n,a){if(void 0===n&&(n=[]),void 0===a&&(a=[]),o(e,t))return!0;if(u(e)!==u(t))return!1;if(null==e||null==t)return!1;if("function"===typeof e.equals||"function"===typeof t.equals)return"function"===typeof e.equals&&e.equals(t)&&"function"===typeof t.equals&&t.equals(e);switch(u(e)){case"Arguments":case"Array":case"Object":if("function"===typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!==typeof t||!o(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!o(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1;break;case"Map":case"Set":if(!c(r(e.entries()),r(t.entries()),n,a))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var M=s(e);if(M.length!==s(t).length)return!1;for(var m=n.length-1;m>=0;){if(n[m]===e)return a[m]===t;m-=1}for(n.push(e),a.push(t),m=M.length-1;m>=0;){var l=M[m];if(!i(l,t)||!c(t[l],e[l],n,a))return!1;m-=1}return n.pop(),a.pop(),!0}},25142:function(e,t,n){"use strict";n.d(t,{Dt:function(){return o},Kp:function(){return u},_o:function(){return c},cx:function(){return s},t_:function(){return a},z3:function(){return i}});var r=n(3448),i="undefined"!==typeof process&&!1;function o(e,t,n){if(e in n&&(0,r.f)(t,n[e]))return n;var i={};for(var o in n)i[o]=n[o];return i[e]=t,i}function a(e){return function(t,n){return function(e,t){return(0,r.f)(e,t)?t:e}(e(t,n),n)}}function s(e,t){for(var n=0;n0||t.didTimeout)&&r.next(e)}),{timeout:t});return function(){return n.cancelIdleCallback(i)}}))}:e.rafScheduler},e.rafScheduler=function(e){return o.y.create((function(t){var n=requestAnimationFrame((function(){return t.next(e)}));return function(){return cancelAnimationFrame(n)}}))},e.syncScheduler=function(e){return a.of(e)},e.inRaf=function(t){return t.pipe(u.w(e.rafScheduler))},e.inRic=function(t,n){return t.pipe(u.w(e.ricScheduler(n)))}}(M||(M={}))},32589:function(e,t,n){"use strict";n.d(t,{rl:function(){return te},YC:function(){return ee},Qr:function(){return ne}});var r={};n.r(r),n.d(r,{default:function(){return A}});var i=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),m=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!==typeof WeakMap?new WeakMap:new i,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=M.getInstance(),r=new w(t,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));var A="undefined"!==typeof a.ResizeObserver?a.ResizeObserver:C,_=n(29388),H=n(83191),k=n(42666),P=n(86426),N=function(e){void 0===e&&(e="(nomessage)"),Error.call(this,e),"captureStackTrace"in Error?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name=this.constructor.name};N.prototype=Object.create(Error.prototype);var T=function(e){function t(t,n){void 0===n&&(n="empty");var r=e.call(this,"Invariant condition failed: "+(Boolean(t)?t:"(unnamed)"))||this;return r.input=n,r}return(0,_.__extends)(t,e),t.prototype.toString=function(){return"".concat(this.message," on input[").concat(this.input,"]")},t}(N),R=(function(e){function t(t){return e.call(this,t)||this}(0,_.__extends)(t,e)}(N),function(e){function t(t){return e.call(this,"Matching not exhaustive".concat(Boolean(t)?": unexpected value ".concat(JSON.stringify(t)):""))||this}return(0,_.__extends)(t,e),t}(N));function B(e){throw new R(e)}var D=n(73475),F=n(25264),I=n(50582),x=n(19936);(0,F.fold)((function(e){throw e}),x.identity);var O,L,j;!function(e){e.isLI=function(e){return"LI"===e.nodeName},e.isUL=function(e){return"UL"===e.nodeName},e.isOL=function(e){return"OL"===e.nodeName},e.isP=function(e){return"P"===e.nodeName},e.isH1=function(e){return"H1"===e.nodeName},e.isH2=function(e){return"H2"===e.nodeName},e.isLink=function(e){return"A"===e.nodeName},e.isBR=function(e){return"BR"===e.nodeName},e.isSPAN=function(e){return"SPAN"===e.nodeName},e.isHTMLElement=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isDocumentFragment=function(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}}(O||(O={})),function(e){e.eq=(0,k.fromEquals)((function(e,t){return e.height===t.height&&e.width===t.width})),e.placeIntoRect=function(e,t){var n=Math.trunc(e.width),r=Math.trunc(e.height);!function(e,t,n){if(!e){var r=new T("string"===typeof t?t:t&&t(),void 0!==n&&"string"!==typeof n?n():n);throw r.stack=r.stack.split("\n").filter((function(e){return-1===e.indexOf("errors.")})).join("\n"),r}}(n===t.width||r===t.height,"we should have similar box&rect dimensions for placing operation",(function(){return JSON.stringify({box:e,rect:t})}));var i={x:Math.ceil(t.left),y:Math.ceil(t.top)},o={x:Math.ceil(t.left+t.width/2-n/2),y:Math.ceil(t.top+t.height/2-r/2)},a={x:Math.ceil(t.right-n),y:Math.ceil(t.bottom-r)};return H.array.traverse(F.either)([i,o,a],(function(e){return j.validate({top:e.y,right:e.x+n,bottom:e.y+r,left:e.x,height:r,width:n})}))}}(L||(L={})),function(e){e.eq=(0,k.fromEquals)((function(e,t){return L.eq.equals(e,t)&&e.top===t.top&&e.bottom===t.bottom&&e.left===t.left&&e.right===t.right})),e.fromRectLike=function(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}},e.validate=function(t){if("object"!==typeof t||null==t)return F.left(new Error("not an object"));if(!Object.keys(e.empty).every((function(e){return e in t})))return F.left(new Error("object does not have all required rect props"));var n=t;return Math.round(n.right-n.left)!==Math.round(n.width)?F.left(new Error("incorrect horizontal dimensions, expected width: ".concat(n.right-n.left,", got: ").concat(n.width))):Math.round(n.bottom-n.top)!==Math.round(n.height)?F.left(new Error("incorrect vertical dimensions, expected height: ".concat(n.bottom-n.top,", got: ").concat(n.height))):n.top>n.bottom?F.left(new Error("incorrect vertical dimensions, expected top ".concat(n.top," to be less than bottom ").concat(n.bottom))):n.left>n.right?F.left(new Error("incorrect horizontal dimensions, expected left ".concat(n.left," to be less than right ").concat(n.right))):n.width<0?F.left(new Error("width cannot be negative")):n.height<0?F.left(new Error("height cannot be negative")):F.right(n)},e.empty={top:0,right:0,bottom:0,left:0,height:0,width:0},e.fromEl=function(e){return e.getBoundingClientRect()};var t,n;e.hasIntersection=function(e,t){return function(e,t){return Math.ceil(e.bottom)>=Math.floor(t.top)&&Math.ceil(e.top)<=Math.floor(t.bottom)||Math.ceil(t.bottom)>=Math.floor(e.top)&&Math.ceil(t.top)<=Math.floor(e.bottom)}(e,t)&&function(e,t){return Math.ceil(e.right)>=Math.floor(t.left)&&Math.ceil(e.left)<=Math.floor(t.right)||Math.ceil(t.right)>=Math.floor(e.left)&&Math.ceil(t.left)<=Math.floor(e.right)}(e,t)},e.intersection=function(t,n){return e.hasIntersection(t,n)?(0,P.pipe)(I.some({top:Math.floor(Math.max(t.top,n.top)),bottom:Math.ceil(Math.min(t.bottom,n.bottom)),left:Math.floor(Math.max(t.left,n.left)),right:Math.ceil(Math.min(t.right,n.right))}),I.chain((function(t){return I.fromEither(e.validate((0,_.__assign)((0,_.__assign)({},t),{width:t.right-t.left,height:t.bottom-t.top})))}))):I.none},e.growByBox=function(t,n){var r=t.height,i=t.width;return e.validate({top:n.top-r/2,right:n.right+i/2,bottom:n.bottom+r/2,left:n.left-i/2,height:n.height+r,width:n.width+i})},e.shrinkTop=function(t,n){return e.validate((0,_.__assign)((0,_.__assign)({},n),{top:n.top+t,height:n.height-t}))},e.shrinkBottom=function(t,n){return e.validate((0,_.__assign)((0,_.__assign)({},n),{bottom:n.bottom-t,height:n.height-t}))},e.scale=function(t,n){var r=n.height*t,i=n.width*t;return e.growByBox({width:i,height:r},n)},e.normalize=function(t){return e.validate({top:Math.ceil(t.top),bottom:Math.ceil(t.bottom),left:Math.ceil(t.left),right:Math.ceil(t.right),height:Math.ceil(t.height),width:Math.ceil(t.width)})},e.join=function(){for(var t=[],n=0;n=Math.trunc(r)&&Math.trunc(e.left)<=Math.trunc(n)&&Math.trunc(e.right)>=Math.trunc(n)},e.getMedian=function(t,n){return(0,P.pipe)(e.intersection(t,n),I.map((function(e){var r=Math.trunc(e.width/2),i=Math.trunc(e.height/2),o={x:Math.trunc(e.left+r),y:Math.trunc(e.top+i)};return{side:0===r?t.left0?t(j.fromRectLike(e[0].contentRect)):V().warn("ResizeObserver was fired but the callback didn't have any entries")}))}));return n.observe(e),function(){return n.disconnect()}})).pipe(J.b(D.Q1,(function(e){return V().error("Failed to instantiate ResizeObservable.",e)})))}function te(e,t){return q((function(n){var r=new MutationObserver(n);return r.observe(e,t),function(){return r.disconnect()}}))}var ne=K.P((function(){return Y.R(window,"resize")})).pipe(Z.B())},93509:function(e,t,n){"use strict";n.d(t,{Rp:function(){return o.R},bw:function(){return a.b},d:function(){return s},xQ:function(){return r.xQ}});var r=n(24206),i=n(52811),o=n(76711),a=n(38325),s=i.d},81230:function(e,t,n){"use strict";n.d(t,{cp:function(){return u},oA:function(){return c}});var r=n(50582),i=n(65496),o=n(30175),a=n(82297),s=n(19761);function u(e){return i.w(r.fold((function(){return o.E}),e))}var c=u(a.of);s.x((function(e,t){return r.isNone(e)&&r.isNone(t)||r.isSome(e)&&r.isSome(t)}))},73475:function(e,t,n){"use strict";n.d(t,{HP:function(){return u},Q1:function(){return o},RN:function(){return s}});var r=n(19936),i=n(63042);var o=r.constVoid;var a;!function(e){e[e.lt=-1]="lt",e[e.eq=0]="eq",e[e.gt=1]="gt"}(a||(a={}));var s=function(e,t){return function(n){return n?e:t}};function u(e,t){var n,r=new i.z6(50);return(n={},n[e.name]=function(){for(var n=[],i=0;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},t.isObject=function(e){return null!=e&&!Array.isArray(e)&&"object"===typeof e},t.isEmptyObject=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.toArray=function(e){return Object.keys(e).map((function(t){return e[t]}))},t.immutableUpdate=u,t.immutableUpdateC=(0,a.curry)(u),t.immutableUpdateOption=c,t.immutableUpdateOptionC=(0,a.curry)(c),t.merge=function(e,t){return M(M({},e),t)},t.update=m,t.deepUpdate=function e(t,n){var r={};for(var i in t){var o=n[i];void 0!==o?r[i]="object"===typeof o?e(t[i],o):o:r[i]=t[i]}return r},t.modify=function(e){return function(t){return m(t,e)}},t.keys=l,t.filterKeys=d,t.filterKeysBy=function(e){return function(t){return d(t,e)}},t.pick=function(e){return function(t){return t[e]}},t.pickProps=function(){for(var e=[],t=0;t=e.length||t>=e.length)return e;for(var r=new Set,i=Math.floor(t+n>t?Math.random()*(n-t)+1:0);r.size0;){var i=Math.floor(Math.random()*r);r--,t=[n[i],n[r]],n[r]=t[0],n[i]=t[1]}return n}function l(e,t){for(var n=-1,r=e.length;n+1!==r;){var i=n+(r-n>>1);t(e[i])?n=i:r=i}var o=n+1;return o===e.length?s.none:s.some(o)}function d(e,t,n){return l(e,(0,a.W)((0,i.gt)(n))(t))}function h(e){for(var t=[],n=1;n=0)for(var r=t;r=0)for(var r=t;r=0;--r)if(n(e[r]))return s.some({index:r,value:e[r]});return s.none}function g(e,t,n,r){return(0,o.pipe)(f(e,t,r),s.alt((function(){return y(e,n,r)})))}function E(e,t,n){return g(e,t+1,t-1,n)}function v(e,t,n){return(0,o.pipe)(g(e,t+1,t-1,(function(e){return s.isSome(n(e))})),s.chain((function(e){return(0,o.pipe)(n(e.value),s.map((function(t){return(0,r.__assign)((0,r.__assign)({},e),{value:t})})))})))}function b(e,t,n){return g(e,t,t-1,n)}function w(e,t){for(var n,r=function(r){var i=t.findIndex((function(t){return e[r].equals(t)}));-1!==i&&(e.splice(r--,1),t.splice(i,1)),n=r},i=0;i0&&l.push("".concat(p(c)," ").concat(o?"h":(0,i.pluralize)(c,"hour","hours"))),(M>0||!s)&&l.push("".concat(p(M)," ").concat(o?"min":(0,i.pluralize)(M,"minute","minutes"))),s&&l.push("".concat(p(m)," ").concat(o?"sec":(0,i.pluralize)(m,"second","seconds"))),l.join(" ")}var g,E,v=function(e){return e.h?"".concat(e.h," hr ").concat(e.m," min"):e.m>0?"".concat(e.m," min ").concat(e.s," sec"):"".concat(e.s," sec")};!function(e){var t=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.?\d*[Z]$/,n=/^(\d{4}-\d{2}-\d{2}).(\d{2}:\d{2}:\d{2}(?:.\d+)?)$/;function i(e){return e.getTime()}e.create=function(e){return(0,r.kG)(t.test(e),"provided string should have timezone",e),new Date(e)},e.copy=function(e){return new Date(e)},e.now=function(){return new Date},e.add=function(e,t){return new Date(e.getTime()+t.getTime())},e.subtract=function(e,t){return new Date(e.getTime()-t.getTime())},e.toSeconds=function(e){return Math.round(e.getTime()/1e3)},e.toTimestamp=i,e.shortTime=function(e){var t=e.getHours(),n=t>=12?"pm":"am",r="0".concat(t=t%12||12).slice(-2),i=e.getMinutes(),o="0".concat(i).slice(-2);return"".concat(r,":").concat(o," ").concat(n)},e.fullDate=function(e){var t=e.toLocaleString("en-us",{month:"long"});return"".concat(t," ").concat(e.getDate(),", ").concat(e.getFullYear())},function(t){t.now=function(){return i(e.now())},t.add=function(e,t){return e+t},t.subtract=function(e,t){return e-t},t.toSeconds=function(e){return Math.round(e/1e3)},t.toLocal=function(e){return new Date(e)},t.toISODate=function(t){return e.Timestamp.toLocal(t).toISOString()}}(e.Timestamp||(e.Timestamp={})),e.daysAgo=function(t,n){var r=n*d;return e.Timestamp.subtract(e.toTimestamp(t),r)},e.monthsAgo=function(t,n){var r=e.copy(t);return r.setMonth(t.getMonth()-n),e.toTimestamp(r)},e.parseDate=function(r){var i=""+r,a=i.match(n);if(a){var s=a[1],u=a[2];i="".concat(s,"T").concat(u,"Z")}if(a||i.match(t))return o.fromNullable(new Error("Failed to parse date from: ".concat(r)))(e.create(i));var c=new Date(i);return isNaN(c.getTime())?o.left(new Error("Failed to parse date from: ".concat(r))):o.fromNullable(new Error("Failed to parse date from: ".concat(r)))(c)},e.Eq={equals:function(e,t){return e.getTime()===t.getTime()}}}(g||(g={})),function(e){function t(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()))}!function(t){t.now=function(){return e.toTimestamp(e.now())}}(e.Timestamp||(e.Timestamp={})),e.toTimestamp=function(e){return e.getTime()},e.now=function(){return t(g.now())},e.fromLocal=t}(E||(E={}))},17563:function(e,t,n){"use strict";n.d(t,{$w:function(){return d},CE:function(){return M},J_:function(){return h},L0:function(){return l},ej:function(){return a},j_:function(){return f},kG:function(){return c},mG:function(){return s},sH:function(){return o},u0:function(){return u},vE:function(){return m}});var r=n(29388),i=n(92547),o=function(e){void 0===e&&(e="(nomessage)"),Error.call(this,e),"captureStackTrace"in Error?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name=this.constructor.name};o.prototype=Object.create(Error.prototype);var a=function(e){function t(t,n){void 0===n&&(n="empty");var r=e.call(this,"Invariant condition failed: "+(Boolean(t)?t:"(unnamed)"))||this;return r.input=n,r}return(0,r.__extends)(t,e),t.prototype.toString=function(){return"".concat(this.message," on input[").concat(this.input,"]")},t}(o),s=function(e){function t(t){return e.call(this,t)||this}return(0,r.__extends)(t,e),t}(o),u=function(e){function t(t){return e.call(this,"Matching not exhaustive".concat(Boolean(t)?": unexpected value ".concat(JSON.stringify(t)):""))||this}return(0,r.__extends)(t,e),t}(o);function c(e,t,n){if(!e){var r=new a("string"===typeof t?t:t&&t(),void 0!==n&&"string"!==typeof n?n():n);throw r.stack=r.stack.split("\n").filter((function(e){return-1===e.indexOf("errors.")})).join("\n"),r}}function M(e,t){if(null==e)throw new a("string"===typeof t?t:t&&t());return e}function m(e){throw new u(e)}function l(e){return e}function d(e){if(!(0,i.isObject)(e))return!1;var t=e.name,n=e.message;return"FetchError"===t&&"Client fetch error: Failed to fetch"===n||"TypeError"===t&&"NetworkError when attempting to fetch resource."===n||"TypeError"===t&&"Failed to fetch"===n}function h(e){return"undefined"!==typeof e&&(e>=500&&e<=599)}function f(e){return"object"===typeof e&&null!==e&&"message"in e}},3887:function(e,t,n){"use strict";n.d(t,{$K:function(){return y},As:function(){return _},CI:function(){return N},D6:function(){return a},Dw:function(){return E},Er:function(){return B},HP:function(){return P},Ib:function(){return C},Jx:function(){return S},Kg:function(){return p},Ky:function(){return s},Nk:function(){return w},PU:function(){return T},Q1:function(){return M},RN:function(){return k},Sm:function(){return d},TN:function(){return g},V3:function(){return v},Vo:function(){return u},W9:function(){return f},ZT:function(){return c},_v:function(){return R},ff:function(){return h},gw:function(){return b},iR:function(){return A},or:function(){return m},qu:function(){return H},wD:function(){return o},xD:function(){return l}});var r=n(19936),i=n(63042);function o(e){return!/[!$%^&*()_+|~={}\[\]:";<>?,.\/]/g.test(e)&&e.trim().length>0}function a(e){return new RegExp(["[a-z0-9!#$%&'*+=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+=?^_`{|}~-]+)*","@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"].join("")).test(e)}function s(e){setTimeout(e,0)}function u(e){var t,n=!1;return{get value(){return n||(t=e(),n=!0),t}}}var c=r.constVoid,M=r.constVoid;function m(e,t){return e||t}function l(e,t){return e&&t}function d(e,t){return e+t}function h(e){return function(t){return!e(t)}}function f(){for(var e=[],t=0;t0}var v,b=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function w(e){var t;return function(){for(var n=[],r=0;rt?v.gt:e===t?v.eq:v.lt},k=function(e,t){return function(n){return n?e:t}};function P(e,t){var n,r=new i.z6(50);return(n={},n[e.name]=function(){for(var n=[],i=0;i-1}function T(e){return function(t){return function(n){return e(n)(t)}}}var R=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function B(e){return null===e?(console.warn("WARN: ded.getText returned null"),""):e}},29295:function(e,t,n){"use strict";n.r(t),n.d(t,{A:function(){return o},ArrayUtils:function(){return E},Buffer:function(){return f},Comparable:function(){return h.V3},Cookie:function(){return v},CustomError:function(){return d.sH},DOM:function(){return r},DateUtils:function(){return b},E:function(){return H},Either:function(){return l},Eq:function(){return a},Fullstory:function(){return ue},G:function(){return s},IOOption:function(){return gt},IllegalArgumentError:function(){return d.mG},InvariantError:function(){return d.ej},Keys:function(){return p},M:function(){return u},MatchingNotExhaustiveError:function(){return d.u0},MouseEventUtils:function(){return y},NEA:function(){return $e},NotEmpty:function(){return se},O:function(){return Qe},ObjectUtils:function(){return de},Ord:function(){return c},PromiseT:function(){return nt},R:function(){return M},RD:function(){return m},ReactContextUtils:function(){return Bt},RecoverableOperation:function(){return Dt.T},StringUtils:function(){return he},SymmetricDiff:function(){return Ee},TE:function(){return Nt},TH:function(){return i},TangentialPoint:function(){return fe},URLWithParams:function(){return Pe.Z},Version:function(){return pe.G},Worker:function(){return g},Zipper:function(){return _e},and:function(){return h.xD},andP:function(){return h.W9},assertNever:function(){return d.vE},assertNeverSilent:function(){return d.L0},choose:function(){return h.RN},compare:function(){return h.qu},constVoid:function(){return h.Q1},createValidUrl:function(){return Ft.F},curry:function(){return be.W},curryFlip:function(){return h.PU},decode:function(){return h.Jx},delay:function(){return h.gw},emailValidation:function(){return h.D6},expectNonNull:function(){return d.CE},getWebSocket:function(){return h.Ib},invariant:function(){return d.kG},isClientFetchError:function(){return d.$w},isDefined:function(){return h.$K},isErrorHasMessage:function(){return d.j_},isServerErrorCode:function(){return d.J_},isSetsEq:function(){return h.As},lazy:function(){return h.Vo},memoize:function(){return h.HP},nameValidation:function(){return h.wD},noop:function(){return h.ZT},not:function(){return h.ff},notEmpty:function(){return h.Dw},or:function(){return h.or},orP:function(){return h.Kg},rand:function(){return h.TN},registerDebugHelper:function(){return h.iR},safeDedGetText:function(){return h.Er},sleep:function(){return h._v},sum:function(){return h.Sm},throttleByPromise:function(){return h.Nk},tick:function(){return h.Ky},valueFromEnum:function(){return h.CI}});var r={};n.r(r),n.d(r,{Box:function(){return F},CSS:function(){return te},Guardians:function(){return D},Rect:function(){return I},Scrollbar:function(){return re},absToRelative:function(){return U},absToRelativeBuggy:function(){return W},appendTo:function(){return Me},classes:function(){return ee},cloneWithoutChildren:function(){return ce},createNested:function(){return j},findAll:function(){return z},getFirstChild:function(){return O},getFirstSelectionRange:function(){return me},getLastChild:function(){return x},getOffset:function(){return J},getParentAt:function(){return L},getTreeBetween:function(){return le},hasParentWithAttribute:function(){return R},hasParentWithClassName:function(){return T},isDisabled:function(){return K},isFocusable:function(){return $},isHTMLElement:function(){return q},isHidden:function(){return Y},isNativelyFocusable:function(){return V},isParent:function(){return B},isTabbable:function(){return Z},moveChildrenTo:function(){return Q},preventDefault:function(){return N},relativeToAbs:function(){return X},renderDot:function(){return ae},renderLine:function(){return ie},renderRect:function(){return oe},svgVerticalAlignment:function(){return ne},traverseMutate:function(){return G}});var i={};n.r(i),n.d(i,{Bifunctor:function(){return Ce.Bifunctor},Foldable:function(){return Ce.Foldable},Functor:function(){return Ce.Functor},Traversable:function(){return Ce.Traversable},URI:function(){return Ce.URI},__esModule:function(){return Ce.__esModule},bimap:function(){return Ce.bimap},both:function(){return Ce.both},fold:function(){return Ce.fold},foldMap:function(){return Ce.foldMap},fromOptions:function(){return Ce.fromOptions},getApplicative:function(){return Ce.getApplicative},getEq:function(){return Ce.getEq},getLeft:function(){return Ce.getLeft},getLeftOnly:function(){return Ce.getLeftOnly},getMonad:function(){return Ce.getMonad},getRight:function(){return Ce.getRight},getRightOnly:function(){return Ce.getRightOnly},getSemigroup:function(){return Ce.getSemigroup},getShow:function(){return Ce.getShow},isBoth:function(){return Ce.isBoth},isLeft:function(){return Ce.isLeft},isRight:function(){return Ce.isRight},left:function(){return Ce.left},leftOrBoth:function(){return Ce.leftOrBoth},map:function(){return Ce.map},mapLeft:function(){return Ce.mapLeft},reduce:function(){return Ce.reduce},reduceRight:function(){return Ce.reduceRight},right:function(){return Ce.right},rightOrBoth:function(){return Ce.rightOrBoth},sequence:function(){return Ce.sequence},swap:function(){return Ae},these:function(){return Ce.these},toTuple:function(){return Ce.toTuple},traverse:function(){return Ce.traverse}});var o={};n.r(o),n.d(o,{UniqueArray:function(){return Te},compact:function(){return S.compact},comprehension:function(){return De},cons:function(){return S.cons},filter:function(){return S.filter},filterMap:function(){return S.filterMap},findLastIndex:function(){return S.findLastIndex},isEmpty:function(){return S.isEmpty},isNonEmpty:function(){return S.isNonEmpty},last:function(){return S.last},map:function(){return S.map},partition:function(){return S.partition},reduce:function(){return S.reduce},seededShuffle:function(){return Re},separate:function(){return S.separate},traversePairs:function(){return Be}});var a={};n.r(a),n.d(a,{Contravariant:function(){return C.Contravariant},URI:function(){return C.URI},__esModule:function(){return C.__esModule},contramap:function(){return C.contramap},eq:function(){return C.eq},eqBoolean:function(){return C.eqBoolean},eqDate:function(){return C.eqDate},eqEmpty:function(){return Ie},eqNumber:function(){return C.eqNumber},eqStrict:function(){return C.eqStrict},eqString:function(){return C.eqString},eqToInvariant:function(){return Fe},fromEquals:function(){return C.fromEquals},getMonoid:function(){return C.getMonoid},getStructEq:function(){return C.getStructEq},getTupleEq:function(){return C.getTupleEq},strictEqual:function(){return C.strictEqual}});var s={};n.r(s),n.d(s,{__esModule:function(){return Oe.__esModule},getNewtypeGroup:function(){return ze},getStructGroup:function(){return je},groupSum:function(){return Le}});var u={};n.r(u),n.d(u,{Merger:function(){return Je},URI:function(){return Ge},diffKeys:function(){return Ve},getEqByValue:function(){return Ue},getFoldableWithIndex:function(){return We},leftToRight:function(){return Ke},rightToLeft:function(){return Ye},symmetricDiff:function(){return Xe}});var c={};n.r(c),n.d(c,{Contravariant:function(){return qe.Contravariant},URI:function(){return qe.URI},__esModule:function(){return qe.__esModule},between:function(){return qe.between},betweenExclusive:function(){return et},clamp:function(){return qe.clamp},contramap:function(){return qe.contramap},fromCompare:function(){return qe.fromCompare},geq:function(){return qe.geq},getDualOrd:function(){return qe.getDualOrd},getMonoid:function(){return qe.getMonoid},getSemigroup:function(){return qe.getSemigroup},getTupleOrd:function(){return qe.getTupleOrd},gt:function(){return qe.gt},leq:function(){return qe.leq},lt:function(){return qe.lt},max:function(){return qe.max},min:function(){return qe.min},ord:function(){return qe.ord},ordBoolean:function(){return qe.ordBoolean},ordDate:function(){return qe.ordDate},ordNumber:function(){return qe.ordNumber},ordString:function(){return qe.ordString}});var M={};n.r(M),n.d(M,{asks:function(){return it.asks},composeS:function(){return at},createFrom:function(){return ot},local:function(){return it.local},map:function(){return it.map}});var m={};n.r(m),n.d(m,{Type:function(){return tt},URI:function(){return st},ap:function(){return At},apFirst:function(){return _t},apSecond:function(){return Ht},bimap:function(){return kt},chain:function(){return St},chainFirst:function(){return Ct},error:function(){return Mt},fatal:function(){return mt},flatten:function(){return Pt},fold:function(){return yt},getEq:function(){return pt},inProgress:function(){return ut},isError:function(){return ht},isFatal:function(){return ft},isInProgress:function(){return lt},isSuccess:function(){return dt},map:function(){return bt},mapLeft:function(){return wt},remoteData:function(){return Et},success:function(){return ct}});var l,d=n(17563),h=n(3887);!function(e){function t(e){return"left"===e.kind}e.left=function(e){return{kind:"left",value:e}},e.right=function(e){return{kind:"right",value:e}},e.isLeft=t,e.isRight=function(e){return"right"===e.kind},e.flatMap=function(e,n){return t(e)?e:n(e.value)},e.fromPromise=function(t){return t.then((function(t){return e.right(t)})).catch((function(t){return e.left(t)}))}}(l||(l={}));var f,p,y,g=function(){function e(e,t,n,r){void 0===r&&(r=20),this._task=e,this._buffer=t,this._run=n,this._batchSize=r,this._sub=null}return e.prototype.put=function(e){this._buffer.put(e),null===this._sub&&this._buffer.nonEmpty&&this._scheduleWork()},e.prototype.order=function(e){this._buffer.order(e)},e.prototype.flush=function(){this._task(this._buffer.take(this._buffer.length))},Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.length},enumerable:!1,configurable:!0}),e.prototype._scheduleWork=function(){var e=this;this._sub=this._run((function(){e._task(e._buffer.take(e._batchSize)),e._sub=null,e._buffer.nonEmpty&&e._scheduleWork()}))},e.prototype.shutdown=function(){this._sub&&(this._sub.unsubscribe(),this._sub=null)},e}();!function(e){var t=function(){function e(e){this._predicate=e,this._queueMap=new Set,this._queue=[]}return e.prototype.put=function(e){var t,n=this,r=new Set,i=e.reduce((function(e,t){return r.has(t.id)||n._queueMap.has(t.id)||!n._predicate(t)||(r.add(t.id),e.push(t)),e}),[]);(t=this._queue).push.apply(t,i),i.forEach((function(e){var t=e.id;return n._queueMap.add(t)}))},e.prototype.take=function(e){for(var t=0,n=[];t0},enumerable:!1,configurable:!0}),e}();e.LazyPredicateUniq=t}(f||(f={})),function(e){e.ESC_CODE=27,e.ENTER_CODE=13,e.SPACE_CODE=32}(p||(p={})),function(e){e.isLeftMouseButtom=function(e){return 1===e.which||0===e.button}}(y||(y={}));var E=n(25957),v=n(7743),b=n(99761),w=n(29388),S=n(83191),C=n(42666),A=n(19936),_=n(86426),H=n(58291),k=n(25264),P=n(50582);function N(e){return e.preventDefault(),e}function T(e,t){if(null==(null===e||void 0===e?void 0:e.parentElement))return!1;var n=e.className;return"string"===typeof n&&n.indexOf(t)>-1||T(e.parentElement,t)}function R(e,t,n){if(null==(null===e||void 0===e?void 0:e.parentElement))return!1;var r=e.attributes.getNamedItem(t);return!(!r||r.value!==n)||R(e.parentElement,t,n)}function B(e,t){if(null==t)return!1;for(;t.parentNode;){if(e===t.parentNode)return!0;t=t.parentNode}return!1}var D,F,I,x=function e(t){return t.lastChild?e(t.lastChild):t},O=function e(t){return t.firstChild?e(t.firstChild):t},L=function e(t,n){return(0,_.pipe)(H.tryCatchError((function(){return(0,d.kG)(n>=0,"Cannot go up"),(0,d.kG)(0===n||null!==t.parentElement,"There is not parent to go up"),t})),k.chain((function(t){return 0===n?k.right(t):1===n?k.right(t.parentElement):e(t.parentElement,n-1)})))},j=function e(t,n){return(0,_.pipe)(H.tryCatchError((function(){return(0,d.kG)(n>0,"Level should be gt than 0"),document.createElement(t)})),k.chain((function(r){return 1===n?k.right(r):(0,_.pipe)(e(t,n-1),k.map((function(e){return r.appendChild(e),r})))})))},z=function e(t){return function(n){return t(n)?[n]:n.nodeType===Node.ELEMENT_NODE||n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.flatten(Array.from(n.childNodes).map(e(t))):[]}},Q=function(e,t){return e.append.apply(e,Array.from(t.childNodes)),e},G=function e(t,n,r,i){return void 0===i&&(i=100),(0,_.pipe)(H.tryCatchError((function(){return(0,d.kG)(i>0,"Max allowed travers level exceeded"),D.isDocumentFragment(t)?t:r(t)})),k.chain((function(t){return D.isHTMLElement(t)&&n(t)||D.isDocumentFragment(t)?(0,_.pipe)(Array.from(t.childNodes).map((function(t){return(0,_.pipe)(e(t,n,r,i-1),k.map((function(e){return[t,e]})))})),S.array.sequence(k.either),k.chain((function(e){return H.tryCatchError((function(){e.forEach((function(e){var n=e[0],r=e[1];(0,d.kG)(n.parentNode===t,"Orignal node moved, the proper position cannot be determined"),n!==r&&(t.insertBefore(r,n),t.removeChild(n))}))}))})),k.map((function(){return t}))):k.right(t)})))};function W(e,t){return{top:e.top-t.top,bottom:e.bottom-t.bottom,left:e.left-t.left,right:e.right-t.right,width:e.width,height:e.height}}function U(e,t){return{top:e.top-t.top,bottom:e.bottom-t.top,left:e.left-t.left,right:e.right-t.left,width:e.width,height:e.height}}function X(e,t){return{top:e.top+t.top,bottom:e.bottom+t.top,left:e.left+t.left,right:e.right+t.left,width:e.width,height:e.height}}function J(e){if(null==e)throw new Error("elem should not be null or undefined");var t=e.getBoundingClientRect();if(t.width||t.height){var n=e.ownerDocument,r=window,i=n.documentElement;return{top:t.top+r.pageYOffset-i.clientTop,left:t.left+r.pageXOffset-i.clientLeft,width:t.width,height:t.height}}return t}function K(e){return void 0!==e.dataset&&"true"===e.dataset.disabled}function Y(e){var t=window.getComputedStyle(e),n=e.getAttribute("aria-hidden");return"none"===t.display||"hidden"===t.visibility||"true"===n}function Z(e){var t=e.getAttribute("tabIndex"),n=e.getAttribute("inert");return null!=t&&+t>-1&&null==n}function V(e){return["INPUT","IFRAME","SELECT"].includes(e.tagName)||e.hasAttribute("href")}function $(e){return(0,h.W9)((0,A.not)((0,h.Kg)(K,Y)),(0,h.Kg)(V,Z))(e)}function q(e){return e instanceof HTMLElement}function ee(){for(var e=[],t=0;tn.bottom?k.left(new Error("incorrect vertical dimensions, expected top ".concat(n.top," to be less than bottom ").concat(n.bottom))):n.left>n.right?k.left(new Error("incorrect horizontal dimensions, expected left ".concat(n.left," to be less than right ").concat(n.right))):n.width<0?k.left(new Error("width cannot be negative")):n.height<0?k.left(new Error("height cannot be negative")):k.right(n)},e.empty={top:0,right:0,bottom:0,left:0,height:0,width:0},e.fromEl=function(e){return e.getBoundingClientRect()};var t,n;e.hasIntersection=function(e,t){return function(e,t){return Math.ceil(e.bottom)>=Math.floor(t.top)&&Math.ceil(e.top)<=Math.floor(t.bottom)||Math.ceil(t.bottom)>=Math.floor(e.top)&&Math.ceil(t.top)<=Math.floor(e.bottom)}(e,t)&&function(e,t){return Math.ceil(e.right)>=Math.floor(t.left)&&Math.ceil(e.left)<=Math.floor(t.right)||Math.ceil(t.right)>=Math.floor(e.left)&&Math.ceil(t.left)<=Math.floor(e.right)}(e,t)},e.intersection=function(t,n){return e.hasIntersection(t,n)?(0,_.pipe)(P.some({top:Math.floor(Math.max(t.top,n.top)),bottom:Math.ceil(Math.min(t.bottom,n.bottom)),left:Math.floor(Math.max(t.left,n.left)),right:Math.ceil(Math.min(t.right,n.right))}),P.chain((function(t){return P.fromEither(e.validate((0,w.__assign)((0,w.__assign)({},t),{width:t.right-t.left,height:t.bottom-t.top})))}))):P.none},e.growByBox=function(t,n){var r=t.height,i=t.width;return e.validate({top:n.top-r/2,right:n.right+i/2,bottom:n.bottom+r/2,left:n.left-i/2,height:n.height+r,width:n.width+i})},e.shrinkTop=function(t,n){return e.validate((0,w.__assign)((0,w.__assign)({},n),{top:n.top+t,height:n.height-t}))},e.shrinkBottom=function(t,n){return e.validate((0,w.__assign)((0,w.__assign)({},n),{bottom:n.bottom-t,height:n.height-t}))},e.scale=function(t,n){var r=n.height*t,i=n.width*t;return e.growByBox({width:i,height:r},n)},e.normalize=function(t){return e.validate({top:Math.ceil(t.top),bottom:Math.ceil(t.bottom),left:Math.ceil(t.left),right:Math.ceil(t.right),height:Math.ceil(t.height),width:Math.ceil(t.width)})},e.join=function(){for(var t=[],n=0;n=Math.trunc(r)&&Math.trunc(e.left)<=Math.trunc(n)&&Math.trunc(e.right)>=Math.trunc(n)},e.getMedian=function(t,n){return(0,_.pipe)(e.intersection(t,n),P.map((function(e){var r=Math.trunc(e.width/2),i=Math.trunc(e.height/2),o={x:Math.trunc(e.left+r),y:Math.trunc(e.top+i)};return{side:0===r?t.left=0,"quality can not be negavite: ".concat(i)),(0,d.kG)(i<=1,"quality can be higher than 1: ".concat(i)),i})))}t.empty={quality:0,point:e.empty},t.qualityOfIntersection=n,t.byViewport=function(e,t){return{quality:(0,_.pipe)(n(e,t),P.getOrElse((function(){return 0})))+(0,_.pipe)(I.scale(2,t),k.chain(I.normalize),P.fromEither,P.chain((function(t){return n(e,t)})),P.getOrElse((function(){return 0}))),point:o(t)}},t.fromZone=function(e,n,r){return(0,_.pipe)(S.array.traverse(k.either)(r,(function(e){return i(n,e)})),k.chain((function(e){var t=e[0],n=e[1];return I.join(t,n)})),k.chain((function(e){return F.placeIntoRect(n,e)})),k.map((function(n){return n.map((function(n){return t.byViewport(e,n)}))})))}}(r=e.Qualified||(e.Qualified={})),function(e){e.build=function(e,t,n){return(0,_.pipe)(n,ye.map((function(n){return r.fromZone(e,t,n)})))}}(e.QualifiedVariants||(e.QualifiedVariants={})),function(e){var t;!function(e){e[e.left=0]="left",e[e.middle=1]="middle",e[e.right=2]="right",e[e.edges=20]="edges",e[e.any=210]="any"}(t=e.Placement||(e.Placement={})),e.takeBy=function(e,t){return function(n){return(0,_.pipe)(n,ye.reduceWithIndex({point:r.empty,side:e},(function(n,r,i){return(0,_.pipe)(i,k.map((function(i){return i.filter((function(r,i){return t.toString().includes(i.toString())&&e===n})).reduce((function(e,t){return t.quality>e.point.quality?{point:t,side:n}:e}),r)})),H.unsafeGet)}))).point}},e.preferBy=function(e,t){return function(n){return(0,_.pipe)(n,ye.reduceWithIndex({point:r.empty,side:e},(function(n,r,i){return(0,_.pipe)(i,k.map((function(i){return i.reduce((function(r,i,o){return i.quality>r.point.quality||i.quality===r.point.quality&&t.toString().includes(o.toString())&&e===n?{point:i,side:n}:r}),r)})),H.unsafeGet)}))).point}},e.preferTopMiddle=e.preferBy("top",t.middle),e.preferTopEdges=e.preferBy("top",t.edges)}(e.Selector||(e.Selector={}))}(fe||(fe={}));var Ee,ve,be=n(67978),we=n(25660),Se=n(66215),Ce=n(54827);function Ae(e){return(0,Ce.isBoth)(e)?(0,Ce.both)(e.right,e.left):(0,k.swap)(e)}!function(e){function t(t,n,r){return function(i){return e.fromMutation((function(o){(0,_.pipe)(i,e.forEach((function(e,n){return o.set(n,Ce.left(t(n,e)))}),(function(e,t,r){return(0,_.pipe)(n(r,e,t),(function(e){var t=e[0],n=e[1];return o.set(r,Ce.both(t,n))}))}),(function(e,t){return o.set(t,Ce.right(r(t,e)))})))}))}}function n(t,n,r){return function(i){return e.fromMutation((function(o){(0,_.pipe)(i,e.forEach((function(e,n){return t(n,e)&&o.set(n,Ce.left(e))}),(function(e,t,r){return n(r,e,t)&&o.set(r,Ce.both(e,t))}),(function(e,t){return r(t,e)&&o.set(t,Ce.right(e))})))}))}}function r(e){return function(t,n,r){return function(i){var o=ve.iso().unwrap(i),a=e.empty;return o.forEach((function(i,o){a=e.concat(a,Ce.fold((function(e){return t(o,e)}),(function(e){return r(o,e)}),(function(e,t){return n(o,e,t)}))(i))})),a}}}e.reduce=function(e,t,n,r){return function(i){var o=ve.iso().unwrap(i),a=e;return o.forEach((function(e,i){a=Ce.fold((function(e){return t(a,e,i)}),(function(e){return r(a,e,i)}),(function(e,t){return n(a,e,t,i)}))(e)})),a}},e.mapWithIndex=t,e.map=function(e,n,r){return t((function(t,n){return e(n)}),(function(e,t,r){return n(t,r)}),(function(e,t){return r(t)}))},e.filterWithIndex=n,e.filter=function(e,t,r){return n((function(t,n){return e(n)}),(function(e,n,r){return t(n,r)}),(function(e,t){return r(t)}))},e.foldMapWithIndex=r,e.foldMap=function(e){return function(t,n,i){return r(e)((function(e,n){return t(n)}),(function(e,t,r){return n(t,r)}),(function(e,t){return i(t)}))}},e.forEach=function(e,t,n){return function(r){ve.iso().unwrap(r).forEach((function(r,i){Ce.fold((function(t){return e(t,i)}),(function(e){return n(e,i)}),(function(e,n){return t(e,n,i)}))(r)}))}},e.fromMutation=function(e){var t=ve.empty();return e(t),ve.iso().wrap(t)},e.empty=function(){return ve.iso().wrap(ve.empty())},e.concat=function(e,t,n){var r=ve.iso();return r.wrap(ve.concat(e,r.unwrap(t),r.unwrap(n)))},e.inverse=function(e){var t=ve.iso();return(0,_.pipe)(t.unwrap(e),we.map(Ae),t.wrap)},e.getEq=function(e,t){return Se.getEq(ve.getEq(e,t))},e.toJSON=function(e){return Array.from(ve.iso().unwrap(e))},e.getShow=function(e,t){return ve.getShow(e,t)},e.isEmpty=function(e){return 0===ve.iso().unwrap(e).size}}(Ee||(Ee={})),function(e){e.iso=function(){return Se.iso()},e.empty=function(){return new Map};e.concat=function(e,t,n){var r=new Map(t);return n.forEach((function(t,n){r.has(n)?(0,_.pipe)(function(e,t,n){return Ce.getEq(e,e).equals(t,n)?P.some(n):Ce.getEq(e,e).equals(t,Ae(n))?P.none:Ce.isLeft(t)?Ce.fold((function(){return P.some(Ce.left(t.left))}),(function(e){return P.some(Ce.both(t.left,e))}),(function(n,r){return e.equals(t.left,r)?P.none:P.some(Ce.both(t.left,r))}))(n):Ce.isRight(t)?Ce.fold((function(){return P.none}),(0,A.flow)(Ce.right,P.some),(function(e,t){return P.some(Ce.right(t))}))(n):Ce.fold((function(){return P.some(Ce.left(t.left))}),(0,A.flow)(Ce.right,P.some),(function(n,r){return e.equals(t.left,r)?P.none:P.some(Ce.both(t.left,r))}))(n)}(e,r.get(n),t),P.fold((function(){r.delete(n)}),(function(e){return r.set(n,e)}))):r.set(n,t)})),r},e.inverse=we.map(Ae),e.getEq=function(e,t){return we.getEq(e,Ce.getEq(t,t))},e.getShow=function(e,t){return we.getShow(e,Ce.getShow(t,t))}}(ve||(ve={}));var _e,He=n(45281),ke=n(90328);!function(e){e.make=function(e,t,n){return{lefts:e.slice(),focus:t,rights:n.slice()}},e.fromReadonlyArray=function(t,n){return void 0===n&&(n=0),ke.isEmpty(t)||ke.isOutOfBound(n,t)?P.none:P.some(e.make((0,A.pipe)(t.slice(),S.takeLeft(n)),t[n],(0,A.pipe)(t.slice(),S.dropLeft(n+1))))},e.fromArray=e.fromReadonlyArray,e.fromReadonlyNonEmptyArray=function(t){return e.make([],t[0],t.slice(1))},e.fromNonEmptyArray=e.fromReadonlyNonEmptyArray,e.isOutOfBound=function(t,n){return t<0||t>=e.length(n)},e.length=function(e){return e.lefts.length+1+e.rights.length},e.toNonEmptyArray=function(e){return(0,A.pipe)(He.of(e.focus),(function(t){return He.concat(e.lefts,t)}),(function(t){return He.concat(t,e.rights)}))},e.toReadonlyNonEmptyArray=e.toNonEmptyArray,e.toArray=e.toNonEmptyArray,e.update=function(t){return function(n){return e.make(n.lefts,t,n.rights)}},e.modify=function(t){return function(n){return(0,A.pipe)(n,e.update(t(n.focus)))}},e.move=function(t,n){var r=t(n.lefts.length);return e.isOutOfBound(r,n)?P.none:e.fromArray(e.toNonEmptyArray(n),r)},e.findIndex=function(e){return function(t){return(0,A.pipe)(t.lefts,ke.findIndex(e),P.alt((function(){return e(t.focus)?P.some(t.lefts.length):P.none})),P.alt((function(){return(0,A.pipe)(t.rights,ke.findIndex(e),P.map((function(e){return t.lefts.length+1+e})))})))}},e.moveByFindFirst=function(t){return function(n){return(0,A.pipe)(n,e.findIndex(t),P.chain((function(t){return t===n.lefts.length?P.some(n):e.move((function(){return t}),n)})))}},e.up=function(t){return e.move(A.decrement,t)},e.down=function(t){return e.move(A.increment,t)},e.start=function(t){return S.isEmpty(t.lefts)?t:e.make([],t.lefts[0],S.snoc((0,A.pipe)(t.lefts,S.dropLeft(1)),t.focus).concat(t.rights))},e.end=function(t){var n=t.rights.length;return 0===n?t:e.make(S.snoc(t.lefts,t.focus).concat((0,A.pipe)(t.rights,S.takeLeft(n-1))),t.rights[n-1],[])},e.insertLeft=function(t){return function(n){return e.make(n.lefts,t,S.cons(n.focus,n.rights))}},e.insertRight=function(t){return function(n){return e.make(S.snoc(n.lefts,n.focus),t,n.rights)}},e.deleteLeft=function(t){var n=t.lefts.length;return e.fromArray(t.lefts.concat(t.rights),n>0?n-1:0)},e.deleteRight=function(t){var n=t.lefts.length,r=t.rights.length;return e.fromArray(t.lefts.concat(t.rights),r>0?n:n-1)};var t=function(t,n){return e.make(t.lefts.map(n),n(t.focus),t.rights.map(n))},n=function(t,n){var r=t.lefts.length;return e.make(t.lefts.map((function(e,t){return n(t,e)})),n(r,t.focus),t.rights.map((function(e,t){return n(r+1+t,e)})))},r=function(t,n){return e.make(S.array.ap(t.lefts,n.lefts),t.focus(n.focus),S.array.ap(t.rights,n.rights))},i=function(t,n){var r=t.lefts.map((function(r,i){return n(e.make((0,A.pipe)(t.lefts,S.takeLeft(i)),r,S.snoc((0,A.pipe)(t.lefts,S.dropLeft(i+1)),t.focus).concat(t.rights)))})),i=t.rights.map((function(r,i){return n(e.make(S.snoc(t.lefts,t.focus).concat((0,A.pipe)(t.rights,S.takeLeft(i))),r,(0,A.pipe)(t.rights,S.dropLeft(i+1))))}));return e.make(r,n(t),i)},o=function(e,t,n){return e.rights.reduce(n,n(e.lefts.reduce(n,t),e.focus))},a=function(e,t,n){var r=e.rights.reduceRight((function(e,t){return n(t,e)}),t),i=n(e.focus,r);return e.lefts.reduceRight((function(e,t){return n(t,e)}),i)},s=function(e){return function(t,n){var r=t.lefts.reduce((function(t,r){return e.concat(t,n(r))}),e.empty),i=t.rights.reduce((function(t,r){return e.concat(t,n(r))}),e.empty);return e.concat(e.concat(r,n(t.focus)),i)}},u=function(t){var n=S.array.traverse(t);return function(r,i){return t.ap(t.ap(t.map(n(r.lefts,i),(function(t){return function(n){return function(r){return e.make(t,n,r)}}})),i(r.focus)),n(r.rights,i))}};e.map=function(e){return function(n){return t(n,e)}},e.mapWithIndex=function(e){return function(t){return n(t,e)}},e.ap=function(e){return function(t){return r(t,e)}},e.apFirst=function(t){return function(n){return(0,A.pipe)(n,e.map((function(e){return function(t){return e}})),e.ap(t))}},e.apSecond=function(t){return function(n){return(0,A.pipe)(n,e.map((function(){return function(e){return e}})),e.ap(t))}},e.of=function(t){return e.make([],t,[])},e.extend=function(e){return function(t){return i(t,e)}},e.duplicate=e.extend(A.identity),e.foldMap=function(e){return function(t){return function(n){return s(e)(n,t)}}},e.reduce=function(e,t){return function(n){return o(n,e,t)}},e.reduceRight=function(e,t){return function(n){return a(n,e,t)}},e.sequence=function(t){var n=S.array.sequence(t);return function(r){return t.ap(t.ap(t.map(n(r.lefts),(function(t){return function(n){return function(r){return e.make(t,n,r)}}})),r.focus),n(r.rights))}},e.extract=function(e){return e.focus},e.URI="Zipper",e.getShow=function(e){var t=S.getShow(e);return{show:function(n){return"Zipper(".concat(t.show(n.lefts),", ").concat(e.show(n.focus),", ").concat(t.show(n.rights),")")}}},e.getSemigroup=function(t){return{concat:function(n,r){return e.make(n.lefts.concat(r.lefts),t.concat(n.focus,r.focus),n.rights.concat(r.rights))}}},e.getMonoid=function(t){return(0,w.__assign)((0,w.__assign)({},e.getSemigroup(t)),{empty:e.make([],t.empty,[])})},e.Functor={URI:e.URI,map:t},e.FunctorWithIndex={URI:e.URI,map:t,mapWithIndex:n},e.Applicative={URI:e.URI,map:t,ap:r,of:e.of},e.Apply={URI:e.URI,map:t,ap:r},e.Foldable={URI:e.URI,foldMap:s,reduce:o,reduceRight:a},e.Traversable={URI:e.URI,map:t,foldMap:s,reduce:o,reduceRight:a,traverse:u,sequence:e.sequence},e.Comonad={URI:e.URI,map:t,extend:i,extract:e.extract},e.zipper={URI:e.URI,map:t,of:e.of,ap:r,extend:i,extract:e.extract,reduce:o,reduceRight:a,foldMap:s,traverse:u,sequence:e.sequence,mapWithIndex:n}}(_e||(_e={}));var Pe=n(4176);function Ne(e){return Math.abs((1.3685032914*e+.7230964518)%1)}var Te,Re=function(e){return function(t){for(var n,r=t.slice(0),i=r.length;i>0;){n=Ne(e);var o=Math.floor(n*i--),a=r[o];r[o]=r[i],r[i]=a}return r}};function Be(e){return function(t){if(t.length<2)return t;for(var n=[],r=0;r0?k.left({recovered:i,rejected:o}):k.right(i)}}function Ve(e){return function(t,n){var r=[],i=new Map(t);return n.forEach((function(t,n){(0,_.pipe)(we.lookupWithKey(e)(n,i),Qe.tapLeft((function(){return r.push(n)})))})),r}}!function(e){e.createStrict=function(e){return function(t){return Ce.fold((function(n){return P.isNone(t)?Ce.left("can not remove non existent entry: left(".concat(e.show(n),")")):e.equals(t.value,n)?Ce.right(P.none):Ce.left("can not remove non equal entry: target(".concat(e.show(t.value),") left(").concat(e.show(n),")"))}),(function(n){return P.isSome(t)?Ce.left("can not add existent entry: target(".concat(e.show(t.value),") right(").concat(e.show(n),")")):Ce.right(P.some(n))}),(function(n,r){return e.equals(n,r)?Ce.left("can not apply update with equals parts: left(".concat(e.show(n),") right(").concat(e.show(r),")")):P.isNone(t)?Ce.left("can not update non existent entry: left(".concat(e.show(n),") right(").concat(e.show(r),")")):e.equals(t.value,n)?Ce.right(P.some(r)):Ce.left("can not apply update on non equal entry: target(".concat(e.show(t.value),") left(").concat(e.show(n),") right(").concat(e.show(r),")"))}))}},e.createLoose=function(e){return function(t){return Ce.fold((function(n){return P.isNone(t)?Ce.left("can not remove non existent entry: left(".concat(e.show(n),")")):e.equals(t.value,n)?Ce.right(P.none):Ce.both("removed non equal entry: target(".concat(e.show(t.value),") left(").concat(e.show(n),")"),P.none)}),(function(n){return P.isSome(t)?Ce.both("existent entry was overwritten: target(".concat(e.show(t.value),") right(").concat(e.show(n),")"),P.some(n)):Ce.right(P.some(n))}),(function(n,r){var i=e.equals(n,r)?P.some("unexpected equal parts in provided update"):P.none;return P.isNone(t)?Ce.both((0,_.pipe)(i,P.map((function(e){return e+", "})),P.getOrElse((function(){return""})))+"update applied on non existent entry: left(".concat(e.show(n),") right(").concat(e.show(r),")"),P.some(r)):e.equals(t.value,n)?(0,_.pipe)(i,P.map((function(t){return t+": left(".concat(e.show(n),") right(").concat(e.show(r),")")})),P.fold((function(){return Ce.right(P.some(r))}),(function(e){return Ce.both(e,P.some(r))}))):Ce.both((0,_.pipe)(i,P.map((function(e){return e+", "})),P.getOrElse((function(){return""})))+"update applied on non equal entry: target(".concat(e.show(t.value),") left(").concat(e.show(n),") right(").concat(e.show(r),")"),P.some(r))}))}}}(Je||(Je={}));var $e=n(20555),qe=n(71258);function et(e){return function(t,n){return function(r){return(0,qe.gt)(e)(r,t)&&(0,qe.lt)(e)(r,n)}}}var tt,nt=n(81479),rt=n(98846),it=n(34551),ot=function(e){return function(t){return it.reader.map((0,rt.sequenceT)(it.reader)(e,t),(function(e){var t=e[0],n=e[1];return(0,de.deepUpdate)(t,n)}))}},at=(0,rt.sequenceS)(it.reader),st="RemoteData";!function(e){e.InProgress="InProgress",e.Success="Success",e.Error="Error",e.Fatal="Fatal"}(tt||(tt={}));var ut={type:tt.InProgress};function ct(e){return{type:tt.Success,value:e}}function Mt(e,t){return{type:tt.Error,error:e,status:t}}function mt(e){return{type:tt.Fatal,error:e}}function lt(e){return e.type===tt.InProgress}function dt(e){return e.type===tt.Success}function ht(e){return e.type===tt.Error}function ft(e){return e.type===tt.Fatal}function pt(e,t){return(0,C.fromEquals)((function(n,r){return"InProgress"===n.type&&"InProgress"===r.type||("Success"===n.type&&"Success"===r.type?e.equals(n.value,r.value):("Error"===n.type&&"Error"===r.type||"Fatal"===n.type&&"Fatal"===r.type)&&t.equals(n.error,r.error))}))}function yt(e){return function(t){switch(t.type){case tt.InProgress:return e.onInProgress();case tt.Success:return e.onSuccess(t.value);case tt.Error:return e.onError(t.error);case tt.Fatal:return e.onFatal(t.error);default:return(0,d.vE)(t)}}}var gt,Et={URI:st,of:ct,ap:function(e,t){return dt(e)?dt(t)?ct(e.value(t.value)):t:e},map:function(e,t){return dt(e)?ct(t(e.value)):e},chain:function(e,t){return dt(e)?t(e.value):e},bimap:function(e,t,n){return lt(e)?e:dt(e)?ct(n(e.value)):ht(e)?Mt(t(e.error),e.status):mt(t(e.error))},mapLeft:function(e,t){return Et.bimap(e,t,A.identity)}},vt=(0,_.pipeable)(Et),bt=vt.map,wt=vt.mapLeft,St=vt.chain,Ct=vt.chainFirst,At=vt.ap,_t=vt.apFirst,Ht=vt.apSecond,kt=vt.bimap,Pt=vt.flatten,Nt=n(51194),Tt=n(29481),Rt=n(98919);!function(e){var t;e.URI="IOOption",e.ioOption=(0,w.__assign)({URI:e.URI},(0,Rt.getOptionM)(Tt.io)),t=(0,_.pipeable)(e.ioOption),e.map=t.map,e.chain=t.chain,e.ap=t.ap,e.alt=t.alt,e.apFirst=t.apFirst,e.apSecond=t.apSecond,e.of=e.ioOption.of,e.fold=function(t,n){return function(r){return e.ioOption.fold(r,t,n)}},e.fromM=e.ioOption.fromM}(gt||(gt={}));var Bt,Dt=n(71362);!function(e){e.invariantContent=function(e){return"function"===typeof Proxy?new Proxy({},{get:function(t,n){if(null==t[n])throw new Error("Please provide context using ".concat(e,".Context.Provider"));return t[n]}}):void 0}}(Bt||(Bt={}));var Ft=n(50419)},92547:function(e,t,n){"use strict";n.r(t),n.d(t,{deepEqual:function(){return P},deepUpdate:function(){return b},filterKeys:function(){return C},filterKeysBy:function(){return A},fromEntries:function(){return T},immutableUpdate:function(){return h},immutableUpdateC:function(){return f},immutableUpdateOption:function(){return p},immutableUpdateOptionC:function(){return y},isEmptyObject:function(){return l},isEqual:function(){return c},isObject:function(){return m},keys:function(){return S},merge:function(){return g},modify:function(){return w},objectWithoutProperties:function(){return M},omit:function(){return R},pick:function(){return _},pickProps:function(){return H},set:function(){return k},structuredClone:function(){return s},toArray:function(){return d},update:function(){return v}});var r=n(29388),i=n(50582),o=n(86426),a=n(67978),s=function e(t){if("object"!==typeof t)return t;var n,r,i=Object.prototype.toString.call(t);if("[object Object]"===i){if(t.constructor!==Object&&"function"===typeof t.constructor)for(n in r=new t.constructor,t)t.hasOwnProperty(n)&&r[n]!==t[n]&&(r[n]=e(t[n]));else for(n in r={},t)"__proto__"===n?Object.defineProperty(r,n,{value:e(t[n]),configurable:!0,enumerable:!0,writable:!0}):r[n]=e(t[n]);return r}if("[object Array]"===i){for(n=t.length,r=Array(n);n--;)r[n]=e(t[n]);return r}if("[object Date]"===i)return new Date(+t);if("[object RegExp]"===i)return(r=new RegExp(t.source,t.flags)).lastIndex=t.lastIndex,r;return t};var u=Object.prototype.hasOwnProperty;function c(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&c(e[r],t[r]););return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(u.call(e,n)&&++r&&!u.call(t,n))return!1;if(!(n in t)||!c(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}function M(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e){return null!=e&&!Array.isArray(e)&&"object"===typeof e}function l(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function d(e){return Object.keys(e).map((function(t){return e[t]}))}function h(e,t,n){var o,a=n,s=e,u=a[s],c=(0,r.__rest)(a,["symbol"===typeof s?s:s+""]);return(0,r.__assign)(((o={})[e]=t(i.fromNullable(u)),o),c)}var f=(0,a.W)(h);function p(e,t,n){var a=n,s=e,u=a[s],c=(0,r.__rest)(a,["symbol"===typeof s?s:s+""]),M="function"===typeof t?t(i.fromNullable(u)):t;return(0,o.pipe)(M,i.fold((function(){return c}),(function(t){var n;return(0,r.__assign)(((n={})[e]=t,n),c)})))}var y=(0,a.W)(p);function g(e,t){return E(E({},e),t)}function E(e,t){var n;for(var r in t){var i=null!==(n=e[r])&&void 0!==n?n:{},o=t[r];null!=o&&null!=i&&o.constructor===Object&&i.constructor===Object?e[r]=E(i,o):e[r]=o}return e}function v(e,t){return Object.assign({},e,t)}function b(e,t){var n={};for(var r in e){var i=t[r];void 0!==i?n[r]="object"===typeof i?b(e[r],i):i:n[r]=e[r]}return n}function w(e){return function(t){return v(t,e)}}function S(e){return Object.keys(e)}function C(e,t){return S(e).filter((function(n){return t(e[n])}))}function A(e){return function(t){return C(t,e)}}function _(e){return function(t){return t[e]}}function H(){for(var e=[],t=0;t0?u.left({rejected:e.left,recovered:e.right}):u.right(e.right)}e.URI="RecoverableOperation",e.fromArray=function(n){return function(r){return(0,s.pipe)(r.map((function(e){return(0,s.pipe)(n(e),u.mapLeft((function(t){return(0,a.tuple)(t,e)})))})),i.separate,t,e.mapLeft((function(e){return e.map(o.snd)})))}},e.map=function(e){return function(t){return(0,s.pipe)(t,u.bimap((function(t){return{rejected:t.rejected,recovered:e(t.recovered)}}),e))}},e.mapLeft=function(e){return function(t){return(0,s.pipe)(t,u.mapLeft((function(t){return{rejected:e(t.rejected),recovered:t.recovered}})))}},e.flatten=function(e){return function(t){return(0,s.pipe)(t,u.fold((function(t){return(0,s.pipe)(t.recovered,u.fold((function(n){return u.left({rejected:e.concat(t.rejected,n.rejected),recovered:n.recovered})}),(function(e){return u.left({rejected:t.rejected,recovered:e})})))}),a.identity))}},e.flatMap=function(t,n){return function(r){return(0,s.pipe)(r,e.map(n),e.flatten(t))}},e.recover=function(e){return u.fold((function(t){return e(t.rejected),t.recovered}),a.identity)},e.tapFailure=function(e){return u.mapLeft((function(t){return e(t),t}))},e.foldSuccess=function(e){return u.fold((function(t){return e(t.recovered)}),e)},e.of=function(e,t){return void 0===t?u.right(e):u.left({recovered:e,rejected:t})},e.fromSeparatedArray=t}(r||(r={}))},98168:function(e,t,n){"use strict";n.r(t),n.d(t,{alphanumeric:function(){return H},camelize:function(){return c},capitalize:function(){return u},charCount:function(){return p},containsSpacesOnly:function(){return k},containsWordSeparator:function(){return P},decodeHTMLCodes:function(){return w},escapeRegExp:function(){return v},formatPrice:function(){return E},getFirstMatch:function(){return d},getFirstWord:function(){return h},isBreakWordChar:function(){return A},nbsp:function(){return s},padStart:function(){return b},pluralize:function(){return g},replaceTabsWithSpaces:function(){return y},sanitize:function(){return l},toLowerCaseStart:function(){return m},toTitleCase:function(){return M},trimToLastWholeWord:function(){return N},urlContainsProtocol:function(){return C},urlToDomain:function(){return S},wordCount:function(){return f}});var r,i=n(29388),o=n(78703),a=n(3887),s=String.fromCharCode(160);function u(e){return e?e[0].toUpperCase()+e.slice(1):""}function c(e){return e?e.replace(/(?:^|[-_\s])(\w)/g,(function(e,t){return t?t.toUpperCase():""})):""}function M(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}function m(e){return e.charAt(0).toLowerCase()+e.substr(1)}function l(e,t){var n;return Boolean(e)&&"undefined"!==typeof window?t?o.sanitize(e,(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},null!==(n=t.returnHTML)&&void 0!==n&&n?{RETURN_DOM_FRAGMENT:!0,RETURN_DOM_IMPORT:!0}:{}),t.allowedTags?{ALLOWED_TAGS:t.allowedTags}:{}),t.forbidTags?{FORBID_TAGS:t.forbidTags}:{}),t.allowedAttrs?{ALLOWED_ATTR:t.allowedAttrs}:{}),"boolean"===typeof t.sanitizeDom?{SANITIZE_DOM:t.sanitizeDom}:{}),"boolean"===typeof t.allowDataAttrs?{ALLOW_DATA_ATTR:t.allowDataAttrs}:{}),{ALLOWED_URI_REGEXP:t.linkRegExp||r.URI_REGEXP})):o.sanitize(e):""}function d(e,t){var n=e.match(t);return n&&n[1]}function h(e){return e.split(/\s+/)[0]}function f(e){if(!e)return 0;var t=e.replace(/[\W\d]/gi," ").replace(/\s+/gi," ").trim().split(" ");return 1===t.length&&""===t[0]?0:t.length}function p(e){return a.Jx(e).length}function y(e){return e.replace(/\t/g," ")}function g(e,t,n){return 1===e?t:n}function E(e,t){return void 0===t&&(t="en-US"),e.toLocaleString(t,{minimumFractionDigits:2,maximumFractionDigits:2})}function v(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function b(e,t,n){return t>>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+String(e))}function w(e){var t,n,r=document.createElement("div");return r.innerHTML=l(e),null!==(n=null!==(t=r.textContent)&&void 0!==t?t:r.innerText)&&void 0!==n?n:""}function S(e){if(!e)return"";var t=document.createElement("a");return t.href=e,t.hostname}function C(e){return!!e.match("\\w+\\:.*")}function A(e){return e&&(e<48||58===e||59===e||63===e)||!1}!function(e){e.URI_REGEXP=/^(?:(?:(?:f|ht)tps?|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i}(r||(r={}));var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function H(e){if(e<0)throw new TypeError("Length should not be negative: ".concat(e));return Array.from({length:e},(function(){return _.charAt(Math.random()*_.length)})).join("")}function k(e){return null!==e.match(/^[^\S\r\n]+$/)}function P(e){return null!==e.match(/[\s\r\n\t]/)}function N(e,t){return e.length<=t?e:e.substr(0,t).split(" ").slice(0,-1).join(" ")}},58291:function(e,t,n){"use strict";n.r(t),n.d(t,{Alt:function(){return i.Alt},Applicative:function(){return i.Applicative},Bifunctor:function(){return i.Bifunctor},ChainRec:function(){return i.ChainRec},Do:function(){return i.Do},Extend:function(){return i.Extend},Foldable:function(){return i.Foldable},Functor:function(){return i.Functor},Monad:function(){return i.Monad},MonadThrow:function(){return i.MonadThrow},Traversable:function(){return i.Traversable},URI:function(){return i.URI},__esModule:function(){return i.__esModule},alt:function(){return i.alt},altW:function(){return i.altW},ap:function(){return i.ap},apFirst:function(){return i.apFirst},apS:function(){return i.apS},apSW:function(){return i.apSW},apSecond:function(){return i.apSecond},apW:function(){return i.apW},bimap:function(){return i.bimap},bind:function(){return i.bind},bindTo:function(){return i.bindTo},bindW:function(){return i.bindW},chain:function(){return i.chain},chainFirst:function(){return i.chainFirst},chainFirstW:function(){return i.chainFirstW},chainLeft:function(){return c},chainNullableK:function(){return i.chainNullableK},chainW:function(){return i.chainW},duplicate:function(){return i.duplicate},either:function(){return i.either},elem:function(){return i.elem},exists:function(){return i.exists},extend:function(){return i.extend},filterOrElse:function(){return i.filterOrElse},filterOrElseW:function(){return i.filterOrElseW},flatMap:function(){return d},flatMapLeft:function(){return m},flatten:function(){return i.flatten},flattenLeft:function(){return M},fold:function(){return i.fold},foldMap:function(){return i.foldMap},fromNullable:function(){return i.fromNullable},fromNullableK:function(){return i.fromNullableK},fromOption:function(){return i.fromOption},fromPredicate:function(){return i.fromPredicate},getAltValidation:function(){return i.getAltValidation},getApplicativeValidation:function(){return i.getApplicativeValidation},getApplyMonoid:function(){return i.getApplyMonoid},getApplySemigroup:function(){return i.getApplySemigroup},getEq:function(){return i.getEq},getFilterable:function(){return i.getFilterable},getOrElse:function(){return i.getOrElse},getOrElseW:function(){return i.getOrElseW},getSemigroup:function(){return i.getSemigroup},getShow:function(){return i.getShow},getValidation:function(){return i.getValidation},getValidationMonoid:function(){return i.getValidationMonoid},getValidationSemigroup:function(){return i.getValidationSemigroup},getWitherable:function(){return i.getWitherable},isLeft:function(){return i.isLeft},isRight:function(){return i.isRight},left:function(){return i.left},map:function(){return i.map},map2:function(){return l},mapLeft:function(){return i.mapLeft},of:function(){return i.of},orElse:function(){return i.orElse},parseFiniteInt:function(){return f},parseFloat:function(){return h},parseJSON:function(){return i.parseJSON},reduce:function(){return i.reduce},reduceRight:function(){return i.reduceRight},right:function(){return i.right},sequence:function(){return i.sequence},sequenceArray:function(){return i.sequenceArray},stringifyJSON:function(){return i.stringifyJSON},swap:function(){return i.swap},throwError:function(){return i.throwError},toError:function(){return i.toError},traverse:function(){return i.traverse},traverseArray:function(){return i.traverseArray},traverseArrayWithIndex:function(){return i.traverseArrayWithIndex},tryCatch:function(){return i.tryCatch},tryCatchError:function(){return u},unsafeGet:function(){return s}});var r=n(98846),i=n(25264),o=n(19936),a=n(86426),s=(0,i.fold)((function(e){throw e}),o.identity),u=function(e){return(0,i.tryCatch)(e,i.toError)},c=function(e){return(0,i.fold)(e,i.right)},M=function(e){return i.either.chain(e,o.identity)},m=function(e){return function(t){return(0,a.pipe)(t,c((function(t){return e})))}},l=function(e){return function(t){var n=t[0],o=t[1];return(0,i.map)((function(t){var n=t[0],r=t[1];return e(n,r)}))((0,r.sequenceT)(i.either)(n,o))}},d=i.chain,h=function(e){return(0,a.pipe)(parseFloat(e),(0,i.fromPredicate)((0,o.not)(isNaN),(0,o.constant)(new Error('Could not parse float (got "'.concat(e,'")')))))},f=function(e){return(0,a.pipe)(parseInt(e,10),(0,i.fromPredicate)(isFinite,(0,o.constant)(new Error('Could not parse integer (got "'.concat(e,'")')))))}},20555:function(e,t,n){"use strict";n.r(t),n.d(t,{fromNullableArray:function(){return c},unzip:function(){return u}});var r=n(45281),i=n(19936),o=n(50582),a={};for(var s in r)["default","unzip","fromNullableArray"].indexOf(s)<0&&(a[s]=function(e){return r[e]}.bind(0,s));function u(e){for(var t=(0,r.of)(e[0][0]),n=(0,r.of)(e[0][1]),i=1;i0}),(function(){return new Error("URL is too short")})),d=a.fromPredicate(M,(function(){return new Error("Url contains invalid protocol")})),h=(0,r.flow)(i.sanitize,l,a.map((function(e){return i.urlContainsProtocol(e)?e:"http://"+e})),a.chain((function(e){return(0,r.pipe)(e,c,a.map((function(){return e})))})),a.chain(d),a.chain(m))},4176:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(17563);var i=function(){function e(t,n){void 0===n&&(n=new URLSearchParams),this.base=t,this.params=n;var i=e._toString(t,n).length;(0,r.kG)(i0?"".concat(e.toString(),"+").concat(e.build.join("-")):e.toString()})),s.getOrElse((function(){return"unknown"})))},t.prototype._test=function(t,n){var r=(0,i.pipe)(e.parse(n.toString()).value,s.getOrElse((function(){return null})));return(0,a.kG)(null!==r,"invalid version provided: ".concat(n)),(0,i.pipe)(this.value,s.map((function(e){return t(e,r)})),s.getOrElse((function(){return!1})))},t}()}(r||(r={}))},26904:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0;var n={prod:"grammarly.com",preprod:"ppgr.io",qa:"qagr.io"};t.config=function(e){var t=n[e];return{url:{properties:"https://properties."+t,treatment:"https://treatment."+t,gates:"https://gates."+t}}}},96896:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;)r(s=t[u],a)&&!i(c,s)&&(c[c.length]=s),u-=1;return c}:function(e){return Object(e)!==e?[]:Object.keys(e)}}();function s(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}t.equals=function e(t,o,u,c){if(void 0===u&&(u=[]),void 0===c&&(c=[]),i(t,o))return!0;if(s(t)!==s(o))return!1;if(null==t||null==o)return!1;if("function"===typeof t.equals||"function"===typeof o.equals)return"function"===typeof t.equals&&t.equals(o)&&"function"===typeof o.equals&&o.equals(t);switch(s(t)){case"Arguments":case"Array":case"Object":if("function"===typeof t.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(t.constructor))return t===o;break;case"Boolean":case"Number":case"String":if(typeof t!==typeof o||!i(t.valueOf(),o.valueOf()))return!1;break;case"Date":if(!i(t.valueOf(),o.valueOf()))return!1;break;case"Error":return t.name===o.name&&t.message===o.message;case"RegExp":if(t.source!==o.source||t.global!==o.global||t.ignoreCase!==o.ignoreCase||t.multiline!==o.multiline||t.sticky!==o.sticky||t.unicode!==o.unicode)return!1;break;case"Map":case"Set":if(!e(n(t.entries()),n(o.entries()),u,c))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var M=a(t);if(M.length!==a(o).length)return!1;for(var m=u.length-1;m>=0;){if(u[m]===t)return c[m]===o;m-=1}for(u.push(t),c.push(o),m=M.length-1;m>=0;){var l=M[m];if(!r(l,o)||!e(o[l],t[l],u,c))return!1;m-=1}return u.pop(),c.pop(),!0}},42043:function(e,t,n){"use strict";var r=n(41331);t.Ri=r.Lens,r.Prism,r.Optic;var i=n(44521);t.hg=i.Atom;var o=n(35824);o.bind,o.lift,o.reactiveList,t.Sh=o.classes,o.bindElementProps,o.F},1024:function(e,t){"use strict";function n(e,t){return function(n,r){return t(n(e(r)),r)}}var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.optic=function(e,t){return{get:e,set:t,modify:n(e,t)}}}(t.Optic||(t.Optic={})),function(e){e.create=function e(t,r){return{get:t,set:r,modify:n(t,r),compose:function(n){return e((function(e){var r=t(e);return void 0!==r?n.get(r):void 0}),(function(e,i){var o=t(i);return void 0!==o?r(n.set(e,o),i):i}))}}}}(r=t.Prism||(t.Prism={})),function(e){function t(e,r){return{get:e,set:r,modify:n(e,r),compose:function(n){return t((function(t){return n.get(e(t))}),(function(t,i){return r(n.set(t,e(i)),i)}))}}}e.create=t,e.compose=function(){for(var e=[],t=0;t x.some".\n Incorrect example: "function (x) { var y = x.some; return y }" or "({some}) => some"')}function s(e){return a(e.toString())}function u(e){return void 0===e?function(e){return i.Lens.create((function(t){return t[e]}),(function(t,n){return r.setKey(e,t,n)}))}:i.Lens.create((function(t){return t[e]}),(function(t,n){return r.setKey(e,t,n)}))}t.parsePropertyPath=a,t.extractPropertyPath=s,t.keyImpl=u;var c=0;function M(e){var t=s(e);return r.DEV_ENV&&function(e){if(c<10){c++;var t="x."+e.join("."),n="'"+e.join("', '")+"'";r.warning("The property expression overload of Atom.lens and Lens.prop are deprecated and will be removed in next versions of Focal. Please use the key name overload for Atom.lens and Lens.key instead. You can convert your code by changing the calls:\n a.lens(x => "+t+") to a.lens("+n+"),\n Lens.prop((x: T) => "+t+") to Lens.key()("+n+").")}}(t),i.Lens.compose.apply(i.Lens,t.map(u()))}function m(e){if(e<0)throw new TypeError(e+" is not a valid array index, expected >= 0");return i.Prism.create((function(t){return t[e]}),(function(t,n){return n.length<=e?n.concat(Array(e-n.length),[t]):r.structEq(t,n[e])?n:n.slice(0,e).concat([t],n.slice(e+1))}))}function l(e){return i.Lens.replace(void 0,e)}function d(e,t){return i.Lens.create((function(n){return r.structEq(n,e)?t:n}),r.conservatively((function(n){return r.structEq(n,t)?e:n})))}function h(e){return t=function(t){var n=r.findIndex(t,e);return n<0?i.Lens.nothing():i.Lens.index(n)},i.Lens.create((function(e){return t(e).get(e)}),(function(e,n){return t(n).set(e,n)}));var t}t.propImpl=M,t.indexImpl=m,t.withDefaultImpl=l,t.replaceImpl=d,t.findImpl=h,i.Lens.key=u,i.Lens.prop=M,i.Lens.index=m,i.Lens.withDefault=l,i.Lens.replace=d,i.Lens.find=h},35824:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(42540));var r=n(49701);t.F=r.createLiftedIntrinsics()},49701:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(72791),i=n(42540);function o(e){return function(t){return r.createElement(i.LiftWrapper,{component:e,props:t})}}t.liftIntrinsic=o,t.createLiftedIntrinsics=function(){var e={};return["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"].forEach((function(t){return e[t]=o(t)})),e.Fragment=function(e){return r.createElement(i.LiftWrapper,{component:r.Fragment,props:e})},e}},42540:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n":"An unnamed component")+" has received an observable that doesn't immediately emit a value in one of its props. Since this observable hasn't yet called its subscription handler, the component can not be rendered at the time. Check the props of "+(e?"<"+e+">":"this component")+".")}var E=function(){function e(e,t){var n=this;this._receivedValue=!1;var r={subscription:this,renderCache:e.state&&e.state.renderCache};this._liftedComponent=new p(r,t),h(t.props,(function(e){n._innerSubscription=e.subscribe((function(e){return n._handleValue(e)}),y,(function(){return n._handleCompleted()})),n._innerSubscription&&n._innerSubscription.closed&&(n._innerSubscription=null)})),u.DEV_ENV&&!this._receivedValue&&g(u.getReactComponentName(this._liftedComponent.props.component)),this._liftedComponent=e,e.setState(r)}return e.prototype.unsubscribe=function(){this._innerSubscription&&this._innerSubscription.unsubscribe()},e.prototype._handleValue=function(e){u.DEV_ENV&&(this._receivedValue=!0);var t=this._liftedComponent,n=t.props,r=f(n.component,n.props,[e]);s.structEq(t.state.renderCache,r)||t.setState({renderCache:r})},e.prototype._handleCompleted=function(){this._innerSubscription=null,this._liftedComponent.setState(m._endState)},e}(),v=function(){function e(e,t,n){var r=this,i={subscription:this,renderCache:e.state&&e.state.renderCache};this._liftedComponent=new p(i,t),this._innerSubscriptions=[],this._values=Array(n);for(var o=0;oe&&(this._innerSubscriptions[e]=null),t===this._values.length){for(var n=0;n0?n.join(" "):void 0}))};var n=b(e||[]);return{className:n.length>0?n.join(" "):void 0}},t.setElementProps=w,t.getElementProps=S,t.bindElementProps=function(e){var n,r,i=t.PROP_REF,a=e[i],s=t.PROP_MOUNT,u=e[s],c=o(e,["symbol"===typeof i?i:i+"","symbol"===typeof s?s:s+""]);return a?((n={})[t.PROP_REF]=w(c),n[a]=S(c),n):u?((r={})[t.PROP_MOUNT]=w(c),r[u]=S(c),r):{}},t.bind=function(e){return i({},e,{onChange:S(e)})},t.reactiveList=function(e,t){return e.pipe(M.scan((function(e,n){for(var r=e[0],i=(e[1],{}),o=Array(n.length),a=n.length,s=0;s0;)ga.apply(null,r._gaQueue.shift());r._isReady=!0}))}return e.prototype.setUserId=function(e){/^-/.test(e)||this.ga("set","userId",e)},e.prototype.ga=function(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2&&e.setDate(e.getDate()+1),e.setHours(3),e.setMinutes(Math.floor(60*Math.random())),e.getTime()}},5514:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?r.catch((function(r){return new Promise((function(e,n){return setTimeout(e,t)})).then((function(r){return f(e-1,t,n)}))})):r}var p=function(){function e(e,t,n,r,i,o){void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=3e5),void 0===i&&(i=0),void 0===o&&(o=function(){return Date.now()}),this.primaryStorage=e,this.secondaryStorages=t,this._logger=n,this._cacheSuccessTimeoutMillis=r,this._cacheFailureTimeoutMillis=i,this._getTime=o,this._allStorages=[e].concat(t)}return e.prototype._expireCache=function(e){0===e?this._cacheExpireTimestamp=0:e>0&&(this._cacheExpireTimestamp=this._getTime()+e)},e.prototype.getValue=function(){var e=this;if(void 0!==this._cache&&(void 0===this._cacheExpireTimestamp||this._getTime()t[0]?1:-1}))}function g(e){return e.map((function(e){var t=(0,u.Z)(e,2),n=t[0],r=t[1];return Array.isArray(r)?r.map((function(e){return p(n,e)})).join(";"):p(n,r)})).join(";")}function E(e,t){return-1===e.indexOf("&")?"".concat(t," ").concat(e):e.replace(/&/g,t)}function v(e,t,n,r,i){var o=function(e,t){for(var n,r=[],i=[],o=0,a=Object.keys(e);o0&&void 0!==arguments[0]?arguments[0]:S;(0,o.Z)(this,e),this.changes=t,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}return(0,a.Z)(e,[{key:"add",value:function(t){var n=this._counters[t.id]||0,r=this._children[t.id]||t.clone();if(this._counters[t.id]=n+1,0===n)this._children[r.id]=r,this._keys.push(r.id),this.sheet.push(r.getStyles()),this.changeId++,this.changes.add(r,this._keys.length-1);else if(r instanceof e&&t instanceof e){var i=this._keys.indexOf(t.id),o=r.changeId;r.merge(t),r.changeId!==o&&(this.sheet.splice(i,1,r.getStyles()),this.changeId++,this.changes.change(r,i,i))}}},{key:"remove",value:function(t){var n=this._counters[t.id];if(n){this._counters[t.id]=n-1;var r=this._children[t.id],i=this._keys.indexOf(r.id);if(1===n)delete this._counters[t.id],delete this._children[t.id],this._keys.splice(i,1),this.sheet.splice(i,1),this.changeId++,this.changes.remove(r,i);else if(r instanceof e&&t instanceof e){var o=r.changeId;r.unmerge(t),r.changeId!==o&&(this.sheet.splice(i,1,r.getStyles()),this.changeId++,this.changes.change(r,i,i))}}}},{key:"values",value:function(){var e=this;return this._keys.map((function(t){return e._children[t]}))}},{key:"merge",value:function(e){var t,n=(0,s.Z)(e.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.add(r)}}catch(i){n.e(i)}finally{n.f()}return this}},{key:"unmerge",value:function(e){var t,n=(0,s.Z)(e.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.remove(r)}}catch(i){n.e(i)}finally{n.f()}return this}},{key:"clone",value:function(){return(new e).merge(this)}}]),e}(),A=function(){function e(t,n){(0,o.Z)(this,e),this.selector=t,this.id=n}return(0,a.Z)(e,[{key:"getStyles",value:function(){return this.selector}},{key:"clone",value:function(){return this}}]),e}(),_=function(e){(0,r.Z)(n,e);var t=(0,i.Z)(n);function n(e,r){var i;return(0,o.Z)(this,n),(i=t.call(this)).style=e,i.id=r,i}return(0,a.Z)(n,[{key:"getStyles",value:function(){return"".concat(this.sheet.join(","),"{").concat(this.style,"}")}},{key:"clone",value:function(){return new n(this.style,this.id).merge(this)}}]),n}(C),H=function(e){(0,r.Z)(n,e);var t=(0,i.Z)(n);function n(e,r,i){var a;return(0,o.Z)(this,n),(a=t.call(this)).rule=e,a.style=r,a.id=i,a}return(0,a.Z)(n,[{key:"getStyles",value:function(){return"".concat(this.rule,"{").concat(this.style).concat(w(this.sheet),"}")}},{key:"clone",value:function(){return new n(this.rule,this.style,this.id).merge(this)}}]),n}(C);function k(e,t){var n="f".concat(function(e){for(var t=5381,n=e.length;n--;)t=33*t^e.charCodeAt(n);return(t>>>0).toString(36)}(e));return n}var P=function(e){(0,r.Z)(n,e);var t=(0,i.Z)(n);function n(e,r){var i;return(0,o.Z)(this,n),(i=t.call(this,r)).id=e,i}return(0,a.Z)(n,[{key:"registerStyle",value:function(e){var t=[],n=[],r=v("&",e,t,n),i=k(r);return b(this,r,t,n,".".concat(i),!0),i}},{key:"registerKeyframes",value:function(e){return this.registerHashRule("@keyframes",e)}},{key:"registerHashRule",value:function(e,t){var n=[],r=[],i=v("",t,n,r),o=k(i),a="".concat(e," ").concat(o),s=new H(a,"","h\0".concat(i,"\0").concat(e));return b(s,i,n,r,"",!1),this.add(s),o}},{key:"registerRule",value:function(e,t){var n=[],r=[];b(this,v(e,t,n,r),n,r,"",!1)}},{key:"registerCss",value:function(e){return this.registerRule("",e)}},{key:"getStyles",value:function(){return w(this.sheet)}},{key:"clone",value:function(){return new n(this.id,this.changes).merge(this)}}]),n}(C);function N(e){var t={};for(var n in e){var r=e[n];if("$nest"===n){var i=r;for(var o in i){var a=i[o];t[o]=N(a)}}else"$debugName"===n?t.$displayName=r:t[n]=r}return t}var T="undefined"===typeof requestAnimationFrame?function(e){return setTimeout(e)}:"undefined"===typeof window?requestAnimationFrame:requestAnimationFrame.bind(window);function R(){for(var e=[],t=0;tr?1:0},t.isValidCountryCode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!r.countries[e]},t.getCountryName=function(e){return i[e]}},28536:function(e,t){"use strict";function n(){return IS_DEV?CONFIG_ENV:IS_CLIENT_SIDE?window.funnelServerEnv?window.funnelServerEnv:"prod":{NODE_ENV:"production",PUBLIC_URL:"https://did0rp9pm2ntw.cloudfront.net/assets",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:"443",FAST_REFRESH:!0,REACT_APP_CONFIG_ENV:"prod",REACT_APP_TAG:"0.3.0-master.16432",REACT_APP_BRANCH_NAME:"master"}.GR_ENV||"prod"}Object.defineProperty(t,"__esModule",{value:!0}),t.isDevQa=t.isDevPreProd=t.isDevProd=t.isDeployedProd=t.isDeployed=t.getEnv=void 0,t.getEnv=n,t.isDeployed=!IS_DEV,t.isDeployedProd=t.isDeployed&&"prod"===n(),t.isDevProd=!t.isDeployed&&"prod"===n(),t.isDevPreProd=!t.isDeployed&&"preprod"===n(),t.isDevQa=!t.isDeployed&&"qa"===n()},57266:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGnarError=t.maskEmails=t.isAuthLegacyApiError=t.serializeErrorObjSafe=t.serializeErrorObj=t.filterRequestError=t.isHTTPError=t.transformToString=t.getErrorMsg=t.getServerErrorMsg=t.getErrorContextRedirectTo=t.getServerErrorContext=t.getServerErrorErr=t.getErrorContextLastDigits=t.getMfaLoginContext=t.extractServerErrorField=t.getServerErrorData=t.MissingBackendError=t.ApiErrorCode=void 0;var r,i=n(5259),o=(0,i.__importDefault)(n(34294)),a=n(98407);!function(e){e.failure="FAILURE",e.rateLimited="RATE_LIMITED",e.useFacebook="USE_FB_LOGIN",e.useGoogle="USE_GOOGLE_LOGIN",e.useApple="USE_APPLE_LOGIN",e.useEmail="USE_EMAIL_LOGIN",e.useSocial="USE_SOCIAL_LOGIN",e.useSso="USE_SSO_LOGIN",e.useStrongPassword="USE_STRONG_PASSWORD",e.mfa="SHOW_MFA",e.showCaptcha="SHOW_CAPTCHA",e.passwordReused="PASSWORD_REUSED",e.socialNoEmail="EMAIL_EMPTY",e.alreadyConfirmed="already_confirmed"}(t.ApiErrorCode||(t.ApiErrorCode={})),function(e){e.ByStatusCode="statuscode-error",e.Unknown="unknown-error",e.JsonParsing="json-error"}(r=t.MissingBackendError||(t.MissingBackendError={}));function s(e,n){var r=(0,t.getServerErrorData)(e);if(r)return r[n]}function u(e){var t=M(e);return t?t.lastDigits:""}function c(e){return s(e,"error")}function M(e){return s(e,"errorContext")}function m(e){var n=(0,t.getServerErrorData)(e);return n?n.modes:[]}function l(e){return s(e,"message")}t.getServerErrorData=function(e){try{return e.body?JSON.parse(e.body):e.code?{error:r.ByStatusCode,code:e.code.toString()}:{error:r.Unknown}}catch(t){return{error:r.JsonParsing}}},t.extractServerErrorField=s,t.getMfaLoginContext=function(e){return{last:u(e),modes:m(e)}},t.getErrorContextLastDigits=u,t.getServerErrorErr=c,t.getServerErrorContext=M,t.getErrorContextRedirectTo=function(e){var t=M(e);return t?t.redirectTo:void 0},t.getServerErrorMsg=l,t.getErrorMsg=function(e){var t=l(e);return t||(t=e.message),t},t.transformToString=function(e){return JSON.stringify(d(e))};t.isHTTPError=function(e){return"object"===typeof e&&null!==e&&e.name&&"HTTPError"===e.name};t.filterRequestError=function(e){if((0,t.isHTTPError)(e)){var n=e.request,r=(0,i.__rest)(e,["request"]);if(n){var o=n,a=(o._body,(0,i.__rest)(o,["_body"]));return Object.assign({request:a},r)}return Object.assign({request:n},r)}return e};function d(e){return(0,a.redactPiiFromObj)((0,t.serializeErrorObj)(e))}t.serializeErrorObj=function(e){return(0,o.default)((0,t.isHTTPError)(e)?(0,t.filterRequestError)(e):e)},t.serializeErrorObjSafe=d,t.isAuthLegacyApiError=function(e){return"AuthApiError"===e.name},t.maskEmails=function(e){return e.replace(/(\w{3})[\w.-]+@([\w.]+\w)/g,"$1***@$2")},t.getGnarError=function(e){var t;return[e.code,null!==(t=c(e))&&void 0!==t?t:e.message].filter(Boolean).join(" - ")}},84669:function(e,t,n){"use strict";var r=n(48064).default,i=n(18231).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FifoCache=void 0;var o=n(5259),a=n(84894),s=function(){function e(t){r(this,e),this.map=a.observable.map(new Map),this.capacity=t}return i(e,[{key:"get",value:function(e){return this.map.get(e)}},{key:"has",value:function(e){return this.map.has(e)}},{key:"set",value:function(e,t){if(this.map.set(e,t),this.map.size>this.capacity){var n=this.map.keys().next().value;this.map.delete(n)}return this}},{key:"delete",value:function(e){return this.map.delete(e)}},{key:"clear",value:function(){return this.map.clear()}}]),e}();(0,o.__decorate)([a.action.bound,(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],s.prototype,"set",null),(0,o.__decorate)([a.action.bound,(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object]),(0,o.__metadata)("design:returntype",void 0)],s.prototype,"delete",null),t.FifoCache=s},79510:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormattedFullDateFromToday=t.formatDate=t.fullDateAbbrevMonth=t.fullDate=t.monthList=void 0;var r=n(38613);t.monthList=["January","February","March","April","May","June","July","August","September","October","November","December"];var i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function o(e){"string"===typeof e&&(e=parseInt(e,10));var n=new Date(e);return"".concat(t.monthList[n.getMonth()]||""," ").concat(n.getDate(),", ").concat(n.getFullYear())}t.fullDate=o,t.fullDateAbbrevMonth=function(e){var t=new Date(e);return"".concat(i[t.getMonth()]||""," ").concat(t.getDate(),", ").concat(t.getFullYear())},t.formatDate=function(e){var n=new Date(e+"Z");return"".concat(t.monthList[n.getMonth()]," ").concat(n.getDate(),", ").concat(n.getFullYear(),", ").concat(n.toLocaleTimeString())},t.getFormattedFullDateFromToday=function(e){return o(e>0?Date.now()+1e3*r.day*e:Date.now())}},62507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trialPlanPriceMoney=t.priceMoneyToString=t.getDefaultCurrencyOptions=t.emptyMoney=t.CurrencyCode=t.TrailingZeroesFormat=void 0;var r,i,o=(0,n(5259).__importDefault)(n(26098));n(60312),function(e){e.WithTrailingZeroes="WithTrailingZeroes",e.WithoutTrailingZeroes="WithoutTrailingZeroes"}(r=t.TrailingZeroesFormat||(t.TrailingZeroesFormat={})),function(e){e.USD="USD",e.CUD="CUD",e.EUR="EUR",e.GBP="GBP",e.MXN="MXN",e.PHP="PHP",e.MYR="MYR",e.IDR="IDR",e.INR="INR",e.BRL="BRL",e.CAD="CAD",e.AUD="AUD",e.NZD="NZD",e.JPY="JPY",e.SGD="SGD",e.KRW="KRW",e.HKD="HKD"}(i=t.CurrencyCode||(t.CurrencyCode={}));var a=function(e){return e},s=function(e){switch(e){case r.WithoutTrailingZeroes:return"0,0[.]00";case r.WithTrailingZeroes:default:return"0,0.00"}};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t(e.value),u=s(n.trailingZeroes);switch(o.default.defaultFormat("0,0[.]00"),o.default.locale("en"),(0,o.default)().format("currency"),e.currency){case i.USD:return"$".concat((0,o.default)(r).format(u));case i.CUD:return"US $".concat((0,o.default)(r).format(u));case i.GBP:return"\xa3".concat((0,o.default)(r).format(u));case i.EUR:return"\u20ac".concat((0,o.default)(r).format(u));case i.MXN:return"Mex$".concat((0,o.default)(Math.ceil(r)).format());case i.PHP:return"\u20b1".concat((0,o.default)(Math.ceil(r)).format());case i.MYR:return"RM".concat((0,o.default)(r).format("0,0.00"));case i.IDR:return o.default.locale("pt-br"),"Rp".concat((0,o.default)(Math.ceil(r)).format());case i.INR:return"\u20b9 ".concat((0,o.default)(Math.ceil(r)).format());case i.BRL:return o.default.locale("pt-br"),"R$".concat((0,o.default)(r).format("0,0.00"));case i.CAD:return"$".concat((0,o.default)(r).format(u)," CAD");case i.AUD:return"$".concat((0,o.default)(r).format(u)," AUD");case i.NZD:return"$".concat((0,o.default)(r).format(u)," NZD");case i.JPY:return"\xa5".concat((0,o.default)(Math.ceil(r)).format());case i.SGD:return"S$".concat((0,o.default)(r).format(u));case i.KRW:return"\u20a9".concat((0,o.default)(Math.ceil(r)).format());case i.HKD:return"HKD ".concat((0,o.default)(r).format(u));default:return new Intl.NumberFormat("en-US",{style:"currency",currency:e.currency,minimumFractionDigits:0}).format(r)}}var c={prefix:void 0,suffix:void 0};function M(e){return{USD:{prefix:"",suffix:" USD"}}[e]||{}}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.currencySpecificFormattingOptions,i=void 0===r?{}:r,o=n.formattingOptions,s=i[e.currency]||M(e.currency),m=s.disableFormatting?c:s,l=m.prefix,d=m.suffix;return"".concat(l||"").concat(u(e,t,o)).concat(d||"")}t.emptyMoney={currency:i.USD,value:0},t.getDefaultCurrencyOptions=M,t.priceMoneyToString=m;t.trialPlanPriceMoney=function(e){return m(Object.assign(Object.assign({},t.emptyMoney),{currency:e.currency}),a,{formattingOptions:{trailingZeroes:r.WithoutTrailingZeroes}})}},98407:function(e,t,n){"use strict";var r=n(94534).default;Object.defineProperty(t,"__esModule",{value:!0}),t.redactPiiFromUrl=t.redactPiiFromObj=void 0;var i=(0,n(5259).__importDefault)(n(34220)),o=["email","_hse","password"];t.redactPiiFromObj=function(e){return Object.keys(e).reduce((function(t,n){return o.includes(n)?t[n]="[REDACTED]":"string"===typeof e[n]?t[n]=e[n].replace(/(\\?"email\\?":[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\\?")((?:(?!["\\])[\s\S])+)(\\?")/gi,"$1[REDACTED]$3"):t[n]=e[n],t}),{})};t.redactPiiFromUrl=function(e){if(!e.indexOf("?"))return e;var n=e.split("?"),o=r(n,2),a=o[0],s=o[1],u=i.default.stringify((0,t.redactPiiFromObj)(i.default.parse(s)));return"".concat(a,"?").concat(u)}},57048:function(e,t){"use strict";function n(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.formatType=t.deCapitalize=t.capitalizeEachWord=t.capitalize=void 0,t.capitalize=n,t.capitalizeEachWord=function(e){return e.split(" ").map(n).join(" ")},t.deCapitalize=function(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)},t.formatType=function(e){return e.charAt(0).toUpperCase()+e.slice(1).replace(/([A-Z])/g," $1").toLowerCase()},t.isEmpty=function(e){return!e||!e.trim()}},37995:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={branch:GIT_BRANCH,commit:GIT_COMMIT}},30997:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageKey=void 0,function(e){e.grammarlyExperimentOverrides="grammarlyExperimentOverrides",e.checkedText="checkedText",e.organizationName="organizationName",e.affName="affName",e.voxEnabled="voxEnabled",e.showedNgoConfirmation="showedNgoConfirmation",e.questionnaireCompanyName="questionnaireCompanyName",e.questionnaireTeamType="questionnaireTeamType",e.questionnaireRole="questionnaireRoleOrTitle",e.questionnaireCompanySize="questionnaireCompanySize",e.questionnaireIndustryType="questionnaireIndustryType",e.questionnaireWhoWouldUse="questionnaireWhoWouldUse",e.questionnaireTeamNeeds="questionnaireTeamNeeds",e.memberWelcomeSurveyStatus="memberWelcomeSurveyStatus",e.memberWelcomeVisited="memberWelcomeVisited"}(t.LocalStorageKey||(t.LocalStorageKey={}))},65685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageKey=t.hasRenderControllingLocalStorageItemsSet=t.removeLocalStorageItem=t.onLocalStorageItemUpdate=t.getLocalStorageItem=t.setLocalStorageItem=t.isLocalStorageSupported=void 0,t.isLocalStorageSupported=IS_CLIENT_SIDE&&null!=window.localStorage,t.setLocalStorageItem=function(e,n){if(t.isLocalStorageSupported)try{localStorage.setItem(e,n)}catch(r){}},t.getLocalStorageItem=function(e){return t.isLocalStorageSupported?localStorage.getItem(e):null},t.onLocalStorageItemUpdate=function(e,n){if(t.isLocalStorageSupported){var r=function(t){t.key===e&&n(t)};return window.addEventListener("storage",r),function(){return window.removeEventListener("storage",r)}}return function(){}},t.removeLocalStorageItem=function(e){t.isLocalStorageSupported&&localStorage.removeItem(e)},t.hasRenderControllingLocalStorageItemsSet=function(){return!1};var r=n(30997);Object.defineProperty(t,"LocalStorageKey",{enumerable:!0,get:function(){return r.LocalStorageKey}})},59577:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0;t.noop=function(){}},46785:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.getPlanByPlanPeriod=t.getPlanPeriod=t.getPeriodMonthsWritten=t.getPeriodMonths=t.isMonthly=t.isAnnual=t.PlanPeriod=void 0,function(e){e.Annual="annual",e.Monthly="monthly",e.Quarterly="quarterly"}(n=t.PlanPeriod||(t.PlanPeriod={}));var r=function(e){var t=new RegExp(e,"i");return function(e){return t.test(e)}};t.isAnnual=r("annual"),t.isMonthly=r("monthly");t.getPeriodMonths=function(e){switch(e){case n.Monthly:return 1;case n.Quarterly:return 3;case n.Annual:default:return 12}};t.getPeriodMonthsWritten=function(e){switch(e){case 1:return"one";case 3:return"three";case 12:default:return"twelve"}};t.getPlanPeriod=function(e){switch(e){case 1:return n.Monthly;case 3:return n.Quarterly;case 12:default:return n.Annual}};t.getPlanByPlanPeriod=function(e,n){var r=(0,t.getPeriodMonths)(e);return n.find((function(e){return e.periodMonths===r}))}},63088:function(e,t,n){"use strict";var r=n(84322),i=n(94534).default;Object.defineProperty(t,"__esModule",{value:!0}),t.addApplicationRequestHeaders=t.sendRequest=void 0;var o=n(5259),a=n(15435),s=n(54629);t.sendRequest=a.AjaxFetch.create(fetch);t.addApplicationRequestHeaders=function(e){return(0,o.__awaiter)(void 0,void 0,void 0,r.mark((function t(){var n;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.getApplicationRequestHeaders)();case 2:n=t.sent,Object.entries(n).forEach((function(t){var n=i(t,2),r=n[0],o=n[1];return e.header(r,o)}));case 4:case"end":return t.stop()}}),t)})))}},38613:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.year=t.month=t.week=t.day=t.hour=t.minute=void 0,t.minute=60,t.hour=60*t.minute,t.day=24*t.hour,t.week=7*t.day,t.month=30*t.day,t.year=365*t.day},51716:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tracker=void 0;var r=n(5259),i=n(78514),o=(0,r.__importDefault)(n(655));t.tracker=function(){if(!IS_CLIENT_SIDE){var e=function(){};return{ga:e,setUserId:e,sendPageview:e}}var t=(0,o.default)(),n=t.tracking,r=t.domains,a=new i.GoogleAnalyticsClient(n.googleAnalytics.id,new i.GAClientIdManager(new i.CookieStorage(r.cookie),[new i.LocalStorage,new i.MemoryStorage]));return a.ga("require","displayfeatures"),a.ga("require","ecommerce"),a}()},69113:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendFelogEvent=t.tryGetServicesInformation=t.enrichLogsWithContext=t.logLevels=void 0;var r,i=n(5259),o=n(83367),a=(0,i.__importDefault)(n(655)),s=(0,i.__importDefault)(n(37995)),u=n(98407),c=(0,a.default)(),M=c.tracking,m=c.env,l=M.felog.url;function d(){if(!r)return{};try{return{userId:r.userService.user.id,isTestUser:r.userService.user.isTest,funnelType:r.navigationService.funnelType,pageId:r.navigationService.pageId,experiments:JSON.stringify(r.experimentsService.experimentsData),browserInfo:r.browserService.getRawInfo(),isIPadOS13:r.browserService.isIPadOS13,countryCode:r.geoLocationService.countryCode}}catch(t){var e=r.facadeService.get();return{experiments:JSON.stringify(e.experiments),userId:e.user?e.user.id:void 0}}}t.logLevels={info:"INFO",warn:"WARN",error:"ERROR"},t.enrichLogsWithContext=function(e){r=e},t.tryGetServicesInformation=d,t.sendFelogEvent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"INFO",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(IS_CLIENT_SIDE){var i=d(),a={application:"funnel",env:m,level:t,message:e,version:BUILD_TAG||s.default.branch,logger:n,extra:Object.assign(Object.assign(Object.assign({},r),i),{url:(0,u.redactPiiFromUrl)(document.location.href),pathname:document.location.pathname})};return fetch(l+"/log",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).catch((function(e){}))}o.Monitoring.Logging.getLogger("felog.event").warn("Server side wants to send felog event, but it isn't allowed at the server side.",{message:e,logLevel:t,logger:n,extra:r})}},90951:function(e,t,n){"use strict";var r=n(84322);Object.defineProperty(t,"__esModule",{value:!0}),t.logError=t.FelogEventType=t.sendFelogEvent=void 0;var i=n(5259),o=n(57266),a=n(33489),s=n(69113),u=n(69113);Object.defineProperty(t,"sendFelogEvent",{enumerable:!0,get:function(){return u.sendFelogEvent}});var c="Error";!function(e){e.signinAttempt="signinAttempt",e.signinSuccess="SigninSuccessEvent",e.signinFail="SigninFailEvent",e.signupAttempt="signupAttempt",e.signupSuccess="SignupSuccessEvent",e.signupFail="SignupFailEvent",e.creditCardPaymentAttempt="creditCardPaymentAttempt",e.creditCardPaymentAccepted="creditCardPaymentAcceptedEvent",e.creditCardPaymentRejected="creditCardPaymentRejectedEvent",e.paypalPaymentAttempt="paypalPaymentAttempt",e.paypalPaymentAccepted="paypalPaymentAcceptedEvent",e.paypalPaymentRejected="paypalPaymentRejectedEvent",e.achPaymentAttempt="achPaymentAttempt",e.achPaymentAccepted="achPaymentAccepted",e.achPaymentRejected="achPaymentRejected",e.ungatedBusinessTrialAttempt="ungatedBusinessTrialAttempt",e.ungatedBusinessTrialAccepted="ungatedBusinessTrialAccepted",e.ungatedBusinessTrialFail="ungatedBusinessTrialFail",e.localizedPlansAttempt="localizedPlansAttempt",e.localizedPlansLoaded="localizedPlansLoaded",e.localizedPlansFailed="localizedPlansFailed"}(t.FelogEventType||(t.FelogEventType={})),t.logError=function(e,t,n){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c,M=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.logLevels.error,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return(0,i.__awaiter)(this,void 0,void 0,r.mark((function i(){var c;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!m.ignoreContainerID){r.next=4;break}return r.abrupt("return",(0,s.sendFelogEvent)(e,M,u,Object.assign({filename:t,metricName:n},m)));case 4:return r.prev=4,r.next=7,a.gnar.getContainerId();case 7:return c=r.sent,r.abrupt("return",(0,s.sendFelogEvent)(e,M,u,Object.assign({filename:t,metricName:n,containerId:c},m)));case 11:return r.prev=11,r.t0=r.catch(4),r.abrupt("return",(0,s.sendFelogEvent)(e,M,u,Object.assign({filename:t,metricName:"cannotGetContainerID",containerId:"Cannot get containerID: ".concat((0,o.transformToString)(r.t0))},m)));case 14:case"end":return r.stop()}}),i,null,[[4,11]])})))}},13899:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTrackBinding=t.extendGnarEventsWith=t.extraProps=t.createGnarClient=t.MemoryGnarClient=void 0;var r=n(78514),i=n(51716),o=n(78514);Object.defineProperty(t,"MemoryGnarClient",{enumerable:!0,get:function(){return o.MemoryGnarClient}}),t.createGnarClient=function(e,t,n,o){var a=new r.ContainerIdManager(new r.CookieStorage(o),[new r.LocalStorage,new r.MemoryStorage]);return new r.GnarClientImpl(e,t,n,fetch.bind(window),a,null,!1,i.tracker)},t.extraProps={},t.extendGnarEventsWith=function(e){return t.extraProps=Object.assign(Object.assign({},e),t.extraProps),t.extraProps},t.createTrackBinding=function(e){var n=e.track.bind(e);return e.track=function(e){return n(Object.assign(Object.assign({},e),t.extraProps))},e}},33489:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendGnarEventsWith=t.gnarRoutes=t.gnarSpec=t.gnar=void 0;var r=n(5259),i=(0,r.__importDefault)(n(655)),o=(0,r.__importDefault)(n(37995)),a=n(13899),s=n(60692),u=(0,i.default)(),c=u.tracking,M=u.domains;t.gnar=IS_CLIENT_SIDE?(0,a.createGnarClient)(c.gnar.url,"funnel",BUILD_TAG||o.default.branch,M.cookie):new a.MemoryGnarClient,(0,a.createTrackBinding)(t.gnar),t.gnarSpec=new s.GnarSpec(t.gnar);var m=n(88051);Object.defineProperty(t,"gnarRoutes",{enumerable:!0,get:function(){return m.pageIdToFunnelType}});var l=n(13899);Object.defineProperty(t,"extendGnarEventsWith",{enumerable:!0,get:function(){return l.extendGnarEventsWith}})},60692:function(e,t,n){"use strict";var r=n(48064).default,i=n(18231).default;Object.defineProperty(t,"__esModule",{value:!0}),t.GnarSpec=void 0;var o=function(){function e(t){r(this,e),this.gnar=t}return i(e,[{key:"affiliateAddExtensionButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/affiliate/addExtension-button-click",funnelType:"affiliate",object:"button",objectId:"addExtension",pageId:e,placement:t})}},{key:"affiliateAffiliateHomePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/affiliate/affiliateHome-page-show",funnelType:"affiliate",isLanding:!0,object:"page",objectId:"affiliateHome",pageId:"affiliateHome",referrer:e,url:t})}},{key:"affiliateExtInstallCancelPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/affiliate/extInstallCancel-page-show",funnelType:"affiliate",isLanding:!1,object:"page",objectId:"extInstallCancel",pageId:"extInstallCancel",referrer:e,url:t})}},{key:"affiliateExtInstallPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/affiliate/extInstall-page-show",funnelType:"affiliate",isLanding:!1,object:"page",objectId:"extInstall",pageId:"extInstall",referrer:e,url:t})}},{key:"affiliateExtInstallRefuseButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/affiliate/extInstallRefuse-button-click",funnelType:"affiliate",object:"button",objectId:"extInstallRefuse",pageId:e})}},{key:"affiliatePageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/affiliate/page-scroll",funnelType:"affiliate",object:"page",pageId:e})}},{key:"affiliateSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/affiliate/signin-button-click",funnelType:"affiliate",object:"button",objectId:"signin",pageId:e})}},{key:"affiliateSignupFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/affiliate/signup-form-fail",funnelType:"affiliate",object:"form",objectId:"signup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r,placement:i})}},{key:"affiliateSignupFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/affiliate/signup-form-success",funnelType:"affiliate",object:"form",objectId:"signup",emailOptOut:e,pageId:t,isGdpr:n,placement:r})}},{key:"affiliateSignupSubmitButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/affiliate/signupSubmit-button-click",funnelType:"affiliate",object:"button",objectId:"signupSubmit",pageId:e,isGdpr:t})}},{key:"affiliateWelcomePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/affiliate/welcome-page-show",funnelType:"affiliate",isLanding:!1,object:"page",objectId:"welcome",pageId:"welcome",referrer:e,url:t})}},{key:"auxAboutPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/about-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"about",pageId:"about",referrer:e,url:t})}},{key:"auxAppStoreDownloadKeyboardButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/aux/appStoreDownloadKeyboard-button-click",funnelType:"aux",object:"button",objectId:"appStoreDownloadKeyboard",pageId:e})}},{key:"auxContactSalesFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/aux/contactSales-form-fail",funnelType:"aux",object:"form",objectId:"contactSales",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"auxContactSalesFormSuccess",value:function(e,t,n,r,i){return this.gnar.track({action:"success",eventName:"funnel/aux/contactSales-form-success",funnelType:"aux",object:"form",objectId:"contactSales",interest:e,pageId:t,teamName:n,teamSize:r,additionalInfo:i})}},{key:"auxContactSalesPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/contactSales-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"contactSales",pageId:"contactSales",referrer:e,url:t})}},{key:"auxContactSalesSelfCheckoutLinkClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/aux/contactSalesSelfCheckout-link-click",funnelType:"aux",object:"link",objectId:"contactSalesSelfCheckout",pageId:e,teamSize:t,placement:n})}},{key:"auxContactSalesSelfServePopupShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/aux/contactSalesSelfServe-popup-show",funnelType:"aux",object:"popup",objectId:"contactSalesSelfServe",pageId:e})}},{key:"auxContactSalesSuccessPopupShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/aux/contactSalesSuccess-popup-show",funnelType:"aux",object:"popup",objectId:"contactSalesSuccess",pageId:e})}},{key:"auxGetSafariMacAppButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/aux/getSafariMacApp-button-click",funnelType:"aux",object:"button",objectId:"getSafariMacApp",pageId:e,placement:t})}},{key:"auxGooglePlayDownloadKeyboardButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/aux/googlePlayDownloadKeyboard-button-click",funnelType:"aux",object:"button",objectId:"googlePlayDownloadKeyboard",pageId:e})}},{key:"auxHighlightedNewLinkClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/aux/highlightedNew-link-click",funnelType:"aux",object:"link",objectId:"highlightedNew",pageId:e,title:t,placement:n})}},{key:"auxJobApplicationButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/aux/jobApplication-button-click",funnelType:"aux",object:"button",objectId:"jobApplication",pageId:e})}},{key:"auxJobApplicationFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/aux/jobApplication-form-fail",funnelType:"aux",object:"form",objectId:"jobApplication",pageId:e,vacancyName:t,fieldErrors:n,formErrorMessage:r})}},{key:"auxJobApplicationFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/aux/jobApplication-form-success",funnelType:"aux",object:"form",objectId:"jobApplication",pageId:e,vacancyName:t})}},{key:"auxJobsCorporatePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/jobsCorporate-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"jobsCorporate",pageId:"jobsCorporate",referrer:e,url:t})}},{key:"auxJobsLifePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/jobsLife-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"jobsLife",pageId:"jobsLife",referrer:e,url:t})}},{key:"auxJobsMarketingPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/jobsMarketing-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"jobsMarketing",pageId:"jobsMarketing",referrer:e,url:t})}},{key:"auxJobsOpeningsPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/jobsOpenings-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"jobsOpenings",pageId:"jobsOpenings",referrer:e,url:t})}},{key:"auxJobsOpportunityPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/jobsOpportunity-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"jobsOpportunity",pageId:"jobsOpportunity",referrer:e,url:t})}},{key:"auxJobsProductPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/jobsProduct-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"jobsProduct",pageId:"jobsProduct",referrer:e,url:t})}},{key:"auxJobsTechnologyPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/jobsTechnology-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"jobsTechnology",pageId:"jobsTechnology",referrer:e,url:t})}},{key:"auxJobsVacancyPageShow",value:function(e,t,n,r,i,o){return this.gnar.track({action:"show",eventName:"funnel/aux/jobsVacancy-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"jobsVacancy",pageId:"jobsVacancy",referrer:e,url:t,vacancyId:n,vacancyLocation:r,vacancyName:i,vacancySection:o})}},{key:"auxMediaAssetLinkClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/aux/mediaAsset-link-click",funnelType:"aux",object:"link",objectId:"mediaAsset",fileType:e,name:t,pageId:n,placement:r})}},{key:"auxMediaAssetsPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/mediaAssets-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"mediaAssets",pageId:"mediaAssets",referrer:e,url:t})}},{key:"auxPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/aux/page-scroll",funnelType:"aux",object:"page",pageId:e})}},{key:"auxPremiumPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/premium-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"premium",pageId:"premium",referrer:e,url:t})}},{key:"auxProfilePreferencesPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/profilePreferences-page-show",funnelType:"aux",isLanding:!1,object:"page",objectId:"profilePreferences",pageId:"profilePreferences",referrer:e,url:t})}},{key:"auxRecentNewLinkClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/aux/recentNew-link-click",funnelType:"aux",object:"link",objectId:"recentNew",pageId:e,title:t,placement:n})}},{key:"auxReseachBlockLinkClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/aux/reseachBlock-link-click",funnelType:"aux",object:"link",objectId:"reseachBlock",pageId:e,title:t,placement:n})}},{key:"auxSafariNeedHelpButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/aux/safariNeedHelp-button-click",funnelType:"aux",object:"button",objectId:"safariNeedHelp",pageId:e})}},{key:"auxSafariPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/aux/safari-page-show",funnelType:"aux",isLanding:!0,object:"page",objectId:"safari",pageId:"safari",referrer:e,url:t})}},{key:"auxSelectPlanButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/aux/selectPlan-button-click",funnelType:"aux",object:"button",objectId:"selectPlan",pageId:e,planPeriod:t,detectedCountryCode:n,detectedCountryName:r})}},{key:"auxSelectTeamButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/aux/selectTeam-button-click",funnelType:"aux",object:"button",objectId:"selectTeam",pageId:e,team:t})}},{key:"auxSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/aux/signin-button-click",funnelType:"aux",object:"button",objectId:"signin",pageId:e})}},{key:"auxSignupButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/aux/signup-button-click",funnelType:"aux",object:"button",objectId:"signup",pageId:e})}},{key:"auxTextKeyboardLinkFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/aux/textKeyboardLink-form-fail",funnelType:"aux",object:"form",objectId:"textKeyboardLink",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"auxTextKeyboardLinkFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/aux/textKeyboardLink-form-success",funnelType:"aux",object:"form",objectId:"textKeyboardLink",pageId:e})}},{key:"auxUpgradeButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/aux/upgrade-button-click",funnelType:"aux",object:"button",objectId:"upgrade",pageId:e,placement:t})}},{key:"auxViewAllNewsButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/aux/viewAllNews-button-click",funnelType:"aux",object:"button",objectId:"viewAllNews",pageId:e})}},{key:"businessAchPaymentSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/achPaymentSubmit-button-click",funnelType:"business",object:"button",objectId:"achPaymentSubmit",pageId:e})}},{key:"businessAdminEmailConfirmationFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/business/adminEmailConfirmation-form-fail",funnelType:"business",object:"form",objectId:"adminEmailConfirmation",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"businessAdminEmailConfirmationFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/business/adminEmailConfirmation-form-success",funnelType:"business",object:"form",objectId:"adminEmailConfirmation",pageId:e,alreadyConfirmed:t})}},{key:"businessAdminGetStartedButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/adminGetStarted-button-click",funnelType:"business",object:"button",objectId:"adminGetStarted",pageId:e})}},{key:"businessAuthorisationStepPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/business/authorisationStep-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"authorisationStep",pageId:"authorisationStep",referrer:e,url:t,isRequiredNonGenericEmail:n})}},{key:"businessBusinessActivateInviteKeyErrorFormFail",value:function(e,t){return this.gnar.track({action:"fail",eventName:"funnel/business/businessActivateInviteKeyError-form-fail",funnelType:"business",object:"form",objectId:"businessActivateInviteKeyError",pageId:"businessActivate",fieldErrors:e,formErrorMessage:t})}},{key:"businessBusinessActivatePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessActivate-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessActivate",pageId:"businessActivate",referrer:e,url:t})}},{key:"businessBusinessAdminWelcomePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessAdminWelcome-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessAdminWelcome",pageId:"businessAdminWelcome",referrer:e,url:t})}},{key:"businessBusinessAdminWelcomeSurveyPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessAdminWelcomeSurvey-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessAdminWelcomeSurvey",pageId:"businessAdminWelcomeSurvey",referrer:e,url:t})}},{key:"businessBusinessApproveEmailChangePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessApproveEmailChange-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessApproveEmailChange",pageId:"businessApproveEmailChange",referrer:e,url:t})}},{key:"businessBusinessCXPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessCX-page-show",funnelType:"business",isLanding:!0,object:"page",objectId:"businessCX",pageId:"businessCX",referrer:e,url:t})}},{key:"businessBusinessConfirmEmailChangePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessConfirmEmailChange-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessConfirmEmailChange",pageId:"businessConfirmEmailChange",referrer:e,url:t})}},{key:"businessBusinessConfirmPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessConfirm-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessConfirm",pageId:"businessConfirm",referrer:e,url:t})}},{key:"businessBusinessExperienceSurveyPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/business/businessExperienceSurvey-page-show",funnelType:"business",object:"page",objectId:"businessExperienceSurvey",pageId:"businessExperienceSurvey",referrer:e,url:t,isLanding:n})}},{key:"businessBusinessExtensionEnableExtensionEnableSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/business/businessExtensionEnable-extensionEnable-success",funnelType:"business",object:"extensionEnable",objectId:"businessExtensionEnable",how:e,pageId:t})}},{key:"businessBusinessExtensionEnablePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/business/businessExtensionEnable-page-show",funnelType:"business",object:"page",objectId:"businessExtensionEnable",pageId:"businessExtensionEnable",referrer:e,url:t,isLanding:n})}},{key:"businessBusinessGetStartedButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/businessGetStarted-button-click",funnelType:"business",object:"button",objectId:"businessGetStarted",pageId:e,placement:t})}},{key:"businessBusinessHRPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessHR-page-show",funnelType:"business",isLanding:!0,object:"page",objectId:"businessHR",pageId:"businessHR",referrer:e,url:t})}},{key:"businessBusinessHomeExpPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessHomeExp-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessHomeExp",pageId:"businessHomeExp",referrer:e,url:t})}},{key:"businessBusinessHomeMobilePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessHomeMobile-page-show",funnelType:"business",isLanding:!0,object:"page",objectId:"businessHomeMobile",pageId:"businessHomeMobile",referrer:e,url:t})}},{key:"businessBusinessHomePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessHome-page-show",funnelType:"business",isLanding:!0,object:"page",objectId:"businessHome",pageId:"businessHome",referrer:e,url:t})}},{key:"businessBusinessInviteMembersPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessInviteMembers-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessInviteMembers",pageId:"businessInviteMembers",referrer:e,url:t})}},{key:"businessBusinessJoinExistingPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessJoinExisting-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessJoinExisting",pageId:"businessJoinExisting",referrer:e,url:t})}},{key:"businessBusinessJoinNewPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessJoinNew-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessJoinNew",pageId:"businessJoinNew",referrer:e,url:t})}},{key:"businessBusinessLogoLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/businessLogo-link-click",funnelType:"business",object:"link",objectId:"businessLogo",pageId:e,placement:t})}},{key:"businessBusinessMarketingPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessMarketing-page-show",funnelType:"business",isLanding:!0,object:"page",objectId:"businessMarketing",pageId:"businessMarketing",referrer:e,url:t})}},{key:"businessBusinessMemberWelcomeExtensionOfferingShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/business/businessMemberWelcomeExtension-offering-show",funnelType:"business",object:"offering",objectId:"businessMemberWelcomeExtension",pageId:e})}},{key:"businessBusinessMemberWelcomeInstitutionFetchFail",value:function(e){return this.gnar.track({action:"fail",eventName:"funnel/business/businessMemberWelcome-institutionFetch-fail",funnelType:"business",object:"institutionFetch",objectId:"businessMemberWelcome",pageId:e})}},{key:"businessBusinessMemberWelcomeLlamaOfferingShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/business/businessMemberWelcomeLlama-offering-show",funnelType:"business",object:"offering",objectId:"businessMemberWelcomeLlama",pageId:e})}},{key:"businessBusinessMemberWelcomePageShow",value:function(e,t,n,r,i,o,a,s,u,c){return this.gnar.track({action:"show",eventName:"funnel/business/businessMemberWelcome-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessMemberWelcome",pageId:"businessMemberWelcome",isCrossPlatformOfficeAddinInstalled:e,isDesktopAppInstalled:t,isExtensionInstalled:n,isKeyboardInstalled:r,isLlamaAppInstalled:i,isOfficeAddinInstalled:o,isTrialInstitution:a,isWindowsOfficeAddinInstalled:s,referrer:u,url:c})}},{key:"businessBusinessMemberWelcomeProductsOfferingShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/business/businessMemberWelcomeProducts-offering-show",funnelType:"business",object:"offering",objectId:"businessMemberWelcomeProducts",pageId:e})}},{key:"businessBusinessMemberWelcomeSurveyPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessMemberWelcomeSurvey-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessMemberWelcomeSurvey",pageId:"businessMemberWelcomeSurvey",referrer:e,url:t})}},{key:"businessBusinessMemberWelcomeSurveyShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/business/businessMemberWelcome-survey-show",funnelType:"business",object:"survey",objectId:"businessMemberWelcome",pageId:e})}},{key:"businessBusinessPricingPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessPricing-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessPricing",pageId:"businessPricing",referrer:e,url:t})}},{key:"businessBusinessSalesPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessSales-page-show",funnelType:"business",isLanding:!0,object:"page",objectId:"businessSales",pageId:"businessSales",referrer:e,url:t})}},{key:"businessBusinessSubscriptionCancelPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/businessSubscriptionCancel-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"businessSubscriptionCancel",pageId:"businessSubscriptionCancel",referrer:e,url:t})}},{key:"businessBusinessTryForFreeButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/businessTryForFree-button-click",funnelType:"business",object:"button",objectId:"businessTryForFree",pageId:e,placement:t})}},{key:"businessChangeEmailConfirmButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/changeEmailConfirm-button-click",funnelType:"business",object:"button",objectId:"changeEmailConfirm",pageId:e})}},{key:"businessChangeEmailSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/changeEmailSuccess-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"changeEmailSuccess",pageId:"changeEmailSuccess",referrer:e,url:t})}},{key:"businessConfirmCancelButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/confirmCancel-button-click",funnelType:"business",object:"button",objectId:"confirmCancel",pageId:e})}},{key:"businessConfirmInvoiceFormSubmit",value:function(e){return this.gnar.track({action:"submit",eventName:"funnel/business/confirmInvoice-form-submit",funnelType:"business",object:"form",objectId:"confirmInvoice",pageId:e})}},{key:"businessContactAdminChatPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/business/contactAdminChat-page-show",funnelType:"business",object:"page",objectId:"contactAdminChat",pageId:"contactAdminChat",referrer:e,url:t,isLanding:n})}},{key:"businessContactSalesButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSales-button-click",funnelType:"business",object:"button",objectId:"contactSales",pageId:e})}},{key:"businessContactSalesBuyGBButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesBuyGB-button-click",funnelType:"business",object:"button",objectId:"contactSalesBuyGB",pageId:e})}},{key:"businessContactSalesBuyGBTryButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesBuyGBTry-button-click",funnelType:"business",object:"button",objectId:"contactSalesBuyGBTry",pageId:e})}},{key:"businessContactSalesContactSupportButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesContactSupport-button-click",funnelType:"business",object:"button",objectId:"contactSalesContactSupport",pageId:e})}},{key:"businessContactSalesExistingPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/contactSalesExisting-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"contactSalesExisting",pageId:"contactSalesExisting",referrer:e,url:t})}},{key:"businessContactSalesExplorePremiumButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesExplorePremium-button-click",funnelType:"business",object:"button",objectId:"contactSalesExplorePremium",pageId:e})}},{key:"businessContactSalesGetStartedButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesGetStarted-button-click",funnelType:"business",object:"button",objectId:"contactSalesGetStarted",pageId:e})}},{key:"businessContactSalesHelpGBButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesHelpGB-button-click",funnelType:"business",object:"button",objectId:"contactSalesHelpGB",pageId:e})}},{key:"businessContactSalesHelpPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/contactSalesHelp-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"contactSalesHelp",pageId:"contactSalesHelp",referrer:e,url:t})}},{key:"businessContactSalesNgoPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/contactSalesNgo-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"contactSalesNgo",pageId:"contactSalesNgo",referrer:e,url:t})}},{key:"businessContactSalesPersonalPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/contactSalesPersonal-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"contactSalesPersonal",pageId:"contactSalesPersonal",referrer:e,url:t})}},{key:"businessContactSalesSorryGBButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesSorryGB-button-click",funnelType:"business",object:"button",objectId:"contactSalesSorryGB",pageId:e})}},{key:"businessContactSalesSorryHaveQuestionsButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesSorryHaveQuestions-button-click",funnelType:"business",object:"button",objectId:"contactSalesSorryHaveQuestions",pageId:e})}},{key:"businessContactSalesSorryPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/contactSalesSorry-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"contactSalesSorry",pageId:"contactSalesSorry",referrer:e,url:t})}},{key:"businessContactSalesThanksAccountButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesThanksAccount-button-click",funnelType:"business",object:"button",objectId:"contactSalesThanksAccount",pageId:e})}},{key:"businessContactSalesThanksBuyPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/contactSalesThanksBuy-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"contactSalesThanksBuy",pageId:"contactSalesThanksBuy",referrer:e,url:t})}},{key:"businessContactSalesThanksExistingSupportButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesThanksExistingSupport-button-click",funnelType:"business",object:"button",objectId:"contactSalesThanksExistingSupport",pageId:e})}},{key:"businessContactSalesThanksSupportButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSalesThanksSupport-button-click",funnelType:"business",object:"button",objectId:"contactSalesThanksSupport",pageId:e})}},{key:"businessContactSupportButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/contactSupport-button-click",funnelType:"business",object:"button",objectId:"contactSupport",pageId:e})}},{key:"businessCreateInvoiceDraftFormSubmit",value:function(e){return this.gnar.track({action:"submit",eventName:"funnel/business/createInvoiceDraft-form-submit",funnelType:"business",object:"form",objectId:"createInvoiceDraft",pageId:e})}},{key:"businessCreditCardPaymentSubmitButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/business/creditCardPaymentSubmit-button-click",funnelType:"business",object:"button",objectId:"creditCardPaymentSubmit",pageId:e,regionCode:t,selectedCountryCode:n,selectedCountryName:r})}},{key:"businessDownloadReceiptButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/downloadReceipt-button-click",funnelType:"business",object:"button",objectId:"downloadReceipt",pageId:e})}},{key:"businessEnterpriseStartTrialFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/business/enterpriseStartTrial-form-fail",funnelType:"business",object:"form",objectId:"enterpriseStartTrial",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"businessEnterpriseStartTrialFormSubmit",value:function(e){return this.gnar.track({action:"submit",eventName:"funnel/business/enterpriseStartTrial-form-submit",funnelType:"business",object:"form",objectId:"enterpriseStartTrial",pageId:e})}},{key:"businessEnterpriseStartTrialFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/business/enterpriseStartTrial-form-success",funnelType:"business",object:"form",objectId:"enterpriseStartTrial",pageId:e})}},{key:"businessEnterpriseTrialPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/enterpriseTrial-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"enterpriseTrial",pageId:"enterpriseTrial",referrer:e,url:t})}},{key:"businessEnterpriseTrialStepShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/enterpriseTrial-step-show",funnelType:"business",object:"step",objectId:"enterpriseTrial",pageId:e,step:t})}},{key:"businessExperienceSurveyFormSuccess",value:function(e,t,n,r,i,o,a){return this.gnar.track({action:"success",eventName:"funnel/business/experienceSurvey-form-success",funnelType:"business",object:"form",objectId:"experienceSurvey",howHelpfulWasGBInYourWork:e,pageId:t,anythingInParticularThatGBHelpedWith:n,anythingYouHadTroubleWithWhenUsingGrammarly:r,partOfGrammarlyYouEnjoyTheMost:i,recommendPurchaseGrammarlyForYourTeam:o,willYouKeepUsingGrammarly:a})}},{key:"businessGbAccountIsAlreadyActivePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/business/gbAccountIsAlreadyActive-page-show",funnelType:"business",object:"page",objectId:"gbAccountIsAlreadyActive",pageId:"gbAccountIsAlreadyActive",referrer:e,url:t,isLanding:n})}},{key:"businessGetBusinessButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/getBusiness-button-click",funnelType:"business",object:"button",objectId:"getBusiness",pageId:e,placement:t})}},{key:"businessGetExtensionButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/getExtension-button-click",funnelType:"business",object:"button",objectId:"getExtension",pageId:e})}},{key:"businessGetInvoiceQuoteFormSubmit",value:function(e){return this.gnar.track({action:"submit",eventName:"funnel/business/getInvoiceQuote-form-submit",funnelType:"business",object:"form",objectId:"getInvoiceQuote",pageId:e})}},{key:"businessGetNativeAppButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/getNativeApp-button-click",funnelType:"business",object:"button",objectId:"getNativeApp",pageId:e})}},{key:"businessGetOfficeAddinButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/getOfficeAddin-button-click",funnelType:"business",object:"button",objectId:"getOfficeAddin",pageId:e})}},{key:"businessGetQuoteFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/business/getQuote-form-fail",funnelType:"business",object:"form",objectId:"getQuote",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"businessGetQuoteFormSuccess",value:function(e,t,n,r,i,o,a,s,u,c,M){return this.gnar.track({action:"success",eventName:"funnel/business/getQuote-form-success",funnelType:"business",object:"form",objectId:"getQuote",companyName:e,email:t,emailDomain:n,name:r,pageId:i,planLength:o,pricePerSeat:a,quoteID:s,quoteIssueDate:u,seatsQty:c,totalAmountBilledOnCheckout:M})}},{key:"businessGetQuoteSkipButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/getQuoteSkip-button-click",funnelType:"business",object:"button",objectId:"getQuoteSkip",pageId:e})}},{key:"businessGetStartedMobileFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/business/getStartedMobile-form-fail",funnelType:"business",object:"form",objectId:"getStartedMobile",pageId:e,position:t,fieldErrors:n,formErrorMessage:r})}},{key:"businessGetStartedMobileFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/business/getStartedMobile-form-success",funnelType:"business",object:"form",objectId:"getStartedMobile",pageId:e,position:t})}},{key:"businessInviteMembersFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/business/inviteMembers-form-fail",funnelType:"business",object:"form",objectId:"inviteMembers",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"businessInviteMembersFormSuccess",value:function(e,t,n){return this.gnar.track({action:"success",eventName:"funnel/business/inviteMembers-form-success",funnelType:"business",object:"form",objectId:"inviteMembers",inviteNumber:e,pageId:t,addedSeats:n})}},{key:"businessInviteMembersLaterButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/inviteMembersLater-button-click",funnelType:"business",object:"button",objectId:"inviteMembersLater",pageId:e})}},{key:"businessInviteMembersSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/inviteMembersSubmit-button-click",funnelType:"business",object:"button",objectId:"inviteMembersSubmit",pageId:e})}},{key:"businessInvoiceRequestFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/business/invoiceRequest-form-success",funnelType:"business",object:"form",objectId:"invoiceRequest",pageId:e,sameEmailAsAccount:t,teamSize:n,additionalInfo:r})}},{key:"businessJoinExistingMemberButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/joinExistingMember-button-click",funnelType:"business",object:"button",objectId:"joinExistingMember",pageId:e})}},{key:"businessJoinExistingMemberFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/business/joinExistingMember-form-fail",funnelType:"business",object:"form",objectId:"joinExistingMember",joining_step:e,pageId:t,fieldErrors:n,formErrorMessage:r})}},{key:"businessJoinExistingMemberFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/business/joinExistingMember-form-success",funnelType:"business",object:"form",objectId:"joinExistingMember",pageId:e})}},{key:"businessJoinNewMemberFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/business/joinNewMember-form-fail",funnelType:"business",object:"form",objectId:"joinNewMember",joining_step:e,pageId:t,fieldErrors:n,formErrorMessage:r})}},{key:"businessJoinNewMemberFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/business/joinNewMember-form-success",funnelType:"business",object:"form",objectId:"joinNewMember",pageId:e})}},{key:"businessJoinNewMemberSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/joinNewMemberSubmit-button-click",funnelType:"business",object:"button",objectId:"joinNewMemberSubmit",pageId:e})}},{key:"businessJoinTeamConfirmButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/joinTeamConfirm-button-click",funnelType:"business",object:"button",objectId:"joinTeamConfirm",pageId:e})}},{key:"businessJoinTeamDocsDisabledAcceptButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/joinTeamDocsDisabledAccept-button-click",funnelType:"business",object:"button",objectId:"joinTeamDocsDisabledAccept",pageId:e})}},{key:"businessJoinTeamDocsDisabledPageShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/business/joinTeamDocsDisabled-page-show",funnelType:"business",object:"page",objectId:"joinTeamDocsDisabled",pageId:e})}},{key:"businessJoinTeamErrorPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/business/joinTeamError-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"joinTeamError",pageId:"joinTeamError",errorMessage:e,referrer:t,url:n})}},{key:"businessJoinTeamIgnoreInviteButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/joinTeamIgnoreInvite-button-click",funnelType:"business",object:"button",objectId:"joinTeamIgnoreInvite",pageId:e,placement:t})}},{key:"businessJoinTeamOAuthSigninSuccessRedirect",value:function(e,t){return this.gnar.track({action:"redirect",eventName:"funnel/business/joinTeamOAuth-signinSuccess-redirect",funnelType:"business",object:"signinSuccess",objectId:"joinTeamOAuth",clientId:e,pageId:t})}},{key:"businessJoinTeamPageShow",value:function(e,t,n,r){return this.gnar.track({action:"show",eventName:"funnel/business/joinTeam-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"joinTeam",pageId:"joinTeam",isClaimed:e,isDocsDeleted:t,referrer:n,url:r})}},{key:"businessJoinTeamRepeatedFlowRedirect",value:function(e,t,n){return this.gnar.track({action:"redirect",eventName:"funnel/business/joinTeam-repeatedFlow-redirect",funnelType:"business",object:"repeatedFlow",objectId:"joinTeam",destination:e,pageId:t,placement:n})}},{key:"businessJoinToInstitutionFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/business/joinToInstitution-form-fail",funnelType:"business",object:"form",objectId:"joinToInstitution",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"businessJoinToInstitutionFormSuccess",value:function(e,t,n){return this.gnar.track({action:"success",eventName:"funnel/business/joinToInstitution-form-success",funnelType:"business",object:"form",objectId:"joinToInstitution",joinedDateTimeInMs:e,pageId:t,invitedDateTimeInMs:n})}},{key:"businessKeepBusinessButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/keepBusiness-button-click",funnelType:"business",object:"button",objectId:"keepBusiness",pageId:e,placement:t})}},{key:"businessLearnMoreAboutGBButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/learnMoreAboutGB-button-click",funnelType:"business",object:"button",objectId:"learnMoreAboutGB",pageId:e})}},{key:"businessLogoLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/logo-link-click",funnelType:"business",object:"link",objectId:"logo",pageId:e,placement:t})}},{key:"businessManageTeamPlanButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/manageTeamPlan-button-click",funnelType:"business",object:"button",objectId:"manageTeamPlan",pageId:e})}},{key:"businessMemberWelcomeCombinedSurveyContinueButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/business/memberWelcomeCombinedSurveyContinue-button-click",funnelType:"business",object:"button",objectId:"memberWelcomeCombinedSurveyContinue",pageId:"businessMemberWelcome",answers:e,countAnswers:t,questionId:n})}},{key:"businessMemberWelcomeGetStartedButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/memberWelcomeGetStarted-button-click",funnelType:"business",object:"button",objectId:"memberWelcomeGetStarted",pageId:e})}},{key:"businessMemberWelcomeHowItWorksButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/memberWelcomeHowItWorks-button-click",funnelType:"business",object:"button",objectId:"memberWelcomeHowItWorks",pageId:e})}},{key:"businessMemberWelcomeSurveyContinueButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/business/memberWelcomeSurveyContinue-button-click",funnelType:"business",object:"button",objectId:"memberWelcomeSurveyContinue",pageId:"businessMemberWelcome",answers:e,countAnswers:t,questionId:n})}},{key:"businessMemberWelcomeSurveyFormSuccess",value:function(e,t,n,r,i,o){return this.gnar.track({action:"success",eventName:"funnel/business/memberWelcomeSurvey-form-success",funnelType:"business",object:"form",objectId:"memberWelcomeSurvey",pageId:"businessMemberWelcome",academicMemberRole:e,graduationYear:t,memberProductUsage:n,memberSuggestions:r,seniority:i,teamType:o})}},{key:"businessMemberWelcomeSurveySkipButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/memberWelcomeSurveySkip-button-click",funnelType:"business",object:"button",objectId:"memberWelcomeSurveySkip",pageId:"businessMemberWelcome",questionId:e})}},{key:"businessMobileBusinessSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/mobileBusinessSuccess-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"mobileBusinessSuccess",pageId:"mobileBusinessSuccess",referrer:e,url:t})}},{key:"businessMobileUpgradeBusinessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/mobileUpgradeBusiness-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"mobileUpgradeBusiness",pageId:"mobileUpgradeBusiness",referrer:e,url:t})}},{key:"businessNotEligibleForBusinessTrialPageShow",value:function(e,t,n,r){return this.gnar.track({action:"show",eventName:"funnel/business/notEligibleForBusinessTrial-page-show",funnelType:"business",object:"page",objectId:"notEligibleForBusinessTrial",pageId:"notEligibleForBusinessTrial",isTrialAlreadyStarted:e,referrer:t,url:n,isLanding:r})}},{key:"businessPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/business/page-scroll",funnelType:"business",object:"page",pageId:e})}},{key:"businessPayPalCancelButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/payPalCancel-button-click",funnelType:"business",object:"button",objectId:"payPalCancel",pageId:e})}},{key:"businessPayPalPaymentSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/payPalPaymentSubmit-button-click",funnelType:"business",object:"button",objectId:"payPalPaymentSubmit",pageId:e})}},{key:"businessPayingByWireTransferNotificationShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/business/payingByWireTransfer-notification-show",funnelType:"business",object:"notification",objectId:"payingByWireTransfer",pageId:e})}},{key:"businessPaymentFormFail",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l,d,h){return this.gnar.track({action:"fail",eventName:"funnel/business/payment-form-fail",funnelType:"business",object:"form",objectId:"payment",pageId:e,paymentProcessor:t,plan:n,seatsNumber:r,teamName:i,detectedCountryCode:o,detectedCountryName:a,fieldErrors:s,formErrorMessage:u,isTrial:c,postalCode:M,regionCode:m,selectedCountryCode:l,selectedCountryName:d,taxableRegionCode:h})}},{key:"businessPaymentFormSuccess",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l){return this.gnar.track({action:"success",eventName:"funnel/business/payment-form-success",funnelType:"business",object:"form",objectId:"payment",pageId:e,paymentProcessor:t,plan:n,seatsNumber:r,teamName:i,detectedCountryCode:o,detectedCountryName:a,isTrial:s,postalCode:u,regionCode:c,selectedCountryCode:M,selectedCountryName:m,taxableRegionCode:l})}},{key:"businessPremiumGetStartedButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/premiumGetStarted-button-click",funnelType:"business",object:"button",objectId:"premiumGetStarted",pageId:e,placement:t})}},{key:"businessPricingBusinessGetStartedButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/business/pricingBusinessGetStarted-button-click",funnelType:"business",object:"button",objectId:"pricingBusinessGetStarted",pageId:e,placement:t})}},{key:"businessPricingEnterpriseContactUsButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/pricingEnterpriseContactUs-button-click",funnelType:"business",object:"button",objectId:"pricingEnterpriseContactUs",pageId:e})}},{key:"businessPricingIndividualLearnMoreButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/pricingIndividualLearnMore-button-click",funnelType:"business",object:"button",objectId:"pricingIndividualLearnMore",pageId:e})}},{key:"businessPurchaseContactUsButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/purchaseContactUs-button-click",funnelType:"business",object:"button",objectId:"purchaseContactUs",pageId:e})}},{key:"businessPurchaseGetPremiumButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/purchaseGetPremium-button-click",funnelType:"business",object:"button",objectId:"purchaseGetPremium",pageId:e})}},{key:"businessPurchaseStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/purchaseStep-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"purchaseStep",pageId:"purchaseStep",referrer:e,url:t})}},{key:"businessQuestionnaireFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/business/questionnaire-form-fail",funnelType:"business",object:"form",objectId:"questionnaire",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"businessQuestionnaireFormSuccess",value:function(e,t,n,r,i,o,a,s){return this.gnar.track({action:"success",eventName:"funnel/business/questionnaire-form-success",funnelType:"business",object:"form",objectId:"questionnaire",companyName:e,companySize:t,industryType:n,pageId:r,role:i,teamNeeds:o,teamType:a,whoWouldUse:s})}},{key:"businessQuestionnaireStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/questionnaireStep-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"questionnaireStep",pageId:"questionnaireStep",referrer:e,url:t})}},{key:"businessSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/signin-button-click",funnelType:"business",object:"button",objectId:"signin",pageId:e})}},{key:"businessSignupButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/signup-button-click",funnelType:"business",object:"button",objectId:"signup",pageId:e})}},{key:"businessSignupFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/business/signup-form-fail",funnelType:"business",object:"form",objectId:"signup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r,placement:i})}},{key:"businessTeamSizeStepFormFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/business/teamSizeStepForm-form-success",funnelType:"business",object:"form",objectId:"teamSizeStepForm",isQuoteRequested:e,pageId:t,plan:n,teamSize:r})}},{key:"businessTeamSizeStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/business/teamSizeStep-page-show",funnelType:"business",isLanding:!1,object:"page",objectId:"teamSizeStep",pageId:"teamSizeStep",referrer:e,url:t})}},{key:"businessUngatedInstitutionButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/ungatedInstitution-button-click",funnelType:"business",object:"button",objectId:"ungatedInstitution",pageId:e})}},{key:"businessUngatedInstitutionFormFail",value:function(e,t,n,r,i,o){return this.gnar.track({action:"fail",eventName:"funnel/business/ungatedInstitution-form-fail",funnelType:"business",object:"form",objectId:"ungatedInstitution",pageId:e,plan:t,seatsNumber:n,teamName:r,fieldErrors:i,formErrorMessage:o})}},{key:"businessUngatedInstitutionFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/business/ungatedInstitution-form-success",funnelType:"business",object:"form",objectId:"ungatedInstitution",pageId:e,plan:t,seatsNumber:n,teamName:r})}},{key:"businessWorkspaceReplacedByInstitutionFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/business/workspaceReplacedByInstitution-form-success",funnelType:"business",object:"form",objectId:"workspaceReplacedByInstitution",pageId:e,workspaceId:t})}},{key:"businessWorkspaceUpdateTeamMembersButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/business/workspaceUpdateTeamMembers-button-click",funnelType:"business",object:"button",objectId:"workspaceUpdateTeamMembers",pageId:e})}},{key:"eduAccessCodeFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/edu/accessCode-form-fail",funnelType:"edu",object:"form",objectId:"accessCode",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"eduAccessCodeFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/edu/accessCode-form-success",funnelType:"edu",object:"form",objectId:"accessCode",pageId:e})}},{key:"eduAddExtensionButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/edu/addExtension-button-click",funnelType:"edu",object:"button",objectId:"addExtension",pageId:e,placement:t})}},{key:"eduAssignMemberFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/edu/assignMember-form-fail",funnelType:"edu",object:"form",objectId:"assignMember",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"eduAssignMemberFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/edu/assignMember-form-success",funnelType:"edu",object:"form",objectId:"assignMember",pageId:e})}},{key:"eduBuyLicenseButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/edu/buyLicense-button-click",funnelType:"edu",object:"button",objectId:"buyLicense",pageId:e,placement:t})}},{key:"eduConfirmCancelButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/confirmCancel-button-click",funnelType:"edu",object:"button",objectId:"confirmCancel",pageId:e})}},{key:"eduConfirmationEmailSendFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/edu/confirmationEmailSend-form-fail",funnelType:"edu",object:"form",objectId:"confirmationEmailSend",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"eduContactSupportButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/contactSupport-button-click",funnelType:"edu",object:"button",objectId:"contactSupport",pageId:e})}},{key:"eduCreditCardPaymentSubmitButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/edu/creditCardPaymentSubmit-button-click",funnelType:"edu",object:"button",objectId:"creditCardPaymentSubmit",pageId:e,regionCode:t,selectedCountryCode:n,selectedCountryName:r})}},{key:"eduEduAccessCodePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduAccessCode-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduAccessCode",pageId:"eduAccessCode",referrer:e,url:t})}},{key:"eduEduCheckYourEmailPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduCheckYourEmail-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduCheckYourEmail",pageId:"eduCheckYourEmail",referrer:e,url:t})}},{key:"eduEduPlansPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduPlans-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduPlans",pageId:"eduPlans",referrer:e,url:t})}},{key:"eduEduPurchaseConfirmationPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduPurchaseConfirmation-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduPurchaseConfirmation",pageId:"eduPurchaseConfirmation",referrer:e,url:t})}},{key:"eduEduPurchasePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduPurchase-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduPurchase",pageId:"eduPurchase",referrer:e,url:t})}},{key:"eduEduQuoteConfirmationPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduQuoteConfirmation-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduQuoteConfirmation",pageId:"eduQuoteConfirmation",referrer:e,url:t})}},{key:"eduEduQuotePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduQuote-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduQuote",pageId:"eduQuote",referrer:e,url:t})}},{key:"eduEduRegistrationConfirmationPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduRegistrationConfirmation-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduRegistrationConfirmation",pageId:"eduRegistrationConfirmation",referrer:e,url:t})}},{key:"eduEduSigninPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduSignin-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduSignin",pageId:"eduSignin",referrer:e,url:t})}},{key:"eduEduSignupPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduSignup-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduSignup",pageId:"eduSignup",referrer:e,url:t})}},{key:"eduEduSubscriptionCancelPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduSubscriptionCancel-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduSubscriptionCancel",pageId:"eduSubscriptionCancel",referrer:e,url:t})}},{key:"eduEduTermsPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/edu/eduTerms-page-show",funnelType:"edu",isLanding:!1,object:"page",objectId:"eduTerms",pageId:"eduTerms",referrer:e,url:t})}},{key:"eduExtInstallRefuseButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/extInstallRefuse-button-click",funnelType:"edu",object:"button",objectId:"extInstallRefuse",pageId:e})}},{key:"eduGetQuoteButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/edu/getQuote-button-click",funnelType:"edu",object:"button",objectId:"getQuote",pageId:e,placement:t})}},{key:"eduGetQuoteFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/edu/getQuote-form-fail",funnelType:"edu",object:"form",objectId:"getQuote",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"eduGetQuoteFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/edu/getQuote-form-success",funnelType:"edu",object:"form",objectId:"getQuote",pageId:e})}},{key:"eduJoinOrganizationButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/joinOrganization-button-click",funnelType:"edu",object:"button",objectId:"joinOrganization",pageId:e})}},{key:"eduKeepInstitutionButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/edu/keepInstitution-button-click",funnelType:"edu",object:"button",objectId:"keepInstitution",pageId:e,placement:t})}},{key:"eduLogoLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/edu/logo-link-click",funnelType:"edu",object:"link",objectId:"logo",pageId:e,placement:t})}},{key:"eduPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/edu/page-scroll",funnelType:"edu",object:"page",pageId:e})}},{key:"eduPayPalCancelButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/payPalCancel-button-click",funnelType:"edu",object:"button",objectId:"payPalCancel",pageId:e})}},{key:"eduPayPalPaymentSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/payPalPaymentSubmit-button-click",funnelType:"edu",object:"button",objectId:"payPalPaymentSubmit",pageId:e})}},{key:"eduPaymentFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/edu/payment-form-fail",funnelType:"edu",object:"form",objectId:"payment",pageId:e,paymentMethod:t,seatsNumber:n,fieldErrors:r,formErrorMessage:i})}},{key:"eduPaymentFormSuccess",value:function(e,t,n){return this.gnar.track({action:"success",eventName:"funnel/edu/payment-form-success",funnelType:"edu",object:"form",objectId:"payment",pageId:e,paymentMethod:t,seatsNumber:n})}},{key:"eduPaymentSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/paymentSubmit-button-click",funnelType:"edu",object:"button",objectId:"paymentSubmit",pageId:e})}},{key:"eduPaypalCheckoutButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/paypalCheckout-button-click",funnelType:"edu",object:"button",objectId:"paypalCheckout",pageId:e})}},{key:"eduQuoteSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/quoteSubmit-button-click",funnelType:"edu",object:"button",objectId:"quoteSubmit",pageId:e})}},{key:"eduSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/signin-button-click",funnelType:"edu",object:"button",objectId:"signin",pageId:e})}},{key:"eduSignupButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/edu/signup-button-click",funnelType:"edu",object:"button",objectId:"signup",pageId:e})}},{key:"eduSignupFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/edu/signup-form-fail",funnelType:"edu",object:"form",objectId:"signup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r,placement:i})}},{key:"eduSignupFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/edu/signup-form-success",funnelType:"edu",object:"form",objectId:"signup",emailOptOut:e,pageId:t,isGdpr:n,placement:r})}},{key:"eduSignupSubmitButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/edu/signupSubmit-button-click",funnelType:"edu",object:"button",objectId:"signupSubmit",pageId:e,isGdpr:t})}},{key:"eduTeamSizeFormFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/edu/teamSizeForm-form-success",funnelType:"edu",object:"form",objectId:"teamSizeForm",pageId:e,seatsNumber:t})}},{key:"freemiumAccountCreationMainCtaButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/accountCreationMainCta-button-click",funnelType:"freemium",object:"button",objectId:"accountCreationMainCta",pageId:e,placement:t})}},{key:"freemiumAccountTypeSelectionBusinessDiscoverButtonButtonClick",value:function(){return this.gnar.track({action:"click",eventName:"funnel/freemium/accountTypeSelectionBusinessDiscoverButton-button-click",funnelType:"freemium",object:"button",objectId:"accountTypeSelectionBusinessDiscoverButton",pageId:"accountTypeSelection"})}},{key:"freemiumAccountTypeSelectionFreeCTAButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/accountTypeSelectionFreeCTA-button-click",funnelType:"freemium",object:"button",objectId:"accountTypeSelectionFreeCTA",pageId:"accountTypeSelection",timeSinceLinkLoadStart:e,linkLoadTime:t})}},{key:"freemiumAccountTypeSelectionPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/accountTypeSelection-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"accountTypeSelection",pageId:"accountTypeSelection",referrer:e,url:t})}},{key:"freemiumAccountTypeSelectionPremiumCTAButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/accountTypeSelectionPremiumCTA-button-click",funnelType:"freemium",object:"button",objectId:"accountTypeSelectionPremiumCTA",pageId:"accountTypeSelection",ctaId:e})}},{key:"freemiumAddExtensionButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/addExtension-button-click",funnelType:"freemium",object:"button",objectId:"addExtension",pageId:e,placement:t})}},{key:"freemiumCheckTextButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/checkText-button-click",funnelType:"freemium",object:"button",objectId:"checkText",pageId:e,placement:t})}},{key:"freemiumCheckTextFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/freemium/checkText-form-fail",funnelType:"freemium",object:"form",objectId:"checkText",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"freemiumCheckTextFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/freemium/checkText-form-success",funnelType:"freemium",object:"form",objectId:"checkText",pageId:e})}},{key:"freemiumCheckTextSubmitButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/freemium/checkTextSubmit-button-click",funnelType:"freemium",object:"button",objectId:"checkTextSubmit",inputMethod:e,pageId:t,wordCount:n})}},{key:"freemiumComparePlansButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/comparePlans-button-click",funnelType:"freemium",object:"button",objectId:"comparePlans",placement:"primary",pageId:e})}},{key:"freemiumContinueToOnlineEditorCtaButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/continueToOnlineEditorCta-button-click",funnelType:"freemium",object:"button",objectId:"continueToOnlineEditorCta",pageId:e,placement:t})}},{key:"freemiumDontRunOnAllSitesButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/dontRunOnAllSites-button-click",funnelType:"freemium",object:"button",objectId:"dontRunOnAllSites",pageId:e})}},{key:"freemiumDownloadLlamaButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/downloadLlama-button-click",funnelType:"freemium",object:"button",objectId:"downloadLlama",pageId:e,placement:t})}},{key:"freemiumDownloadOfficeAddinButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/downloadOfficeAddin-button-click",funnelType:"freemium",object:"button",objectId:"downloadOfficeAddin",pageId:e})}},{key:"freemiumEslHomePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/eslHome-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"eslHome",pageId:"eslHome",referrer:e,url:t,productInstallCtaType:n})}},{key:"freemiumExtInstallRefuseButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/extInstallRefuse-button-click",funnelType:"freemium",object:"button",objectId:"extInstallRefuse",pageId:e})}},{key:"freemiumExtRestartInstallationButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/extRestartInstallation-button-click",funnelType:"freemium",object:"button",objectId:"extRestartInstallation",pageId:e})}},{key:"freemiumExtensionBannerCloseButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/extensionBannerClose-button-click",funnelType:"freemium",object:"button",objectId:"extensionBannerClose",pageId:e})}},{key:"freemiumExtensionEnableExtensionEnableSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/freemium/extensionEnable-extensionEnable-success",funnelType:"freemium",object:"extensionEnable",objectId:"extensionEnable",how:e,pageId:t})}},{key:"freemiumExtensionEnablePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/extensionEnable-page-show",funnelType:"freemium",object:"page",objectId:"extensionEnable",pageId:"extensionEnable",referrer:e,url:t,isLanding:n})}},{key:"freemiumExtensionSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/extensionSuccess-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"extensionSuccess",pageId:"extensionSuccess",referrer:e,url:t})}},{key:"freemiumExtensionUninstallPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/extensionUninstall-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"extensionUninstall",pageId:"extensionUninstall",referrer:e,url:t})}},{key:"freemiumGetBusinessButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/getBusiness-button-click",funnelType:"freemium",object:"button",objectId:"getBusiness",pageId:e,placement:t})}},{key:"freemiumGrammarCheckPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/grammarCheck-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"grammarCheck",pageId:"grammarCheck",referrer:e,url:t,productInstallCtaType:n})}},{key:"freemiumHomePageShow",value:function(e,t,n,r,i,o){return this.gnar.track({action:"show",eventName:"funnel/freemium/home-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"home",pageId:"home",referrer:e,url:t,discountName:n,discountType:r,discountValue:i,productInstallCtaType:o})}},{key:"freemiumInviteTeamInviteAttemptButtonButtonClick",value:function(){return this.gnar.track({action:"click",eventName:"funnel/freemium/inviteTeamInviteAttemptButton-button-click",funnelType:"freemium",object:"button",objectId:"inviteTeamInviteAttemptButton",pageId:"inviteTeam"})}},{key:"freemiumInviteTeamPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/inviteTeam-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"inviteTeam",pageId:"inviteTeam",referrer:e,url:t})}},{key:"freemiumInviteTeamSkipButtonButtonClick",value:function(){return this.gnar.track({action:"click",eventName:"funnel/freemium/inviteTeamSkipButton-button-click",funnelType:"freemium",object:"button",objectId:"inviteTeamSkipButton",pageId:"inviteTeam"})}},{key:"freemiumInviteUserInvitedFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/freemium/inviteUserInvited-form-fail",funnelType:"freemium",object:"form",objectId:"inviteUserInvited",pageId:"inviteTeam",invitee_email_domain:e,fieldErrors:t,formErrorMessage:n})}},{key:"freemiumInviteUserInvitedFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/freemium/inviteUserInvited-form-success",funnelType:"freemium",object:"form",objectId:"inviteUserInvited",pageId:"inviteTeam",invitee_email_domain:e})}},{key:"freemiumInviteUserInvitedUnexpectedFormFail",value:function(e,t){return this.gnar.track({action:"fail",eventName:"funnel/freemium/inviteUserInvitedUnexpected-form-fail",funnelType:"freemium",object:"form",objectId:"inviteUserInvitedUnexpected",pageId:"inviteTeam",fieldErrors:e,formErrorMessage:t})}},{key:"freemiumJoinWorkspaceFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/freemium/joinWorkspace-form-fail",funnelType:"freemium",object:"form",objectId:"joinWorkspace",pageId:e,step:t,fieldErrors:n,formErrorMessage:r})}},{key:"freemiumJoinWorkspaceFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/freemium/joinWorkspace-form-success",funnelType:"freemium",object:"form",objectId:"joinWorkspace",pageId:e})}},{key:"freemiumLearnHowItWorksButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/learnHowItWorks-button-click",funnelType:"freemium",object:"button",objectId:"learnHowItWorks",pageId:e,step:t})}},{key:"freemiumLlamaUninstallSurveyFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/freemium/llamaUninstallSurvey-form-success",funnelType:"freemium",object:"form",objectId:"llamaUninstallSurvey",pageId:e,reasonMessages:t,reasons:n,message:r})}},{key:"freemiumLlamaUninstallSurveySupportLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/llamaUninstallSurveySupport-link-click",funnelType:"freemium",object:"link",objectId:"llamaUninstallSurveySupport",pageId:e,placement:t})}},{key:"freemiumLlamaUnsupportedRedirect",value:function(e){return this.gnar.track({action:"redirect",eventName:"funnel/freemium/llamaUnsupported-redirect",funnelType:"freemium",object:"llamaUnsupported",pageId:e})}},{key:"freemiumNoErrorPopupPopupShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/freemium/noErrorPopup-popup-show",funnelType:"freemium",object:"popup",objectId:"noErrorPopup",pageId:e})}},{key:"freemiumNoTextPopupPopupShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/freemium/noTextPopup-popup-show",funnelType:"freemium",object:"popup",objectId:"noTextPopup",pageId:e})}},{key:"freemiumPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/freemium/page-scroll",funnelType:"freemium",object:"page",pageId:e})}},{key:"freemiumPersonalizationCombinedSurveyContinueButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/freemium/personalizationCombinedSurveyContinue-button-click",funnelType:"freemium",object:"button",objectId:"personalizationCombinedSurveyContinue",pageId:"personalize",answers:e,countAnswers:t,questionId:n})}},{key:"freemiumPersonalizationSurveyCompletedFormSuccess",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l,d,h,f,p,y,g){return this.gnar.track({action:"success",eventName:"funnel/freemium/personalizationSurveyCompleted-form-success",funnelType:"freemium",object:"form",objectId:"personalizationSurveyCompleted",pageId:"personalize",audience:e,companySize:t,doPeopleUseYourTeamAlready:n,englishProficiency:r,goals:i,graduationMonth:o,graduationYear:a,industryPrimary:s,languageCount:u,languageEnglishDialect:c,mostOfTeamNonNatives:M,occupation:m,primaryLanguage:l,schoolProgram:d,schoolType:h,selectedPlatforms:f,seniority:p,tone:y,writingConcern:g})}},{key:"freemiumPersonalizationSurveyContinueButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/freemium/personalizationSurveyContinue-button-click",funnelType:"freemium",object:"button",objectId:"personalizationSurveyContinue",pageId:"personalize",answers:e,countAnswers:t,questionId:n})}},{key:"freemiumPersonalizationSurveySkipButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/personalizationSurveySkip-button-click",funnelType:"freemium",object:"button",objectId:"personalizationSurveySkip",pageId:"personalize",questionId:e})}},{key:"freemiumPersonalizePageShow",value:function(e,t,n,r){return this.gnar.track({action:"show",eventName:"funnel/freemium/personalize-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"personalize",pageId:"personalize",referrer:e,url:t,browserPreferredLanguage:n,countryCode:r})}},{key:"freemiumPlansComparisonContentButtonHover",value:function(e,t,n,r,i,o){return this.gnar.track({action:"hover",eventName:"funnel/freemium/plansComparisonContent-button-hover",funnelType:"freemium",object:"button",objectId:"plansComparisonContent",pageId:e,rowId:t,sectionId:n,alertsCount:r,hoverDuration:i,placement:o})}},{key:"freemiumPlansComparisonFeatureHighlightsButtonHover",value:function(e,t,n,r,i){return this.gnar.track({action:"hover",eventName:"funnel/freemium/plansComparisonFeatureHighlights-button-hover",funnelType:"freemium",object:"button",objectId:"plansComparisonFeatureHighlights",featureLabel:e,pageId:t,planType:n,hoverDuration:r,placement:i})}},{key:"freemiumPremiumDemoDocRedirectPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/premiumDemoDocRedirect-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"premiumDemoDocRedirect",pageId:"premiumDemoDocRedirect",referrer:e,url:t})}},{key:"freemiumPremiumDemoDocRedirectSearchPageSearch",value:function(e,t){return this.gnar.track({action:"search",eventName:"funnel/freemium/premiumDemoDocRedirectSearch-page-search",funnelType:"freemium",object:"page",objectId:"premiumDemoDocRedirectSearch",hasFoundPremiumDemoDoc:e,pageId:t})}},{key:"freemiumPremiumWelcomePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/premiumWelcome-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"premiumWelcome",pageId:"premiumWelcome",hasCheckedText:e,referrer:t,url:n})}},{key:"freemiumPremiumWelcomeStepShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/premiumWelcome-step-show",funnelType:"freemium",object:"step",objectId:"premiumWelcome",pageId:e,step:t})}},{key:"freemiumProfessionalFluencyHomePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/professionalFluencyHome-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"professionalFluencyHome",pageId:"professionalFluencyHome",referrer:e,url:t,productInstallCtaType:n})}},{key:"freemiumProfessionalHomePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/professionalHome-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"professionalHome",pageId:"professionalHome",referrer:e,url:t,productInstallCtaType:n})}},{key:"freemiumRetryDownloadLlamaButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/retryDownloadLlama-button-click",funnelType:"freemium",object:"button",objectId:"retryDownloadLlama",pageId:e})}},{key:"freemiumRunOnAllSitesButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/runOnAllSites-button-click",funnelType:"freemium",object:"button",objectId:"runOnAllSites",pageId:e})}},{key:"freemiumSafariExtAppDownload",value:function(e,t,n){return this.gnar.track({action:"download",eventName:"funnel/freemium/safariExt-app-download",funnelType:"freemium",object:"app",objectId:"safariExt",pageId:e,retry:t,source:n})}},{key:"freemiumSampleLinkLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/sampleLink-link-click",funnelType:"freemium",object:"link",objectId:"sampleLink",pageId:e,placement:t})}},{key:"freemiumSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/signin-button-click",funnelType:"freemium",object:"button",objectId:"signin",pageId:e})}},{key:"freemiumSignupButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/signup-button-click",funnelType:"freemium",object:"button",objectId:"signup",pageId:e})}},{key:"freemiumSignupFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/freemium/signup-form-fail",funnelType:"freemium",object:"form",objectId:"signup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r,placement:i})}},{key:"freemiumSignupFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/freemium/signup-form-success",funnelType:"freemium",object:"form",objectId:"signup",emailOptOut:e,pageId:t,isGdpr:n,placement:r})}},{key:"freemiumSignupSubmitButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/signupSubmit-button-click",funnelType:"freemium",object:"button",objectId:"signupSubmit",pageId:e,isGdpr:t})}},{key:"freemiumStudentHomePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/studentHome-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"studentHome",pageId:"studentHome",referrer:e,url:t,productInstallCtaType:n})}},{key:"freemiumTosLinkLinkClick",value:function(e,t,n,r,i){return this.gnar.track({action:"click",eventName:"funnel/freemium/tosLink-link-click",funnelType:"freemium",object:"link",objectId:"tosLink",disclosureType:e,pageId:t,isGdpr:n,pageStyle:r,placement:i})}},{key:"freemiumUkHomePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/ukHome-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"ukHome",pageId:"ukHome",referrer:e,url:t,productInstallCtaType:n})}},{key:"freemiumUninstallSurveyFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/freemium/uninstallSurvey-form-success",funnelType:"freemium",object:"form",objectId:"uninstallSurvey",pageId:e,reasonMessages:t,reasons:n,message:r})}},{key:"freemiumUninstallSurveyReinstallButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/uninstallSurveyReinstall-button-click",funnelType:"freemium",object:"button",objectId:"uninstallSurveyReinstall",pageId:e,placement:t})}},{key:"freemiumUninstallSurveySupportLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/uninstallSurveySupport-link-click",funnelType:"freemium",object:"link",objectId:"uninstallSurveySupport",pageId:e,placement:t})}},{key:"freemiumUploadFileLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/uploadFile-link-click",funnelType:"freemium",object:"link",objectId:"uploadFile",pageId:e,placement:t})}},{key:"freemiumUserTrustGetGrammarlyButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/freemium/userTrustGetGrammarly-button-click",funnelType:"freemium",object:"button",objectId:"userTrustGetGrammarly",pageId:e})}},{key:"freemiumUserTrustGuidelinesNavButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/userTrustGuidelinesNav-button-click",funnelType:"freemium",object:"button",objectId:"userTrustGuidelinesNav",id:e,pageId:t})}},{key:"freemiumUserTrustGuidelinesPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/freemium/userTrustGuidelines-page-show",funnelType:"freemium",object:"page",objectId:"userTrustGuidelines",pageId:"userTrustGuidelines",referrer:e,url:t,isLanding:n})}},{key:"freemiumWelcomeBackLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/freemium/welcomeBack-link-click",funnelType:"freemium",object:"link",objectId:"welcomeBack",pageId:e,placement:t})}},{key:"freemiumWelcomeBackPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/welcomeBack-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"welcomeBack",pageId:"welcomeBack",referrer:e,url:t})}},{key:"freemiumWorkspaceCreationFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/freemium/workspaceCreation-form-fail",funnelType:"freemium",object:"form",objectId:"workspaceCreation",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"freemiumWorkspaceCreationFormSubmit",value:function(e){return this.gnar.track({action:"submit",eventName:"funnel/freemium/workspaceCreation-form-submit",funnelType:"freemium",object:"form",objectId:"workspaceCreation",pageId:e})}},{key:"freemiumWorkspaceCreationFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/freemium/workspaceCreation-form-success",funnelType:"freemium",object:"form",objectId:"workspaceCreation",pageId:e,workspaceId:t})}},{key:"freemiumWorkspaceJoinPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/workspaceJoin-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"workspaceJoin",pageId:"workspaceJoin",referrer:e,url:t})}},{key:"freemiumWorkspaceWelcomePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/freemium/workspaceWelcome-page-show",funnelType:"freemium",isLanding:!1,object:"page",objectId:"workspaceWelcome",pageId:"workspaceWelcome",referrer:e,url:t})}},{key:"freemiumYoutubePageShow",value:function(e,t,n,r){return this.gnar.track({action:"show",eventName:"funnel/freemium/youtube-page-show",funnelType:"freemium",isLanding:!0,object:"page",objectId:"youtube",pageId:e,referrer:t,url:n,productInstallCtaType:r})}},{key:"mobileBackIndividualPurchaseButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/mobile/backIndividualPurchase-button-click",funnelType:"mobile",object:"button",objectId:"backIndividualPurchase",pageId:e})}},{key:"mobileCreditCardPaymentSubmitButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/mobile/creditCardPaymentSubmit-button-click",funnelType:"mobile",object:"button",objectId:"creditCardPaymentSubmit",pageId:e,regionCode:t,selectedCountryCode:n,selectedCountryName:r})}},{key:"mobileDownloadAppStoreButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/mobile/downloadAppStore-button-click",funnelType:"mobile",object:"button",objectId:"downloadAppStore",pageId:e,placement:t})}},{key:"mobileFacebookSigninFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/mobile/facebookSignin-form-fail",funnelType:"mobile",object:"form",objectId:"facebookSignin",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"mobileFacebookSigninFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/mobile/facebookSignin-form-success",funnelType:"mobile",object:"form",objectId:"facebookSignin",pageId:e})}},{key:"mobileKeyboardPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/keyboard-page-show",funnelType:"mobile",isLanding:!0,object:"page",objectId:"keyboard",pageId:"keyboard",referrer:e,url:t})}},{key:"mobileMobileDesktopOnlyPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileDesktopOnly-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileDesktopOnly",pageId:"mobileDesktopOnly",referrer:e,url:t})}},{key:"mobileMobileHomePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileHome-page-show",funnelType:"mobile",isLanding:!0,object:"page",objectId:"mobileHome",pageId:"mobileHome",referrer:e,url:t,productInstallCtaType:n})}},{key:"mobileMobileResetPasswordPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileResetPassword-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileResetPassword",pageId:"mobileResetPassword",referrer:e,url:t})}},{key:"mobileMobileSetNewPasswordPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileSetNewPassword-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileSetNewPassword",pageId:"mobileSetNewPassword",referrer:e,url:t})}},{key:"mobileMobileSubscribeSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileSubscribeSuccess-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileSubscribeSuccess",pageId:"mobileSubscribeSuccess",referrer:e,url:t})}},{key:"mobileMobileSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileSuccess-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileSuccess",pageId:"mobileSuccess",referrer:e,url:t})}},{key:"mobileMobileThankYouPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileThankYou-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileThankYou",pageId:"mobileThankYou",referrer:e,url:t})}},{key:"mobileMobileUpgradeFailPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileUpgradeFail-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileUpgradeFail",pageId:"mobileUpgradeFail",referrer:e,url:t})}},{key:"mobileMobileUpgradePageShow",value:function(e,t,n,r,i){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileUpgrade-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileUpgrade",pageId:"mobileUpgrade",referrer:e,url:t,discountName:n,discountType:r,discountValue:i})}},{key:"mobileMobileUpgradeSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/mobileUpgradeSuccess-page-show",funnelType:"mobile",isLanding:!1,object:"page",objectId:"mobileUpgradeSuccess",pageId:"mobileUpgradeSuccess",referrer:e,url:t})}},{key:"mobilePageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/mobile/page-scroll",funnelType:"mobile",object:"page",pageId:e})}},{key:"mobilePayPalCancelButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/mobile/payPalCancel-button-click",funnelType:"mobile",object:"button",objectId:"payPalCancel",pageId:e})}},{key:"mobilePayPalPaymentSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/mobile/payPalPaymentSubmit-button-click",funnelType:"mobile",object:"button",objectId:"payPalPaymentSubmit",pageId:e})}},{key:"mobilePaymentFormFail",value:function(e,t,n,r,i,o,a,s,u,c,M,m){return this.gnar.track({action:"fail",eventName:"funnel/mobile/payment-form-fail",funnelType:"mobile",object:"form",objectId:"payment",pageId:e,paymentProcessor:t,plan:n,detectedCountryCode:r,detectedCountryName:i,fieldErrors:o,formErrorMessage:a,postalCode:s,regionCode:u,selectedCountryCode:c,selectedCountryName:M,taxableRegionCode:m})}},{key:"mobilePaymentFormSuccess",value:function(e,t,n,r,i,o,a,s,u,c){return this.gnar.track({action:"success",eventName:"funnel/mobile/payment-form-success",funnelType:"mobile",object:"form",objectId:"payment",pageId:e,paymentProcessor:t,plan:n,detectedCountryCode:r,detectedCountryName:i,postalCode:o,regionCode:a,selectedCountryCode:s,selectedCountryName:u,taxableRegionCode:c})}},{key:"mobilePaypalCheckoutButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/mobile/paypalCheckout-button-click",funnelType:"mobile",object:"button",objectId:"paypalCheckout",pageId:e})}},{key:"mobilePlansCtaButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/mobile/plansCta-button-click",funnelType:"mobile",object:"button",objectId:"plansCta",pageId:e,placement:t})}},{key:"mobileSelectBusinessPlanButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/mobile/selectBusinessPlan-button-click",funnelType:"mobile",object:"button",objectId:"selectBusinessPlan",pageId:e})}},{key:"mobileSelectPlanButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/mobile/selectPlan-button-click",funnelType:"mobile",object:"button",objectId:"selectPlan",pageId:e,planPeriod:t,detectedCountryCode:n,detectedCountryName:r})}},{key:"mobileSignUpCtaButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/mobile/signUpCta-button-click",funnelType:"mobile",object:"button",objectId:"signUpCta",pageId:e,placement:t})}},{key:"mobileSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/mobile/signin-button-click",funnelType:"mobile",object:"button",objectId:"signin",pageId:e})}},{key:"mobileSignupFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/mobile/signup-form-fail",funnelType:"mobile",object:"form",objectId:"signup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r,placement:i})}},{key:"mobileSignupFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/mobile/signup-form-success",funnelType:"mobile",object:"form",objectId:"signup",emailOptOut:e,pageId:t,isGdpr:n,placement:r})}},{key:"mobileSocialSigninButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/mobile/socialSignin-button-click",funnelType:"mobile",object:"button",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"mobileSocialSigninFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/mobile/socialSignin-form-fail",funnelType:"mobile",object:"form",objectId:"socialSignin",pageId:e,socialType:t,fieldErrors:n,formErrorMessage:r})}},{key:"mobileSocialSigninFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/mobile/socialSignin-form-success",funnelType:"mobile",object:"form",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"mobileSocialSigninPopupShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/socialSignin-popup-show",funnelType:"mobile",object:"popup",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"mobileSocialSignupButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/mobile/socialSignup-button-click",funnelType:"mobile",object:"button",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"mobileSocialSignupFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/mobile/socialSignup-form-fail",funnelType:"mobile",object:"form",objectId:"socialSignup",pageId:e,socialType:t,fieldErrors:n,formErrorMessage:r})}},{key:"mobileSocialSignupFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/mobile/socialSignup-form-success",funnelType:"mobile",object:"form",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"mobileSocialSignupPopupShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/mobile/socialSignup-popup-show",funnelType:"mobile",object:"popup",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"mobileUpgradeButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/mobile/upgrade-button-click",funnelType:"mobile",object:"button",objectId:"upgrade",pageId:e})}},{key:"nativeDownloadMacButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/native/downloadMac-button-click",funnelType:"native",object:"button",objectId:"downloadMac",pageId:e})}},{key:"nativeDownloadWinButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/native/downloadWin-button-click",funnelType:"native",object:"button",objectId:"downloadWin",pageId:e})}},{key:"nativeNativeMacPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/native/nativeMac-page-show",funnelType:"native",isLanding:!0,object:"page",objectId:"nativeMac",pageId:"nativeMac",referrer:e,url:t})}},{key:"nativeNativePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/native/native-page-show",funnelType:"native",isLanding:!1,object:"page",objectId:"native",pageId:"native",referrer:e,url:t})}},{key:"nativeNativeUnsupportedPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/native/nativeUnsupported-page-show",funnelType:"native",isLanding:!1,object:"page",objectId:"nativeUnsupported",pageId:"nativeUnsupported",referrer:e,url:t})}},{key:"nativeNativeWindowsPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/native/nativeWindows-page-show",funnelType:"native",isLanding:!0,object:"page",objectId:"nativeWindows",pageId:"nativeWindows",referrer:e,url:t})}},{key:"nativePageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/native/page-scroll",funnelType:"native",object:"page",pageId:e})}},{key:"ngoEmailVerificactionStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/ngo/emailVerificactionStep-page-show",funnelType:"ngo",isLanding:!1,object:"page",objectId:"emailVerificactionStep",pageId:"emailVerificactionStep",referrer:e,url:t})}},{key:"ngoFormStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/ngo/formStep-page-show",funnelType:"ngo",isLanding:!1,object:"page",objectId:"formStep",pageId:"formStep",referrer:e,url:t})}},{key:"ngoGetStartedStepPageShow",value:function(e,t,n,r){return this.gnar.track({action:"show",eventName:"funnel/ngo/getStartedStep-page-show",funnelType:"ngo",object:"page",objectId:"getStartedStep",pageId:"getStartedStep",referrer:e,url:t,isIneligible:n,isLanding:r})}},{key:"ngoNgoSignupFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/ngo/ngoSignup-form-fail",funnelType:"ngo",object:"form",objectId:"ngoSignup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r})}},{key:"ngoNgoSignupFormSuccess",value:function(e,t,n){return this.gnar.track({action:"success",eventName:"funnel/ngo/ngoSignup-form-success",funnelType:"ngo",object:"form",objectId:"ngoSignup",emailOptOut:e,pageId:t,isGdpr:n})}},{key:"ngoNonprofitsNgosPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/ngo/nonprofitsNgos-page-show",funnelType:"ngo",isLanding:!0,object:"page",objectId:"nonprofitsNgos",pageId:"nonprofitsNgos",referrer:e,url:t})}},{key:"ngoPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/ngo/page-scroll",funnelType:"ngo",object:"page",pageId:e})}},{key:"ngoQuestionnaireFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/ngo/questionnaire-form-fail",funnelType:"ngo",object:"form",objectId:"questionnaire",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"ngoQuestionnaireFormSuccess",value:function(e,t,n,r,i,o,a,s,u){return this.gnar.track({action:"success",eventName:"funnel/ngo/questionnaire-form-success",funnelType:"ngo",object:"form",objectId:"questionnaire",agreedCountryCopy:e,briefDescription:t,organizationCountry:n,organizationName:r,organizationWebsite:i,pageId:o,roleTitle:a,teamSize:s,useCase:u})}},{key:"ngoSetUpYourTeamButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/ngo/setUpYourTeam-button-click",funnelType:"ngo",object:"button",objectId:"setUpYourTeam",pageId:e})}},{key:"ngoSuccessStepPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/ngo/successStep-page-show",funnelType:"ngo",object:"page",objectId:"successStep",pageId:"successStep",referrer:e,url:t,isLanding:n})}},{key:"officeAddinAppSourceButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/appSource-button-click",funnelType:"officeAddin",object:"button",objectId:"appSource",pageId:e})}},{key:"officeAddinAppStoreButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/appStore-button-click",funnelType:"officeAddin",object:"button",objectId:"appStore",pageId:e})}},{key:"officeAddinDownloadOfficeAddinButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/downloadOfficeAddin-button-click",funnelType:"officeAddin",object:"button",objectId:"downloadOfficeAddin",pageId:e})}},{key:"officeAddinHelpCenterButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/helpCenter-button-click",funnelType:"officeAddin",object:"button",objectId:"helpCenter",pageId:e})}},{key:"officeAddinOfficeAddinDownloadingMacPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/officeAddinDownloadingMac-page-show",funnelType:"officeAddin",isLanding:!1,object:"page",objectId:"officeAddinDownloadingMac",pageId:"officeAddinDownloadingMac",referrer:e,url:t})}},{key:"officeAddinOfficeAddinDownloadingPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/officeAddinDownloading-page-show",funnelType:"officeAddin",isLanding:!1,object:"page",objectId:"officeAddinDownloading",pageId:"officeAddinDownloading",referrer:e,url:t})}},{key:"officeAddinOfficeAddinPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/officeAddin-page-show",funnelType:"officeAddin",isLanding:!1,object:"page",objectId:"officeAddin",pageId:"officeAddin",referrer:e,url:t})}},{key:"officeAddinPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/officeAddin/page-scroll",funnelType:"officeAddin",object:"page",pageId:e})}},{key:"officeAddinRestartDownloadButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/restartDownload-button-click",funnelType:"officeAddin",object:"button",objectId:"restartDownload",pageId:e})}},{key:"officeAddinSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/signin-button-click",funnelType:"officeAddin",object:"button",objectId:"signin",pageId:e})}},{key:"officeAddinSignupFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/officeAddin/signup-form-fail",funnelType:"officeAddin",object:"form",objectId:"signup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r,placement:i})}},{key:"officeAddinSignupFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/officeAddin/signup-form-success",funnelType:"officeAddin",object:"form",objectId:"signup",emailOptOut:e,pageId:t,isGdpr:n,placement:r})}},{key:"officeAddinSignupSubmitButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/signupSubmit-button-click",funnelType:"officeAddin",object:"button",objectId:"signupSubmit",pageId:e,isGdpr:t})}},{key:"officeAddinSocialOfficeAddinFailPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/socialOfficeAddinFail-page-show",funnelType:"officeAddin",isLanding:!1,object:"page",objectId:"socialOfficeAddinFail",pageId:"socialOfficeAddinFail",referrer:e,url:t})}},{key:"officeAddinSocialOfficeAddinPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/socialOfficeAddin-page-show",funnelType:"officeAddin",isLanding:!1,object:"page",objectId:"socialOfficeAddin",pageId:"socialOfficeAddin",referrer:e,url:t})}},{key:"officeAddinSocialOfficeAddinReturnUriPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/socialOfficeAddinReturnUri-page-show",funnelType:"officeAddin",isLanding:!1,object:"page",objectId:"socialOfficeAddinReturnUri",pageId:"socialOfficeAddinReturnUri",referrer:e,url:t})}},{key:"officeAddinSocialOfficeAddinSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/socialOfficeAddinSuccess-page-show",funnelType:"officeAddin",isLanding:!1,object:"page",objectId:"socialOfficeAddinSuccess",pageId:"socialOfficeAddinSuccess",referrer:e,url:t})}},{key:"officeAddinSocialSigninButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/socialSignin-button-click",funnelType:"officeAddin",object:"button",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"officeAddinSocialSigninFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/officeAddin/socialSignin-form-fail",funnelType:"officeAddin",object:"form",objectId:"socialSignin",pageId:e,socialType:t,fieldErrors:n,formErrorMessage:r})}},{key:"officeAddinSocialSigninFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/officeAddin/socialSignin-form-success",funnelType:"officeAddin",object:"form",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"officeAddinSocialSigninPopupShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/socialSignin-popup-show",funnelType:"officeAddin",object:"popup",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"officeAddinSocialSignupButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/officeAddin/socialSignup-button-click",funnelType:"officeAddin",object:"button",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"officeAddinSocialSignupFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/officeAddin/socialSignup-form-fail",funnelType:"officeAddin",object:"form",objectId:"socialSignup",pageId:e,socialType:t,fieldErrors:n,formErrorMessage:r})}},{key:"officeAddinSocialSignupFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/officeAddin/socialSignup-form-success",funnelType:"officeAddin",object:"form",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"officeAddinSocialSignupPopupShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/officeAddin/socialSignup-popup-show",funnelType:"officeAddin",object:"popup",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"plagiarismCheckTextButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/plagiarism/checkText-button-click",funnelType:"plagiarism",object:"button",objectId:"checkText",pageId:e,placement:t})}},{key:"plagiarismCheckTextFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/plagiarism/checkText-form-fail",funnelType:"plagiarism",object:"form",objectId:"checkText",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"plagiarismCheckTextFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/plagiarism/checkText-form-success",funnelType:"plagiarism",object:"form",objectId:"checkText",pageId:e})}},{key:"plagiarismCheckTextSubmitButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/plagiarism/checkTextSubmit-button-click",funnelType:"plagiarism",object:"button",objectId:"checkTextSubmit",inputMethod:e,pageId:t,wordCount:n})}},{key:"plagiarismNoTextPopupPopupShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/plagiarism/noTextPopup-popup-show",funnelType:"plagiarism",object:"popup",objectId:"noTextPopup",pageId:e})}},{key:"plagiarismPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/plagiarism/page-scroll",funnelType:"plagiarism",object:"page",pageId:e})}},{key:"plagiarismPlagiarismCheckerPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/plagiarism/plagiarismChecker-page-show",funnelType:"plagiarism",isLanding:!0,object:"page",objectId:"plagiarismChecker",pageId:"plagiarismChecker",referrer:e,url:t})}},{key:"plagiarismSampleLinkLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/plagiarism/sampleLink-link-click",funnelType:"plagiarism",object:"link",objectId:"sampleLink",pageId:e,placement:t})}},{key:"plagiarismSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/plagiarism/signin-button-click",funnelType:"plagiarism",object:"button",objectId:"signin",pageId:e})}},{key:"plagiarismSignupButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/plagiarism/signup-button-click",funnelType:"plagiarism",object:"button",objectId:"signup",pageId:e})}},{key:"plagiarismUploadFileLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/plagiarism/uploadFile-link-click",funnelType:"plagiarism",object:"link",objectId:"uploadFile",pageId:e,placement:t})}},{key:"referralErrorNotificationClose",value:function(e){return this.gnar.track({action:"close",errorType:"alreadyExists",eventName:"funnel/referral/error-notification-close",funnelType:"referral",object:"notification",objectId:"error",pageId:e})}},{key:"referralErrorNotificationShow",value:function(e){return this.gnar.track({action:"show",errorType:"alreadyExists",eventName:"funnel/referral/error-notification-show",funnelType:"referral",object:"notification",objectId:"error",pageId:e})}},{key:"referralErrorPopupClose",value:function(e){return this.gnar.track({action:"close",errorType:"unsupportedBrowser",eventName:"funnel/referral/error-popup-close",funnelType:"referral",object:"popup",objectId:"error",pageId:e})}},{key:"referralErrorPopupShow",value:function(e){return this.gnar.track({action:"show",errorType:"unsupportedBrowser",eventName:"funnel/referral/error-popup-show",funnelType:"referral",object:"popup",objectId:"error",pageId:e})}},{key:"referralFacebookInviteButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/referral/facebookInvite-button-click",funnelType:"referral",object:"button",objectId:"facebookInvite",pageId:e})}},{key:"referralInviteLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/referral/invite-link-click",funnelType:"referral",object:"link",objectId:"invite",pageId:e,placement:t})}},{key:"referralInvitePopupClose",value:function(e,t){return this.gnar.track({action:"close",eventName:"funnel/referral/invite-popup-close",funnelType:"referral",object:"popup",objectId:"invite",pageId:e,placement:t})}},{key:"referralInvitePopupShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/referral/invite-popup-show",funnelType:"referral",object:"popup",objectId:"invite",pageId:e,placement:t})}},{key:"referralReferralPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/referral/referral-page-show",funnelType:"referral",isLanding:!1,object:"page",objectId:"referral",pageId:"referral",pageType:e,referrer:t,url:n})}},{key:"referralReferralPopupSearchUse",value:function(e){return this.gnar.track({action:"use",eventName:"funnel/referral/referralPopup-search-use",funnelType:"referral",object:"search",objectId:"referralPopup",pageId:e})}},{key:"referralReferralSelectAllCheckBoxClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/referral/referralSelectAll-checkBox-click",funnelType:"referral",object:"checkBox",objectId:"referralSelectAll",pageId:e})}},{key:"referralSendInviteAddressBookFormFail",value:function(e,t,n,r,i,o){return this.gnar.track({action:"fail",eventName:"funnel/referral/sendInviteAddressBook-form-fail",funnelType:"referral",object:"form",objectId:"sendInviteAddressBook",emailProvider:e,numberOfEmailsSent:t,pageId:n,placement:r,fieldErrors:i,formErrorMessage:o})}},{key:"referralSendInviteAddressBookFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/referral/sendInviteAddressBook-form-success",funnelType:"referral",object:"form",objectId:"sendInviteAddressBook",emailProvider:e,numberOfEmailsSent:t,pageId:n,placement:r})}},{key:"referralSendInviteAddressbookButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/referral/sendInviteAddressbook-button-click",funnelType:"referral",object:"button",objectId:"sendInviteAddressbook",pageId:e,placement:t})}},{key:"referralSendInviteButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/referral/sendInvite-button-click",funnelType:"referral",object:"button",objectId:"sendInvite",pageId:e,placement:t})}},{key:"referralSendInviteIndividualFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/referral/sendInviteIndividual-form-fail",funnelType:"referral",object:"form",objectId:"sendInviteIndividual",numberOfEmailsSent:e,pageId:t,placement:n,fieldErrors:r,formErrorMessage:i})}},{key:"referralSendInviteIndividualFormSuccess",value:function(e,t,n){return this.gnar.track({action:"success",eventName:"funnel/referral/sendInviteIndividual-form-success",funnelType:"referral",object:"form",objectId:"sendInviteIndividual",numberOfEmailsSent:e,pageId:t,placement:n})}},{key:"referralTwitterInviteButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/referral/twitterInvite-button-click",funnelType:"referral",object:"button",objectId:"twitterInvite",pageId:e})}},{key:"referralWelcomeNotificationClose",value:function(e){return this.gnar.track({action:"close",eventName:"funnel/referral/welcome-notification-close",funnelType:"referral",object:"notification",objectId:"welcome",pageId:e})}},{key:"referralWelcomeNotificationShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/referral/welcome-notification-show",funnelType:"referral",object:"notification",objectId:"welcome",pageId:e})}},{key:"sharedAccountCreationSkipButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/accountCreationSkip-button-click",funnelType:"shared",object:"button",objectId:"accountCreationSkip",pageId:e})}},{key:"sharedAccountCreationStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/accountCreationStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"accountCreationStep",pageId:"accountCreationStep",referrer:e,url:t})}},{key:"sharedAccountDeletedPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/accountDeleted-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"accountDeleted",pageId:"accountDeleted",referrer:e,url:t})}},{key:"sharedAddExtensionButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/addExtension-button-click",funnelType:"shared",object:"button",objectId:"addExtension",pageId:e,placement:t})}},{key:"sharedAdjustRedirectLandingPagePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/adjustRedirectLandingPage-page-show",funnelType:"shared",isLanding:!0,object:"page",objectId:"adjustRedirectLandingPage",pageId:"adjustRedirectLandingPage",referrer:e,url:t})}},{key:"sharedAndroidSdkConfirmationPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/androidSdkConfirmation-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"androidSdkConfirmation",pageId:"androidSdkConfirmation",referrer:e,url:t})}},{key:"sharedAndroidSdkContinueWithFreeButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/androidSdkContinueWithFree-button-click",funnelType:"shared",object:"button",objectId:"androidSdkContinueWithFree",pageId:e})}},{key:"sharedAndroidSdkContinueWithGrammarlyButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/androidSdkContinueWithGrammarly-button-click",funnelType:"shared",object:"button",objectId:"androidSdkContinueWithGrammarly",pageId:e})}},{key:"sharedAndroidSdkGetPremiumButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/androidSdkGetPremium-button-click",funnelType:"shared",object:"button",objectId:"androidSdkGetPremium",pageId:e})}},{key:"sharedAndroidSdkGetPremiumTrialButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/androidSdkGetPremiumTrial-button-click",funnelType:"shared",object:"button",objectId:"androidSdkGetPremiumTrial",pageId:e})}},{key:"sharedAndroidSdkPlansPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/androidSdkPlans-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"androidSdkPlans",pageId:"androidSdkPlans",isEligible:e,referrer:t,url:n})}},{key:"sharedAndroidSdkPremiumPlanIsActiveMessageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/androidSdkPremiumPlanIsActive-message-show",funnelType:"shared",object:"message",objectId:"androidSdkPremiumPlanIsActive",messageType:e,pageId:t})}},{key:"sharedAndroidSdkRedirectToSdkRedirectWillTakePlace",value:function(e,t){return this.gnar.track({action:"willTakePlace",eventName:"funnel/shared/androidSdkRedirectToSdk-redirect-willTakePlace",funnelType:"shared",object:"redirect",objectId:"androidSdkRedirectToSdk",ms:e,pageId:t})}},{key:"sharedAndroidSdkSignInButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/androidSdkSignIn-button-click",funnelType:"shared",object:"button",objectId:"androidSdkSignIn",pageId:e,placement:t})}},{key:"sharedAndroidSdkStartTrialButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/androidSdkStartTrial-button-click",funnelType:"shared",object:"button",objectId:"androidSdkStartTrial",pageId:e,placement:t})}},{key:"sharedAndroidSdkUpgradePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/androidSdkUpgrade-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"androidSdkUpgrade",pageId:"androidSdkUpgrade",referrer:e,url:t})}},{key:"sharedAndroidSdkWelcomePageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/androidSdkWelcome-page-show",funnelType:"shared",isLanding:!0,object:"page",objectId:"androidSdkWelcome",pageId:"androidSdkWelcome",referrer:e,url:t,isEligible:n})}},{key:"sharedAuthInfoLoginTypeSigninFormError",value:function(e,t,n){return this.gnar.track({action:"error",eventName:"funnel/shared/authInfoLoginType-signinForm-error",funnelType:"shared",object:"signinForm",objectId:"authInfoLoginType",loginType:e,pageId:t,hasSocialLogin:n})}},{key:"sharedAvailableOnProductLinkClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/shared/availableOnProduct-link-click",funnelType:"shared",object:"link",objectId:"availableOnProduct",pageId:e,product:t,placement:n})}},{key:"sharedBackIndividualPurchaseButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/backIndividualPurchase-button-click",funnelType:"shared",object:"button",objectId:"backIndividualPurchase",pageId:e})}},{key:"sharedBackupCodeMethodButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/backupCodeMethod-button-click",funnelType:"shared",object:"button",objectId:"backupCodeMethod",pageId:e})}},{key:"sharedBusinessNotificationCloseButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/businessNotificationClose-button-click",funnelType:"shared",object:"button",objectId:"businessNotificationClose",pageId:e})}},{key:"sharedBusinessNotificationFollowButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/businessNotificationFollow-button-click",funnelType:"shared",object:"button",objectId:"businessNotificationFollow",pageId:e})}},{key:"sharedBusinessNotificationShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/shared/business-notification-show",funnelType:"shared",object:"notification",objectId:"business",pageId:e})}},{key:"sharedBusinessPaymentFormFail",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l,d,h){return this.gnar.track({action:"fail",eventName:"funnel/shared/businessPayment-form-fail",funnelType:"shared",object:"form",objectId:"businessPayment",pageId:e,paymentProcessor:t,plan:n,seatsNumber:r,teamName:i,detectedCountryCode:o,detectedCountryName:a,fieldErrors:s,formErrorMessage:u,isTrial:c,postalCode:M,regionCode:m,selectedCountryCode:l,selectedCountryName:d,taxableRegionCode:h})}},{key:"sharedBusinessPaymentFormSuccess",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l){return this.gnar.track({action:"success",eventName:"funnel/shared/businessPayment-form-success",funnelType:"shared",object:"form",objectId:"businessPayment",pageId:e,paymentProcessor:t,plan:n,seatsNumber:r,teamName:i,detectedCountryCode:o,detectedCountryName:a,isTrial:s,postalCode:u,regionCode:c,selectedCountryCode:M,selectedCountryName:m,taxableRegionCode:l})}},{key:"sharedCaptchaStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/captchaStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"captchaStep",pageId:"captchaStep",referrer:e,url:t})}},{key:"sharedConfirmEmailChangePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/confirmEmailChange-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"confirmEmailChange",pageId:"confirmEmailChange",referrer:e,url:t})}},{key:"sharedContactSupportMethodButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/contactSupportMethod-button-click",funnelType:"shared",object:"button",objectId:"contactSupportMethod",pageId:e})}},{key:"sharedContactSupportStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/contactSupportStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"contactSupportStep",pageId:"contactSupportStep",referrer:e,url:t})}},{key:"sharedCreditCardPaymentSubmitButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/shared/creditCardPaymentSubmit-button-click",funnelType:"shared",object:"button",objectId:"creditCardPaymentSubmit",pageId:e,regionCode:t,selectedCountryCode:n,selectedCountryName:r})}},{key:"sharedDiscountBannerButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/discountBanner-button-click",funnelType:"shared",object:"button",objectId:"discountBanner",pageId:e})}},{key:"sharedDiscountBannerShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/shared/discount-banner-show",funnelType:"shared",object:"banner",objectId:"discount",pageId:e})}},{key:"sharedEmailConfirmationPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/emailConfirmation-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"emailConfirmation",pageId:"emailConfirmation",referrer:e,url:t})}},{key:"sharedEmailVerificationContactSupportButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/emailVerificationContactSupport-button-click",funnelType:"shared",object:"button",objectId:"emailVerificationContactSupport",pageId:e})}},{key:"sharedEmailVerificationFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/shared/emailVerification-form-fail",funnelType:"shared",object:"form",objectId:"emailVerification",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"sharedEmailVerificationFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/shared/emailVerification-form-success",funnelType:"shared",object:"form",objectId:"emailVerification",pageId:e})}},{key:"sharedEmailVerificationResendCodeButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/emailVerificationResendCode-button-click",funnelType:"shared",object:"button",objectId:"emailVerificationResendCode",pageId:e})}},{key:"sharedEmailVerificationStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/emailVerificationStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"emailVerificationStep",pageId:"emailVerificationStep",referrer:e,url:t})}},{key:"sharedExtInstallRefuseButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/extInstallRefuse-button-click",funnelType:"shared",object:"button",objectId:"extInstallRefuse",pageId:e})}},{key:"sharedFacebookSigninFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/shared/facebookSignin-form-fail",funnelType:"shared",object:"form",objectId:"facebookSignin",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"sharedFacebookSigninFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/shared/facebookSignin-form-success",funnelType:"shared",object:"form",objectId:"facebookSignin",pageId:e})}},{key:"sharedFailedNotificationErrorThrown",value:function(e,t,n){return this.gnar.track({action:"thrown",eventName:"funnel/shared/failedNotification-error-thrown",funnelType:"shared",object:"error",objectId:"failedNotification",pageId:e,url:t,errorMessage:n})}},{key:"sharedFeaturesContentButtonHover",value:function(e,t,n,r,i,o){return this.gnar.track({action:"hover",eventName:"funnel/shared/featuresContent-button-hover",funnelType:"shared",object:"button",objectId:"featuresContent",pageId:e,rowId:t,sectionId:n,alertsCount:r,hoverDuration:i,placement:o})}},{key:"sharedForgotEmailStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/forgotEmailStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"forgotEmailStep",pageId:"forgotEmailStep",referrer:e,url:t})}},{key:"sharedForgotPasswordStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/forgotPasswordStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"forgotPasswordStep",pageId:"forgotPasswordStep",referrer:e,url:t})}},{key:"sharedGetPremiumButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/shared/getPremium-button-click",funnelType:"shared",object:"button",objectId:"getPremium",bannerType:e,pageId:t,placement:n,planType:r})}},{key:"sharedGoogleOneTapAuthFail",value:function(e){return this.gnar.track({action:"fail",eventName:"funnel/shared/googleOneTapAuth-fail",funnelType:"shared",object:"googleOneTapAuth",pageId:e})}},{key:"sharedGoogleOneTapAuthSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/shared/googleOneTapAuth-success",funnelType:"shared",object:"googleOneTapAuth",pageId:e})}},{key:"sharedGoogleOneTapPopupChange",value:function(e,t,n){return this.gnar.track({action:"Change",eventName:"funnel/shared/googleOneTapPopup-Change",funnelType:"shared",object:"googleOneTapPopup",oneTapAction:e,pageId:t,reason:n})}},{key:"sharedLimitedSitesButtonHover",value:function(e,t,n){return this.gnar.track({action:"hover",eventName:"funnel/shared/limitedSites-button-hover",funnelType:"shared",object:"button",objectId:"limitedSites",featureName:e,pageId:t,placement:n})}},{key:"sharedLlamaCallbackPageExtensionFailure",value:function(e){return this.gnar.track({action:"extensionFailure",eventName:"funnel/shared/llamaCallback-page-extensionFailure",funnelType:"shared",object:"page",objectId:"llamaCallback",pageId:e})}},{key:"sharedLlamaInstallValuePropAccordionButtonCollapse",value:function(e,t){return this.gnar.track({action:"collapse",eventName:"funnel/shared/llamaInstallValuePropAccordion-button-collapse",funnelType:"shared",object:"button",objectId:"llamaInstallValuePropAccordion",pageId:e,type:t})}},{key:"sharedLlamaInstallValuePropAccordionButtonExpand",value:function(e,t){return this.gnar.track({action:"expand",eventName:"funnel/shared/llamaInstallValuePropAccordion-button-expand",funnelType:"shared",object:"button",objectId:"llamaInstallValuePropAccordion",pageId:e,type:t})}},{key:"sharedLlamaServiceDownloadDirectPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/llamaServiceDownloadDirect-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"llamaServiceDownloadDirect",pageId:"llamaServiceDownloadDirect",referrer:e,url:t})}},{key:"sharedLlamaServiceDownloadPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/llamaServiceDownload-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"llamaServiceDownload",pageId:"llamaServiceDownload",referrer:e,url:t})}},{key:"sharedLlamaServiceInstallPageShow",value:function(e,t,n,r){return this.gnar.track({action:"show",eventName:"funnel/shared/llamaServiceInstall-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"llamaServiceInstall",pageId:"llamaServiceInstall",isVerified:e,referrer:t,targetFlow:n,url:r})}},{key:"sharedLlamaServiceSetupSuccessLinkClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/shared/llamaServiceSetupSuccess-link-click",funnelType:"shared",object:"link",objectId:"llamaServiceSetupSuccess",clickAction:e,pageId:t,placement:n})}},{key:"sharedLlamaServiceSetupSuccessPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/llamaServiceSetupSuccess-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"llamaServiceSetupSuccess",pageId:"llamaServiceSetupSuccess",isVerified:e,referrer:t,url:n})}},{key:"sharedLlamaServiceUninstallPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/llamaServiceUninstall-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"llamaServiceUninstall",pageId:"llamaServiceUninstall",isVerified:e,referrer:t,url:n})}},{key:"sharedLlamaServiceVerifyExtensionPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/llamaServiceVerifyExtension-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"llamaServiceVerifyExtension",pageId:"llamaServiceVerifyExtension",hasExtension:e,referrer:t,url:n})}},{key:"sharedMfaStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/mfaStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"mfaStep",pageId:"mfaStep",referrer:e,url:t})}},{key:"sharedNavHeaderLinkClick",value:function(e,t,n,r,i){return this.gnar.track({action:"click",eventName:"funnel/shared/navHeader-link-click",funnelType:"shared",object:"link",objectId:"navHeader",placement:"header",pageId:e,label:t,nextCmsPageId:n,nextHref:r,nextPageId:i})}},{key:"sharedOAuthAutoSignInUnifiedAuthFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/shared/OAuthAutoSignIn-unifiedAuth-fail",funnelType:"shared",object:"unifiedAuth",objectId:"OAuthAutoSignIn",pageId:e,errorId:t,errorMessage:n})}},{key:"sharedOAuthAutoSignInUnifiedAuthRedirect",value:function(e,t){return this.gnar.track({action:"redirect",eventName:"funnel/shared/OAuthAutoSignIn-unifiedAuth-redirect",funnelType:"shared",object:"unifiedAuth",objectId:"OAuthAutoSignIn",pageId:e,targetUrl:t})}},{key:"sharedOAuthAutoSignInUnifiedAuthSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/shared/OAuthAutoSignIn-unifiedAuth-success",funnelType:"shared",object:"unifiedAuth",objectId:"OAuthAutoSignIn",pageId:e})}},{key:"sharedOAuthConsentButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/oAuthConsent-button-click",funnelType:"shared",object:"button",objectId:"oAuthConsent",pageId:e})}},{key:"sharedOAuthConsentFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/shared/oAuthConsent-form-fail",funnelType:"shared",object:"form",objectId:"oAuthConsent",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"sharedOAuthConsentFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/shared/oAuthConsent-form-success",funnelType:"shared",object:"form",objectId:"oAuthConsent",pageId:e})}},{key:"sharedOAuthConsentStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/oAuthConsentStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"oAuthConsentStep",pageId:"oAuthConsentStep",referrer:e,url:t})}},{key:"sharedOAuthConsentUnifiedAuthFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/shared/OAuthConsent-unifiedAuth-fail",funnelType:"shared",object:"unifiedAuth",objectId:"OAuthConsent",errorCode:e,pageId:t,errorId:n,errorMessage:r})}},{key:"sharedOldBrowserPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/oldBrowser-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"oldBrowser",pageId:"oldBrowser",referrer:e,url:t})}},{key:"sharedPageContentEnteredViewport",value:function(e,t){return this.gnar.track({action:"enteredViewport",eventName:"funnel/shared/page-content-enteredViewport",funnelType:"shared",object:"content",objectId:"page",pageId:e,sectionId:t})}},{key:"sharedPasswordResetFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/shared/passwordReset-form-fail",funnelType:"shared",object:"form",objectId:"passwordReset",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"sharedPasswordResetFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/shared/passwordReset-form-success",funnelType:"shared",object:"form",objectId:"passwordReset",pageId:e})}},{key:"sharedPayPalCancelButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/payPalCancel-button-click",funnelType:"shared",object:"button",objectId:"payPalCancel",pageId:e})}},{key:"sharedPayPalPaymentSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/payPalPaymentSubmit-button-click",funnelType:"shared",object:"button",objectId:"payPalPaymentSubmit",pageId:e})}},{key:"sharedPaymentFormFail",value:function(e,t,n,r,i,o,a,s,u,c,M,m){return this.gnar.track({action:"fail",eventName:"funnel/shared/payment-form-fail",funnelType:"shared",object:"form",objectId:"payment",pageId:e,paymentProcessor:t,plan:n,detectedCountryCode:r,detectedCountryName:i,fieldErrors:o,formErrorMessage:a,postalCode:s,regionCode:u,selectedCountryCode:c,selectedCountryName:M,taxableRegionCode:m})}},{key:"sharedPaymentFormSuccess",value:function(e,t,n,r,i,o,a,s,u,c){return this.gnar.track({action:"success",eventName:"funnel/shared/payment-form-success",funnelType:"shared",object:"form",objectId:"payment",pageId:e,paymentProcessor:t,plan:n,detectedCountryCode:r,detectedCountryName:i,postalCode:o,regionCode:a,selectedCountryCode:s,selectedCountryName:u,taxableRegionCode:c})}},{key:"sharedPaymentMethodToggleButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/paymentMethodToggle-button-click",funnelType:"shared",object:"button",objectId:"paymentMethodToggle",pageId:e,paymentMethod:t})}},{key:"sharedPaypalCheckoutButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/paypalCheckout-button-click",funnelType:"shared",object:"button",objectId:"paypalCheckout",pageId:e})}},{key:"sharedPerformanceBraintreeCheckout",value:function(e,t,n,r,i,o,a,s){return this.gnar.track({action:"checkout",eventName:"funnel/shared/performance-braintree-checkout",funnelType:"shared",object:"braintree",objectId:"performance",isCheckoutSuccessful:e,isTokenizationSuccessful:t,pageId:n,url:r,checkoutFinish:i,checkoutStart:o,tokenizeFinish:a,tokenizeStart:s})}},{key:"sharedPerformanceBraintreeLoad",value:function(e,t,n,r,i){return this.gnar.track({action:"load",eventName:"funnel/shared/performance-braintree-load",funnelType:"shared",object:"braintree",objectId:"performance",pageId:e,url:t,cardReady:n,initStart:r,paypalReady:i})}},{key:"sharedPerformancePageLoad",value:function(e,t,n,r,i,o,a,s){return this.gnar.track({action:"load",eventName:"funnel/shared/performance-page-load",funnelType:"shared",object:"page",objectId:"performance",pageId:e,url:t,appDidMount:n,appInitEnd:r,appInitStart:i,firstContentfulPaint:o,firstPaint:a,ttfb:s})}},{key:"sharedPlanChangeErrorPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/planChangeError-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"planChangeError",pageId:"planChangeError",referrer:e,url:t})}},{key:"sharedPlanChangeSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/planChangeSuccess-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"planChangeSuccess",pageId:"planChangeSuccess",referrer:e,url:t})}},{key:"sharedPlanPeriodSelectorButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/planPeriodSelector-button-click",funnelType:"shared",object:"button",objectId:"planPeriodSelector",pageId:e,planPeriod:t})}},{key:"sharedPlansPageUpgradeCtaButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/shared/plansPageUpgradeCta-button-click",funnelType:"shared",object:"button",objectId:"plansPageUpgradeCta",pageId:e,placement:t,planType:n})}},{key:"sharedPremiumFreeTrialOfferingShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/shared/premiumFreeTrial-offering-show",funnelType:"shared",object:"offering",objectId:"premiumFreeTrial",pageId:e})}},{key:"sharedProductInstallRecommendationOtherProductsLinkClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/shared/productInstallRecommendationOtherProducts-link-click",funnelType:"shared",object:"link",objectId:"productInstallRecommendationOtherProducts",pageId:e,product:t,placement:n})}},{key:"sharedProductInstallRecommendationPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/productInstallRecommendation-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"productInstallRecommendation",pageId:"productInstallRecommendation",recommendations:e,referrer:t,url:n})}},{key:"sharedProductInstallRecommendationShowOtherProductsButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/productInstallRecommendationShowOtherProducts-button-click",funnelType:"shared",object:"button",objectId:"productInstallRecommendationShowOtherProducts",pageId:e})}},{key:"sharedProductSuiteButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/productSuite-button-click",funnelType:"shared",object:"button",objectId:"productSuite",clientSelected:e,pageId:t})}},{key:"sharedReportPageShow",value:function(e,t,n,r,i,o,a){return this.gnar.track({action:"show",eventName:"funnel/shared/report-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"report",pageId:"report",referrer:e,url:t,alerts:n,discountName:r,discountType:i,discountValue:o,totalAlertsCount:a})}},{key:"sharedReportUserPromptShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/shared/report-userPrompt-show",funnelType:"shared",object:"userPrompt",objectId:"report",pageId:"report",prompt:e})}},{key:"sharedResendSMSCodeButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/resendSMSCode-button-click",funnelType:"shared",object:"button",objectId:"resendSMSCode",pageId:e})}},{key:"sharedResetPasswordPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/resetPassword-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"resetPassword",pageId:"resetPassword",referrer:e,url:t})}},{key:"sharedSelectBusinessPlanButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/selectBusinessPlan-button-click",funnelType:"shared",object:"button",objectId:"selectBusinessPlan",pageId:e})}},{key:"sharedSelectPlanButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/shared/selectPlan-button-click",funnelType:"shared",object:"button",objectId:"selectPlan",pageId:e,planPeriod:t,detectedCountryCode:n,detectedCountryName:r})}},{key:"sharedSetNewPasswordFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/shared/setNewPassword-form-fail",funnelType:"shared",object:"form",objectId:"setNewPassword",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"sharedSetNewPasswordFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/shared/setNewPassword-form-success",funnelType:"shared",object:"form",objectId:"setNewPassword",pageId:e})}},{key:"sharedSetNewPasswordPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/setNewPassword-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"setNewPassword",pageId:"setNewPassword",referrer:e,url:t})}},{key:"sharedSignInFormStepPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/signInFormStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"signInFormStep",pageId:"signInFormStep",referrer:e,url:t})}},{key:"sharedSignUpEmailVerificationBackButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/signUpEmailVerificationBack-button-click",funnelType:"shared",object:"button",objectId:"signUpEmailVerificationBack",pageId:e})}},{key:"sharedSignUpEmailVerificationContactSupportButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/signUpEmailVerificationContactSupport-button-click",funnelType:"shared",object:"button",objectId:"signUpEmailVerificationContactSupport",pageId:e})}},{key:"sharedSignUpEmailVerificationResendCodeButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/signUpEmailVerificationResendCode-button-click",funnelType:"shared",object:"button",objectId:"signUpEmailVerificationResendCode",pageId:e})}},{key:"sharedSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/signin-button-click",funnelType:"shared",object:"button",objectId:"signin",pageId:e})}},{key:"sharedSigninFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/shared/signin-form-fail",funnelType:"shared",object:"form",objectId:"signin",pageId:e,fieldErrors:t,formErrorMessage:n,placement:r})}},{key:"sharedSigninFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/shared/signin-form-success",funnelType:"shared",object:"form",objectId:"signin",pageId:e,mfaMethod:t,placement:n,trustThisDevice:r})}},{key:"sharedSigninPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/signin-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"signin",pageId:"signin",referrer:e,url:t})}},{key:"sharedSigninSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/signinSubmit-button-click",funnelType:"shared",object:"button",objectId:"signinSubmit",pageId:e})}},{key:"sharedSignupButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/signup-button-click",funnelType:"shared",object:"button",objectId:"signup",pageId:e})}},{key:"sharedSignupFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/shared/signup-form-fail",funnelType:"shared",object:"form",objectId:"signup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r,placement:i})}},{key:"sharedSignupFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/shared/signup-form-success",funnelType:"shared",object:"form",objectId:"signup",emailOptOut:e,pageId:t,isGdpr:n,placement:r})}},{key:"sharedSignupPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/signup-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"signup",pageId:"signup",referrer:e,url:t,isGdpr:n})}},{key:"sharedSignupSubmitButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/signupSubmit-button-click",funnelType:"shared",object:"button",objectId:"signupSubmit",pageId:e,isGdpr:t})}},{key:"sharedSinglePlanComparisonPageShow",value:function(e,t,n,r,i,o,a,s,u,c){return this.gnar.track({action:"show",eventName:"funnel/shared/singlePlanComparison-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"singlePlanComparison",pageId:"singlePlanComparison",referrer:e,url:t,wasRedirected:n,alertsCount:r,browserPreferredLanguage:i,countryCode:o,discountName:a,discountType:s,discountValue:u,userRole:c})}},{key:"sharedSmsMethodButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/smsMethod-button-click",funnelType:"shared",object:"button",objectId:"smsMethod",pageId:e})}},{key:"sharedSocialDeleteAccountPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/socialDeleteAccount-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"socialDeleteAccount",pageId:"socialDeleteAccount",referrer:e,url:t})}},{key:"sharedSocialNoEmailPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/socialNoEmail-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"socialNoEmail",pageId:"socialNoEmail",referrer:e,url:t})}},{key:"sharedSocialPasswordSigninPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/socialPasswordSignin-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"socialPasswordSignin",pageId:"socialPasswordSignin",referrer:e,url:t,authMethod:n})}},{key:"sharedSocialRedirectPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/socialRedirect-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"socialRedirect",pageId:"socialRedirect",referrer:e,url:t})}},{key:"sharedSocialSigninButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/socialSignin-button-click",funnelType:"shared",object:"button",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"sharedSocialSigninFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/shared/socialSignin-form-fail",funnelType:"shared",object:"form",objectId:"socialSignin",pageId:e,socialType:t,fieldErrors:n,formErrorMessage:r})}},{key:"sharedSocialSigninFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/shared/socialSignin-form-success",funnelType:"shared",object:"form",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"sharedSocialSigninPopupShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/socialSignin-popup-show",funnelType:"shared",object:"popup",objectId:"socialSignin",pageId:e,socialType:t})}},{key:"sharedSocialSignupButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/socialSignup-button-click",funnelType:"shared",object:"button",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"sharedSocialSignupFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/shared/socialSignup-form-fail",funnelType:"shared",object:"form",objectId:"socialSignup",pageId:e,socialType:t,fieldErrors:n,formErrorMessage:r})}},{key:"sharedSocialSignupFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/shared/socialSignup-form-success",funnelType:"shared",object:"form",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"sharedSocialSignupPopupShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/socialSignup-popup-show",funnelType:"shared",object:"popup",objectId:"socialSignup",pageId:e,socialType:t})}},{key:"sharedSocialStepPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/socialStep-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"socialStep",pageId:"socialStep",referrer:e,url:t,socialType:n})}},{key:"sharedStandWithUkraineBannerButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/standWithUkraineBanner-button-click",funnelType:"shared",object:"button",objectId:"standWithUkraineBanner",pageId:e})}},{key:"sharedStandWithUkraineBannerNotificationShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/shared/standWithUkraineBanner-notification-show",funnelType:"shared",object:"notification",objectId:"standWithUkraineBanner",pageId:e})}},{key:"sharedSubscribePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/subscribe-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"subscribe",pageId:"subscribe",referrer:e,url:t})}},{key:"sharedTextCheckInputMethod",value:function(e){return this.gnar.track({action:"inputMethod",eventName:"funnel/shared/textCheck-inputMethod",funnelType:"shared",object:"textCheck",pageId:"grammarCheck",inputMethod:e})}},{key:"sharedTextCheckNotificationButtonClick",value:function(e,t,n,r,i,o,a){return this.gnar.track({action:"click",eventName:"funnel/shared/textCheckNotification-button-click",funnelType:"shared",object:"button",objectId:"textCheckNotification",pageId:"grammarCheck",buttonType:e,charactersCount:t,sessionDuration:n,suggestionsAccepted:r,suggestionsActiveCount:i,wordsCount:o,notificationType:a})}},{key:"sharedTextCheckNotificationShow",value:function(e,t,n,r,i,o){return this.gnar.track({action:"show",eventName:"funnel/shared/textCheck-notification-show",funnelType:"shared",object:"notification",objectId:"textCheck",pageId:"grammarCheck",charactersCount:e,sessionDuration:t,suggestionsAccepted:n,suggestionsActiveCount:r,wordsCount:i,notificationType:o})}},{key:"sharedTextCheckSuggestionAccept",value:function(e){return this.gnar.track({action:"accept",eventName:"funnel/shared/textCheckSuggestion-accept",funnelType:"shared",objectId:"textCheckSuggestion",pageId:"grammarCheck",count:e})}},{key:"sharedTotpMethodButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/totpMethod-button-click",funnelType:"shared",object:"button",objectId:"totpMethod",pageId:e})}},{key:"sharedTourCanvasPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/tourCanvas-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"tourCanvas",pageId:"tourCanvas",referrer:e,url:t})}},{key:"sharedTourContinueButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/shared/tourContinue-button-click",funnelType:"shared",object:"button",objectId:"tourContinue",pageId:e,tour:t})}},{key:"sharedTourFacebookPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/tourFacebook-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"tourFacebook",pageId:"tourFacebook",referrer:e,url:t})}},{key:"sharedTourGDocsPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/tourGDocs-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"tourGDocs",pageId:"tourGDocs",referrer:e,url:t})}},{key:"sharedTourGmailPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/tourGmail-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"tourGmail",pageId:"tourGmail",referrer:e,url:t})}},{key:"sharedTourLinkedInPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/tourLinkedIn-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"tourLinkedIn",pageId:"tourLinkedIn",referrer:e,url:t})}},{key:"sharedTourNextButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/shared/tourNext-button-click",funnelType:"shared",object:"button",objectId:"tourNext",pageId:e,step:t,tour:n})}},{key:"sharedTourOutlookPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/tourOutlook-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"tourOutlook",pageId:"tourOutlook",referrer:e,url:t})}},{key:"sharedTourPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/tour-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"tour",pageId:"tour",referrer:e,url:t})}},{key:"sharedTourSkipLinkClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/shared/tourSkip-link-click",funnelType:"shared",object:"link",objectId:"tourSkip",pageId:e,step:t,tour:n,placement:r})}},{key:"sharedTourSlackPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/tourSlack-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"tourSlack",pageId:"tourSlack",referrer:e,url:t})}},{key:"sharedTryAnotherWayMfaButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/tryAnotherWayMfa-button-click",funnelType:"shared",object:"button",objectId:"tryAnotherWayMfa",pageId:e})}},{key:"sharedUnifiedAppSigninConsentPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/unifiedAppSigninConsent-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"unifiedAppSigninConsent",pageId:"unifiedAppSigninConsent",referrer:e,url:t,clientId:n})}},{key:"sharedUnifiedAppSigninOAuthInitPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/unifiedAppSigninOAuthInit-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"unifiedAppSigninOAuthInit",pageId:"unifiedAppSigninOAuthInit",referrer:e,url:t})}},{key:"sharedUnifiedAppSigninPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/unifiedAppSignin-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"unifiedAppSignin",pageId:"unifiedAppSignin",referrer:e,url:t,clientId:n})}},{key:"sharedUnifiedAppSigninSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/unifiedAppSigninSuccess-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"unifiedAppSigninSuccess",pageId:"unifiedAppSigninSuccess",referrer:e,url:t})}},{key:"sharedUnifiedAppSignupPageShow",value:function(e,t,n){return this.gnar.track({action:"show",eventName:"funnel/shared/unifiedAppSignup-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"unifiedAppSignup",pageId:"unifiedAppSignup",referrer:e,url:t,clientId:n})}},{key:"sharedUnifiedAppSignupSuccessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/unifiedAppSignupSuccess-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"unifiedAppSignupSuccess",pageId:"unifiedAppSignupSuccess",referrer:e,url:t})}},{key:"sharedUnifiedAuthFormShow",value:function(e,t,n,r,i){return this.gnar.track({action:"show",eventName:"funnel/shared/unifiedAuthForm-show",funnelType:"shared",object:"unifiedAuthForm",formKey:e,isGdpr:t,pageId:n,isExplicitTermsOfService:r,pageStyle:i})}},{key:"sharedUnifiedAuthFormSubmitButtonClick",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l,d,h,f,p,y,g,E){return this.gnar.track({action:"click",eventName:"funnel/shared/unifiedAuthForm-submitButton-click",funnelType:"shared",object:"submitButton",objectId:"unifiedAuthForm",authAction:e,emailOptOut:t,flowType:n,formKey:r,isGdpr:i,pageId:o,countSubmits:a,fieldErrors:s,hasSignUpEmailVerificationCode:u,hasSignUpEmailVerificationLink:c,isExplicitTermsOfService:M,isSecureSignIn:m,isSignUpEmailVerificationResendCodeRequest:l,isSignUpEmailVerificationResendLinkRequest:d,mfaMode:h,pageStyle:f,signUpEmailVerificationType:p,socialType:y,termsOfServiceAccepted:g,useSignUpEmailVerification:E})}},{key:"sharedUnifiedAuthInfoRequestSuccess",value:function(e,t,n,r,i,o,a){return this.gnar.track({action:"success",eventName:"funnel/shared/unifiedAuthInfoRequest-success",funnelType:"shared",object:"unifiedAuthInfoRequest",formKey:e,isGdpr:t,loginType:n,pageId:r,hasSocialLogin:i,isExplicitTermsOfService:o,pageStyle:a})}},{key:"sharedUnifiedAuthRequestAttempt",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l,d,h,f,p,y,g){return this.gnar.track({action:"attempt",eventName:"funnel/shared/unifiedAuthRequest-attempt",funnelType:"shared",object:"unifiedAuthRequest",authAction:e,emailOptOut:t,flowType:n,formKey:r,isGdpr:i,pageId:o,hasSignUpEmailVerificationCode:a,hasSignUpEmailVerificationLink:s,initFlowFormKey:u,isExplicitTermsOfService:c,isSecureSignIn:M,isSignUpEmailVerificationResendCodeRequest:m,isSignUpEmailVerificationResendLinkRequest:l,mfaMode:d,pageStyle:h,signUpEmailVerificationType:f,socialType:p,termsOfServiceAccepted:y,useSignUpEmailVerification:g})}},{key:"sharedUnifiedAuthRequestFailure",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l,d,h,f,p,y,g,E,v){return this.gnar.track({action:"failure",eventName:"funnel/shared/unifiedAuthRequest-failure",funnelType:"shared",object:"unifiedAuthRequest",authAction:e,emailOptOut:t,errorCode:n,flowType:r,formKey:i,isGdpr:o,pageId:a,hasSignUpEmailVerificationCode:s,hasSignUpEmailVerificationLink:u,initFlowFormKey:c,isExplicitTermsOfService:M,isRecoverable:m,isSecureSignIn:l,isSignUpEmailVerificationResendCodeRequest:d,isSignUpEmailVerificationResendLinkRequest:h,mfaMode:f,pageStyle:p,signUpEmailVerificationType:y,socialType:g,termsOfServiceAccepted:E,useSignUpEmailVerification:v})}},{key:"sharedUnifiedAuthRequestSuccess",value:function(e,t,n,r,i,o,a,s,u,c,M,m,l,d,h,f,p,y,g,E){return this.gnar.track({action:"success",eventName:"funnel/shared/unifiedAuthRequest-success",funnelType:"shared",object:"unifiedAuthRequest",authAction:e,emailOptOut:t,flowType:n,formKey:r,isGdpr:i,pageId:o,hasSignUpEmailVerificationCode:a,hasSignUpEmailVerificationLink:s,initFlowFormKey:u,isExplicitTermsOfService:c,isLoggedInAfterEmailVerificationByLink:M,isSecureSignIn:m,isSignUpEmailVerificationResendCodeRequest:l,isSignUpEmailVerificationResendLinkRequest:d,mfaMode:h,pageStyle:f,signUpEmailVerificationType:p,socialType:y,termsOfServiceAccepted:g,useSignUpEmailVerification:E})}},{key:"sharedUpgradeBusinessPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/upgradeBusiness-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"upgradeBusiness",pageId:"upgradeBusiness",referrer:e,url:t})}},{key:"sharedUpgradeBusinessTryPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/upgradeBusinessTry-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"upgradeBusinessTry",pageId:"upgradeBusinessTry",referrer:e,url:t})}},{key:"sharedUpgradePageShow",value:function(e,t,n,r,i,o,a){return this.gnar.track({action:"show",eventName:"funnel/shared/upgrade-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"upgrade",pageId:"upgrade",referrer:e,url:t,discountName:n,discountType:r,discountValue:i,errorCountTotal:o,errors:a})}},{key:"sharedUpgradeTryPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/shared/upgradeTry-page-show",funnelType:"shared",isLanding:!1,object:"page",objectId:"upgradeTry",pageId:"upgradeTry",referrer:e,url:t})}},{key:"sharedVideoPreviewButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/shared/videoPreview-button-click",funnelType:"shared",object:"button",objectId:"videoPreview",pageId:e})}},{key:"sharedWidgetDriftClose",value:function(e,t,n,r,i){return this.gnar.track({action:"close",eventName:"funnel/shared/widget-drift-close",funnelType:"shared",object:"drift",objectId:"widget",pageId:e,url:t,conversationId:n,institutionId:r,repId:i})}},{key:"sharedWidgetDriftMessageReceived",value:function(e,t,n,r,i){return this.gnar.track({action:"messageReceived",eventName:"funnel/shared/widget-drift-messageReceived",funnelType:"shared",object:"drift",objectId:"widget",pageId:e,url:t,conversationId:n,institutionId:r,repId:i})}},{key:"sharedWidgetDriftMessageSent",value:function(e,t,n,r,i){return this.gnar.track({action:"messageSent",eventName:"funnel/shared/widget-drift-messageSent",funnelType:"shared",object:"drift",objectId:"widget",pageId:e,url:t,conversationId:n,institutionId:r,repId:i})}},{key:"sharedWidgetDriftOpen",value:function(e,t,n,r,i){return this.gnar.track({action:"open",eventName:"funnel/shared/widget-drift-open",funnelType:"shared",object:"drift",objectId:"widget",pageId:e,url:t,conversationId:n,institutionId:r,repId:i})}},{key:"sharedWidgetDriftPlaybookFired",value:function(e,t,n,r,i){return this.gnar.track({action:"playbookFired",eventName:"funnel/shared/widget-drift-playbookFired",funnelType:"shared",object:"drift",objectId:"widget",pageId:e,url:t,conversationId:n,institutionId:r,repId:i})}},{key:"sharedWidgetDriftReady",value:function(e,t,n,r,i){return this.gnar.track({action:"ready",eventName:"funnel/shared/widget-drift-ready",funnelType:"shared",object:"drift",objectId:"widget",pageId:e,url:t,conversationId:n,institutionId:r,repId:i})}},{key:"techAfterInstallPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/tech/afterInstall-page-show",funnelType:"tech",isLanding:!1,object:"page",objectId:"afterInstall",pageId:"afterInstall",referrer:e,url:t})}},{key:"techEduActivatePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/tech/eduActivate-page-show",funnelType:"tech",isLanding:!1,object:"page",objectId:"eduActivate",pageId:"eduActivate",referrer:e,url:t})}},{key:"techEduConfirmPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/tech/eduConfirm-page-show",funnelType:"tech",isLanding:!1,object:"page",objectId:"eduConfirm",pageId:"eduConfirm",referrer:e,url:t})}},{key:"techEmbeddedEditorPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/tech/embeddedEditor-page-show",funnelType:"tech",isLanding:!1,object:"page",objectId:"embeddedEditor",pageId:"embeddedEditor",referrer:e,url:t})}},{key:"techError404AnswersPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/tech/error404Answers-page-show",funnelType:"tech",isLanding:!1,object:"page",objectId:"error404Answers",pageId:"error404Answers",referrer:e,url:t})}},{key:"techError404PageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/tech/error404-page-show",funnelType:"tech",isLanding:!1,object:"page",objectId:"error404",pageId:"error404",referrer:e,url:t})}},{key:"techError500PageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/tech/error500-page-show",funnelType:"tech",isLanding:!1,object:"page",objectId:"error500",pageId:"error500",referrer:e,url:t})}},{key:"techPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/tech/page-scroll",funnelType:"tech",object:"page",pageId:e})}},{key:"techPluginPopupPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/tech/pluginPopup-page-show",funnelType:"tech",isLanding:!1,object:"page",objectId:"pluginPopup",pageId:"pluginPopup",referrer:e,url:t})}},{key:"unsupportedCheckTextButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/unsupported/checkText-button-click",funnelType:"unsupported",object:"button",objectId:"checkText",pageId:e,placement:t})}},{key:"unsupportedCheckTextFormFail",value:function(e,t,n){return this.gnar.track({action:"fail",eventName:"funnel/unsupported/checkText-form-fail",funnelType:"unsupported",object:"form",objectId:"checkText",pageId:e,fieldErrors:t,formErrorMessage:n})}},{key:"unsupportedCheckTextFormSuccess",value:function(e){return this.gnar.track({action:"success",eventName:"funnel/unsupported/checkText-form-success",funnelType:"unsupported",object:"form",objectId:"checkText",pageId:e})}},{key:"unsupportedCheckTextSubmitButtonClick",value:function(e,t,n){return this.gnar.track({action:"click",eventName:"funnel/unsupported/checkTextSubmit-button-click",funnelType:"unsupported",object:"button",objectId:"checkTextSubmit",inputMethod:e,pageId:t,wordCount:n})}},{key:"unsupportedNoTextPopupPopupShow",value:function(e){return this.gnar.track({action:"show",eventName:"funnel/unsupported/noTextPopup-popup-show",funnelType:"unsupported",object:"popup",objectId:"noTextPopup",pageId:e})}},{key:"unsupportedPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/unsupported/page-scroll",funnelType:"unsupported",object:"page",pageId:e})}},{key:"unsupportedSampleLinkLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/unsupported/sampleLink-link-click",funnelType:"unsupported",object:"link",objectId:"sampleLink",pageId:e,placement:t})}},{key:"unsupportedSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/unsupported/signin-button-click",funnelType:"unsupported",object:"button",objectId:"signin",pageId:e})}},{key:"unsupportedSignupButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/unsupported/signup-button-click",funnelType:"unsupported",object:"button",objectId:"signup",pageId:e})}},{key:"unsupportedUnsupportedPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/unsupported/unsupported-page-show",funnelType:"unsupported",isLanding:!0,object:"page",objectId:"unsupported",pageId:"unsupported",referrer:e,url:t})}},{key:"unsupportedUploadFileLinkClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/unsupported/uploadFile-link-click",funnelType:"unsupported",object:"link",objectId:"uploadFile",pageId:e,placement:t})}},{key:"voucherApplyVoucherButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/voucher/applyVoucher-button-click",funnelType:"voucher",object:"button",objectId:"applyVoucher",pageId:e})}},{key:"voucherApplyVoucherFormFail",value:function(e,t,n,r){return this.gnar.track({action:"fail",eventName:"funnel/voucher/applyVoucher-form-fail",funnelType:"voucher",object:"form",objectId:"applyVoucher",pageId:e,fieldErrors:t,formErrorMessage:n,voucherId:r})}},{key:"voucherApplyVoucherFormSuccess",value:function(e,t){return this.gnar.track({action:"success",eventName:"funnel/voucher/applyVoucher-form-success",funnelType:"voucher",object:"form",objectId:"applyVoucher",pageId:e,voucherId:t})}},{key:"voucherCreditCardPaymentSubmitButtonClick",value:function(e,t,n,r){return this.gnar.track({action:"click",eventName:"funnel/voucher/creditCardPaymentSubmit-button-click",funnelType:"voucher",object:"button",objectId:"creditCardPaymentSubmit",pageId:e,regionCode:t,selectedCountryCode:n,selectedCountryName:r})}},{key:"voucherPageScroll",value:function(e){return this.gnar.track({action:"scroll",eventName:"funnel/voucher/page-scroll",funnelType:"voucher",object:"page",pageId:e})}},{key:"voucherPayPalCancelButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/voucher/payPalCancel-button-click",funnelType:"voucher",object:"button",objectId:"payPalCancel",pageId:e})}},{key:"voucherPayPalPaymentSubmitButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/voucher/payPalPaymentSubmit-button-click",funnelType:"voucher",object:"button",objectId:"payPalPaymentSubmit",pageId:e})}},{key:"voucherPaymentFormFail",value:function(e,t,n,r,i,o,a,s,u,c,M,m){return this.gnar.track({action:"fail",eventName:"funnel/voucher/payment-form-fail",funnelType:"voucher",object:"form",objectId:"payment",pageId:e,paymentProcessor:t,plan:n,detectedCountryCode:r,detectedCountryName:i,fieldErrors:o,formErrorMessage:a,postalCode:s,regionCode:u,selectedCountryCode:c,selectedCountryName:M,taxableRegionCode:m})}},{key:"voucherPaymentFormSuccess",value:function(e,t,n,r,i,o,a,s,u,c){return this.gnar.track({action:"success",eventName:"funnel/voucher/payment-form-success",funnelType:"voucher",object:"form",objectId:"payment",pageId:e,paymentProcessor:t,plan:n,detectedCountryCode:r,detectedCountryName:i,postalCode:o,regionCode:a,selectedCountryCode:s,selectedCountryName:u,taxableRegionCode:c})}},{key:"voucherPaypalCheckoutButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/voucher/paypalCheckout-button-click",funnelType:"voucher",object:"button",objectId:"paypalCheckout",pageId:e})}},{key:"voucherSigninButtonClick",value:function(e){return this.gnar.track({action:"click",eventName:"funnel/voucher/signin-button-click",funnelType:"voucher",object:"button",objectId:"signin",pageId:e})}},{key:"voucherSignupFormFail",value:function(e,t,n,r,i){return this.gnar.track({action:"fail",eventName:"funnel/voucher/signup-form-fail",funnelType:"voucher",object:"form",objectId:"signup",pageId:e,fieldErrors:t,formErrorMessage:n,isGdpr:r,placement:i})}},{key:"voucherSignupFormSuccess",value:function(e,t,n,r){return this.gnar.track({action:"success",eventName:"funnel/voucher/signup-form-success",funnelType:"voucher",object:"form",objectId:"signup",emailOptOut:e,pageId:t,isGdpr:n,placement:r})}},{key:"voucherSignupSubmitButtonClick",value:function(e,t){return this.gnar.track({action:"click",eventName:"funnel/voucher/signupSubmit-button-click",funnelType:"voucher",object:"button",objectId:"signupSubmit",pageId:e,isGdpr:t})}},{key:"voucherVoucherHomePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/voucher/voucherHome-page-show",funnelType:"voucher",isLanding:!0,object:"page",objectId:"voucherHome",pageId:"voucherHome",referrer:e,url:t})}},{key:"voucherVoucherResetPasswordPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/voucher/voucherResetPassword-page-show",funnelType:"voucher",isLanding:!1,object:"page",objectId:"voucherResetPassword",pageId:"voucherResetPassword",referrer:e,url:t})}},{key:"voucherVoucherSigninPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/voucher/voucherSignin-page-show",funnelType:"voucher",isLanding:!1,object:"page",objectId:"voucherSignin",pageId:"voucherSignin",referrer:e,url:t})}},{key:"voucherVoucherSignupPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/voucher/voucherSignup-page-show",funnelType:"voucher",isLanding:!1,object:"page",objectId:"voucherSignup",pageId:"voucherSignup",referrer:e,url:t})}},{key:"voucherVoucherSubscribePageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/voucher/voucherSubscribe-page-show",funnelType:"voucher",isLanding:!1,object:"page",objectId:"voucherSubscribe",pageId:"voucherSubscribe",referrer:e,url:t})}},{key:"voucherVoucherThankYouPageShow",value:function(e,t){return this.gnar.track({action:"show",eventName:"funnel/voucher/voucherThankYou-page-show",funnelType:"voucher",isLanding:!1,object:"page",objectId:"voucherThankYou",pageId:"voucherThankYou",referrer:e,url:t})}}]),e}();t.GnarSpec=o},88051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pageIdToFunnelType=void 0,t.pageIdToFunnelType={about:"aux",accountCreationStep:"shared",accountDeleted:"shared",accountTypeSelection:"freemium",adjustRedirectLandingPage:"shared",affiliateHome:"affiliate",afterInstall:"tech",allTheBenefits:"freemium",androidSdkConfirmation:"shared",androidSdkPlans:"shared",androidSdkUpgrade:"shared",androidSdkWelcome:"shared",authorisationStep:"business",businessActivate:"business",businessAdminWelcome:"business",businessAdminWelcomeSurvey:"business",businessApproveEmailChange:"business",businessCX:"business",businessConfirm:"business",businessConfirmEmailChange:"business",businessExperienceSurvey:"business",businessExtensionEnable:"business",businessHR:"business",businessHome:"business",businessHomeExp:"business",businessHomeMobile:"business",businessInviteMembers:"business",businessJoinExisting:"business",businessJoinNew:"business",businessMarketing:"business",businessMemberWelcome:"business",businessMemberWelcomeSurvey:"business",businessPricing:"business",businessSales:"business",businessSubscriptionCancel:"business",captchaStep:"shared",changeEmailSuccess:"business",confirmEmailChange:"shared",contactAdminChat:"business",contactSales:"aux",contactSalesExisting:"business",contactSalesHelp:"business",contactSalesNgo:"business",contactSalesPersonal:"business",contactSalesSorry:"business",contactSalesThanksBuy:"business",contactSupportStep:"shared",eduAccessCode:"edu",eduActivate:"tech",eduCheckYourEmail:"edu",eduConfirm:"tech",eduPlans:"edu",eduPurchase:"edu",eduPurchaseConfirmation:"edu",eduQuote:"edu",eduQuoteConfirmation:"edu",eduRegistrationConfirmation:"edu",eduSignin:"edu",eduSignup:"edu",eduSubscriptionCancel:"edu",eduTerms:"edu",emailConfirmation:"shared",emailVerificactionStep:"ngo",emailVerificationStep:"shared",embeddedEditor:"tech",enterpriseTrial:"business",error404:"tech",error404Answers:"tech",error500:"tech",eslHome:"freemium",extInstall:"affiliate",extInstallCancel:"affiliate",extensionEnable:"freemium",extensionSuccess:"freemium",extensionUninstall:"freemium",forgotEmailStep:"shared",forgotPasswordStep:"shared",formStep:"ngo",gbAccountIsAlreadyActive:"business",getStartedStep:"ngo",grammarCheck:"freemium",home:"freemium",inviteTeam:"freemium",jobsCorporate:"aux",jobsLife:"aux",jobsMarketing:"aux",jobsOpenings:"aux",jobsOpportunity:"aux",jobsProduct:"aux",jobsTechnology:"aux",jobsVacancy:"aux",joinTeam:"business",joinTeamError:"business",keyboard:"mobile",llamaServiceDownload:"shared",llamaServiceDownloadDirect:"shared",llamaServiceInstall:"shared",llamaServiceSetupSuccess:"shared",llamaServiceUninstall:"shared",llamaServiceVerifyExtension:"shared",mediaAssets:"aux",mfaStep:"shared",mobileBusinessSuccess:"business",mobileDesktopOnly:"mobile",mobileHome:"mobile",mobileResetPassword:"mobile",mobileSetNewPassword:"mobile",mobileSubscribeSuccess:"mobile",mobileSuccess:"mobile",mobileThankYou:"mobile",mobileUpgrade:"mobile",mobileUpgradeBusiness:"business",mobileUpgradeFail:"mobile",mobileUpgradeSuccess:"mobile",moreThanGrammar:"freemium",native:"native",nativeMac:"native",nativeUnsupported:"native",nativeWindows:"native",nonprofitsNgos:"ngo",notEligibleForBusinessTrial:"business",oAuthConsentStep:"shared",officeAddin:"officeAddin",officeAddinDownloading:"officeAddin",officeAddinDownloadingMac:"officeAddin",oldBrowser:"shared",personalize:"freemium",plagiarismChecker:"plagiarism",planChangeError:"shared",planChangeSuccess:"shared",pluginPopup:"tech",premium:"aux",premiumDemoDocRedirect:"freemium",premiumWelcome:"freemium",productInstallRecommendation:"shared",professionalFluencyHome:"freemium",professionalHome:"freemium",profilePreferences:"aux",purchaseStep:"business",questionnaireStep:"business",quicklyAndConfidently:"freemium",referral:"referral",report:"shared",resetPassword:"shared",safari:"aux",setNewPassword:"shared",signInFormStep:"shared",signin:"shared",signup:"shared",singlePlanComparison:"shared",socialDeleteAccount:"shared",socialNoEmail:"shared",socialOfficeAddin:"officeAddin",socialOfficeAddinFail:"officeAddin",socialOfficeAddinReturnUri:"officeAddin",socialOfficeAddinSuccess:"officeAddin",socialPasswordSignin:"shared",socialRedirect:"shared",socialStep:"shared",studentHome:"freemium",subscribe:"shared",successStep:"ngo",teamSizeStep:"business",timeSaving:"freemium",tour:"shared",tourCanvas:"shared",tourFacebook:"shared",tourGDocs:"shared",tourGmail:"shared",tourLinkedIn:"shared",tourOutlook:"shared",tourSlack:"shared",ukHome:"freemium",unifiedAppSignin:"shared",unifiedAppSigninConsent:"shared",unifiedAppSigninOAuthInit:"shared",unifiedAppSigninSuccess:"shared",unifiedAppSignup:"shared",unifiedAppSignupSuccess:"shared",unsupported:"unsupported",upgrade:"shared",upgradeBusiness:"shared",upgradeBusinessTry:"shared",upgradeTry:"shared",userTrustGuidelines:"freemium",voucherHome:"voucher",voucherResetPassword:"voucher",voucherSignin:"voucher",voucherSignup:"voucher",voucherSubscribe:"voucher",voucherThankYou:"voucher",welcome:"affiliate",welcomeBack:"freemium",workspaceJoin:"freemium",workspaceWelcome:"freemium"}},3805:function(e,t,n){var r=n(46927);e.exports=function(e){return r(e,{recaptcha:{url:"https://www.google.com/recaptcha/api.js",urlGlobal:"https://www.recaptcha.net/recaptcha/api.js",globalEnterpriseUrl:"https://www.recaptcha.net/recaptcha/enterprise.js",enterpriseUrl:"https://www.google.com/recaptcha/enterprise.js",invisible:{sitekey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"},loginFlow:{sitekey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"},enterprise:{sitekey:"6Lckmf0UAAAAAAozGnstFovY5skU0WMue1nQl_8j"}},pardot:{host:"https://go.grammarly.com",contactSalesForm:"/l/894581/2021-01-20/48sy",eduGetQuoteForm:"/l/894581/2020-11-18/ff4"},tracking:{bing:{ecPrefix:"Fake "},googleAnalytics:{id:"UA-6331378-22"},googleTagManager:{id:"GTM-KPPHBZ",layer:"Test"},googleSiteOwnership:{key:"eMuQZrkOljHXtD08wBN_urnxQy2cebAkVqSOj_lxWEY"},adjust:{environment:"sandbox"}},business:{memberAnnualPricePerMonth:{value:12.5,currency:"USD"},memberMonthlyPricePerMonth:{value:25,currency:"USD"},minSelfServeMembers:3,maxSelfServeMembers:149,trialLength:7}})}},98794:function(e,t,n){var r=n(46927),i=n(3805);e.exports=function(e){return r(i(e),{api:{auth:"https://auth.ppgr.io/v3",apps:"https://apps.ppgr.io",facadePrivate:"http://facade.private.ppgr.io",capi:"https://capi.ppgr.io/api",clientControls:"https://goldengate.ppgr.io/client-controls",dapi:"https://data.ppgr.io",docs:{check:"https://capi.ppgr.io/api/check",docproc:"https://dox.ppgr.io/docproc/extract",docsUrl:"https://dox.ppgr.io/documents"},dox:"https://dox.ppgr.io",facade:"/api/participate",institution:"https://goldengate.ppgr.io/institution/api",institutionAdmin:"https://goldengate.ppgr.io/institution/api/institution/admin",irbis:"https://irbis.ppgr.io",irbisDiscountsLive:"https://irbis.ppgr.io/api/discounts/live",mail:"https://g-mail.ppgr.io",redirect:"https://redirect.ppgr.io/redirect/way",subscription:"https://subscription.ppgr.io",sso:"https://sso.ppgr.io",tokens:"https://tokens.ppgr.io",workspace:"https://goldengate.ppgr.io/workspace",treatment:"https://treatment.ppgr.io"},domains:{cookie:".ppgr.io"},env:"preprod",extension:{chromeWebstoreId:"kbfnbcaeplbcioakkpcpgfkobkghlhen",firefox:{galleryUrl:"https://addons.mozilla.org/en-US/firefox/addon/grammarly-1/",extensionUrl:"https://addons.mozilla.org/firefox/downloads/latest/566314/addon-566314-latest.xpi",iconUrl:"https://addons.cdn.mozilla.net/user-media/addon_icons/566/566314-32.png"},safari:{galleryUrl:"https://safari-extensions.apple.com/details/?id=com.grammarly.spellchecker.extension-W8F64X92K3",macAppStore:"https://apps.apple.com/us/app/grammarly-for-safari/id1462114288?ls=1&mt=12",migrationSupport:"https://support.grammarly.com/hc/en-us/articles/360028736111"},edge:{url:"ms-windows-store://pdp?ProductId=9p59wxtbhzzm",galleryUrl:"https://www.microsoft.com/en-us/store/p/grammarly-for-microsoft-edge/9p59wxtbhzzm?rtc=1"},edgeChromium:{url:"https://microsoftedge.microsoft.com/addons/detail/cnlefmmeadmemmdciolhbnfeacpdfbkd"}},socialSignup:{facebook:{appId:"266696250334502"},google:{clientId:"440299537835-nntuscjmjrki9671q6jf6615qmor7sv7.apps.googleusercontent.com",serverClientId:"913728339568-tjccmfojammmqs9q0kunokb507mpjqum.apps.googleusercontent.com"},apple:{scriptSrc:"//appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",clientId:"io.ppgr.service",redirectUrl:"https://www.ppgr.io/api/apple"}},support:{urls:{affiliate:"https://qa-grammarly.zendesk.com/hc/en-us/sections/360002860680-Grammarly-s-Affiliate-Program",cancelSubscription:"https://qa-grammarly.zendesk.com/hc/en-us/articles/360009531779-How-do-I-cancel-my-subscription",main:"https://qa-grammarly.zendesk.com",mainHC:"https://qa-grammarly.zendesk.com/hc",newRequest:"https://qa-grammarly.zendesk.com/hc/en-us/requests/new",newRequestHelpForm:"https://qa-grammarly.zendesk.com/hc/en-us/requests/new?showForm"},email:"support@grammarly.com"},tracking:{dapi:"https://data.ppgr.io",felog:{url:"https://f-log-at.grammarly.io"},femetrics:{url:"https://f-log-test.grammarly.io/ts"},gnar:{url:"https://gnar.ppgr.io"}},urls:{editor:"https://app.ppgr.io",demoEditor:"https://demo.ppgr.io",accountHub:{home:"https://account.ppgr.io",security:"https://account.ppgr.io/security",homeAdmin:"https://account.ppgr.io/admin",subscriptionAdmin:"https://account.ppgr.io/admin/subscription",subscription:"https://account.ppgr.io/subscription",membersAdmin:"https://account.ppgr.io/admin/members",styleGuideAdmin:"https://account.ppgr.io/admin/style-guide",achievements:"https://account.ppgr.io/achievements",homeWorkspace:"https://account.ppgr.io/workspace/members",workspaceMembers:"https://account.ppgr.io/workspace/members",discoverAdmin:"https://account.ppgr.io/admin/discover"},adminka:"https://adminka.ppgr.io",main:"https://www.ppgr.io",officeAddinJsSuccess:"https://officeaddin.ppgr.io/cc2777b7ef1a49ac9d096f64fd4c5f30/dialog_result.html?result=signin_success",download:{llama:{default:{nativeOnboarding:{windows:"https://download-windows.ppgr.io/GrammarlyInstaller.exe"},webOnboarding:{windows:"https://download-windows.ppgr.io/w/GrammarlyInstaller.exe"}},gradualRelease:{nativeOnboarding:{windows:"https://download-windows.ppgr.io/new/GrammarlyInstaller.exe"},webOnboarding:{windows:"https://download-windows.ppgr.io/new/w/GrammarlyInstaller.exe"}}}},developer:{home:"https://developer.ppgr.io",apps:"https://developer.ppgr.io/apps"},ssoLogin:"https://sso.ppgr.io/saml/login"},business:{enterpriseTrailPlans:{annual:10201045,monthly:10201044}}})}},44659:function(e,t,n){var r=n(46927),i=n(42824);e.exports=function(e){var t=JSON.parse(JSON.stringify(i));r(e,t)}},18990:function(e,t,n){var r=n(46927),i=n(3805);e.exports=function(e){return r(i(e),{api:{auth:"https://auth.qagr.io/v3",apps:"https://apps.qagr.io",facadePrivate:"http://facade.private.qagr.io",capi:"https://capi.qagr.io/api",clientControls:"https://goldengate.qagr.io/client-controls",dapi:"https://data.qagr.io",docs:{check:"https://capi.qagr.io/api/check",docproc:"https://dox.qagr.io/docproc/extract",docsUrl:"https://dox.qagr.io/documents"},dox:"https://dox.qagr.io",facade:"/api/participate",institution:"https://goldengate.qagr.io/institution/api",institutionAdmin:"https://goldengate.qagr.io/institution/api/institution/admin",irbis:"https://irbis.qagr.io",mail:"https://g-mail.qagr.io",redirect:"https://redirect.qagr.io/redirect/way",subscription:"https://subscription.qagr.io",sso:"https://sso.qagr.io",tokens:"https://tokens.qagr.io",workspace:"https://goldengate.qagr.io/workspace",treatment:"https://treatment.qagr.io"},domains:{cookie:".qagr.io"},env:"qa",extension:{chromeWebstoreId:"kbfnbcaeplbcioakkpcpgfkobkghlhen",firefox:{galleryUrl:"https://addons.mozilla.org/en-US/firefox/addon/grammarly-1/",extensionUrl:"https://addons.mozilla.org/firefox/downloads/latest/566314/addon-566314-latest.xpi",iconUrl:"https://addons.cdn.mozilla.net/user-media/addon_icons/566/566314-32.png"},safari:{galleryUrl:"https://safari-extensions.apple.com/details/?id=com.grammarly.spellchecker.extension-W8F64X92K3",macAppStore:"https://apps.apple.com/us/app/grammarly-for-safari/id1462114288?ls=1&mt=12",migrationSupport:"https://support.grammarly.com/hc/en-us/articles/360028736111"},edge:{url:"ms-windows-store://pdp?ProductId=9p59wxtbhzzm",galleryUrl:"https://www.microsoft.com/en-us/store/p/grammarly-for-microsoft-edge/9p59wxtbhzzm?rtc=1"},edgeChromium:{url:"https://microsoftedge.microsoft.com/addons/detail/cnlefmmeadmemmdciolhbnfeacpdfbkd"}},socialSignup:{facebook:{appId:"224990081190623"},google:{clientId:"440299537835-nj6mu6b321q7qmqfdr7d9fa9usk5lkcc.apps.googleusercontent.com",serverClientId:"913728339568-tjccmfojammmqs9q0kunokb507mpjqum.apps.googleusercontent.com"},apple:{scriptSrc:"//appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",clientId:"io.qagr.service",redirectUrl:"https://www.qagr.io/api/apple"}},support:{urls:{affiliate:"https://qa-grammarly.zendesk.com/hc/en-us/sections/360002860680-Grammarly-s-Affiliate-Program",cancelSubscription:"https://qa-grammarly.zendesk.com/hc/en-us/articles/360009531779-How-do-I-cancel-my-subscription",main:"https://qa-grammarly.zendesk.com",mainHC:"https://qa-grammarly.zendesk.com/hc",newRequest:"https://qa-grammarly.zendesk.com/hc/en-us/requests/new"},email:"support@grammarly.com"},tracking:{dapi:"https://data.qagr.io",felog:{url:"https://f-log-at.grammarly.io"},femetrics:{url:"https://f-log-test.grammarly.io/ts"},gnar:{url:"https://gnar.qagr.io"}},urls:{editor:"https://app.qagr.io",demoEditor:"https://demo.qagr.io",accountHub:{home:"https://account.qagr.io",security:"https://account.qagr.io/security",homeAdmin:"https://account.qagr.io/admin",subscriptionAdmin:"https://account.qagr.io/admin/subscription",subscription:"https://account.qagr.io/subscription",membersAdmin:"https://account.qagr.io/admin/members",styleGuideAdmin:"https://account.qagr.io/admin/style-guide",homeWorkspace:"https://account.qagr.io/workspace/members",discoverAdmin:"https://account.qagr.io/admin/discover"},adminka:"https://adminka.qagr.io",main:"https://www.qagr.io",officeAddinJsSuccess:"https://officeaddin.qagr.io/cc2777b7ef1a49ac9d096f64fd4c5f30/dialog_result.html?result=signin_success",download:{llama:{default:{nativeOnboarding:{mac:"https://download-mac.qa-desktop-integrations.grammarlyaws.com/Grammarly.dmg"}}}},developer:{home:"https://developer.qagr.io",apps:"https://developer.qagr.io/apps"},ssoLogin:"https://sso.qagr.io/saml/login"}})}},96587:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(44659),i=n(98794),o=n(18990),a=function(){var e={};return r(e),e};t.default={prod:a(),preprod:i(a()),qa:o(a())}},46927:function(e){e.exports=function e(t,n){for(var r in n){var i=t[r],o=n[r];null!=o&&null!=i&&o.constructor==Object&&i.constructor==Object?e(i,o):t[r]=o}return t}},36004:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBillingAddress=t.BillingAddressProvider=void 0;var r=(0,n(5259).__importStar)(n(72791)),i=(0,r.createContext)(null);t.BillingAddressProvider=function(e){var t=e.children,n=e.billingAddressService;return r.default.createElement(i.Provider,{value:n},t)};t.useBillingAddress=function(){var e=(0,r.useContext)(i);if(!e)throw new Error("Cannot get BillingAddressService, the context is missing, please check if BillingAddressProvider exist in components tree");return e}},25086:function(e,t,n){"use strict";var r="/index.js",i=n(84322),o=n(48064).default,a=n(18231).default;Object.defineProperty(t,"__esModule",{value:!0}),t.BillingAddressService=void 0;var s=n(5259),u=n(84894),c=n(5329),M=n(57266),m=n(84669),l=n(90951),d=n(72153),h=function(){function e(t,n){var a=this;o(this,e),this.subscriptionApi=t,this.shouldShowRegionCodeValidation=!1,this.countries={status:"initial"},this.postalCodeValidationCache=new m.FifoCache(10),this.setPostalCode=function(e){var t;(null===(t=a.postalCode)||void 0===t?void 0:t.value)!==e&&(a.postalCode={value:e,validity:a.getValidation(e)},a.validateUSZipCode())},this.getCountryConfiguration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.countryCode;return"success"!==a.countries.status?{name:"".concat(a.countries.status,"..."),billingZipRequirement:"OPTIONAL"}:a.countries.configuration[e]},this.subscribe=function(e,t){return(0,u.reaction)((function(){return a.details}),e,{fireImmediately:t})},this.invalidatePostalCode=function(){return(0,s.__awaiter)(a,void 0,void 0,i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.postalCode={value:this.postalCode.value,validity:this.getValidation(this.postalCode.value)},e.next=3,this.validateUSZipCode();case 3:case"end":return e.stop()}}),e,this)})))},this.getValidation=function(e){return a.isPostalCodeDisabled(a.countryCode)||!a.isPostalCodeRequired(a.countryCode)?"valid":"US"!==a.countryCode?e.length>0?"valid":"invalid":/^\d{5}$/.test(e)?"not-validated":"invalid"},this.validateUSZipCode=function(){return(0,s.__awaiter)(a,void 0,void 0,i.mark((function e(){var t,n,o,a,s,u;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.postalCode,o=n.value,a=n.validity,"US"!==this.countryCode||"not-validated"!==a){e.next=18;break}if(!this.postalCodeValidationCache.has(o)){e.next=5;break}return this.postalCode.validity=(null===(t=this.postalCodeValidationCache.get(o))||void 0===t?void 0:t.valid)?"valid":"invalid",e.abrupt("return");case 5:return e.prev=5,e.next=8,this.subscriptionApi.validateUSZipCode(o);case 8:u=e.sent,this.postalCodeValidationCache.set(o,u),s=u.valid?"valid":"invalid",e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),(0,l.logError)("Cannot validate US zip code, code=[".concat(o,"]: ").concat((0,M.transformToString)(e.t0)),r,"paymentsService.zipCode.error"),s="invalid";case 17:"US"===this.countryCode&&this.postalCode.value===o&&(this.postalCode.validity=s);case 18:case"end":return e.stop()}}),e,this,[[5,13]])})))},this.showRegionCodeValidation=function(){a.shouldShowRegionCodeValidation=!0},this.isPostalCodeRequired=function(e){return"MANDATORY"===a.getCountryConfiguration(e).billingZipRequirement},this.isPostalCodeDisabled=function(e){return"DISABLED"===a.getCountryConfiguration(e).billingZipRequirement},this.getTaxType=function(e){return a.getCountryConfiguration(e).individualSubscriptionPriceType},this.countryCode=null!==n&&void 0!==n?n:"US",this.postalCode={value:"",validity:"not-validated"}}return a(e,[{key:"loadCountryConfiguration",value:function(){return(0,s.__awaiter)(this,void 0,void 0,i.mark((function e(){var t;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.countries={status:"loading"},e.prev=1,e.next=4,this.subscriptionApi.getCountriesConfiguration();case 4:t=e.sent,this.countries={status:"success",configuration:t,list:(0,d.createCountriesList)(t)},e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),this.countries={status:"error"},(0,l.logError)("Cannot retrieve countries configuration: ".concat((0,M.transformToString)(e.t0)),r,"paymentsService.countriesConfigurationFetch.error");case 12:case"end":return e.stop()}}),e,this,[[1,8]])})))}},{key:"setCountryCode",value:function(e){this.countryCode=e,this.regionCode=void 0,this.shouldShowRegionCodeValidation=!1,this.invalidatePostalCode()}},{key:"setRegionCode",value:function(e){this.regionCode=e,this.shouldShowRegionCodeValidation=!1}},{key:"isPostalCodeValid",get:function(){return"valid"===this.postalCode.validity}},{key:"isPostalCodeInvalid",get:function(){return"invalid"===this.postalCode.validity}},{key:"details",get:function(){return{countryCode:this.countryCode,postalCode:this.postalCode,regionCode:this.regionCode,isValid:this.isValid}}},{key:"isRegionCodeValid",get:function(){var e=this.getCountryConfiguration();return!(0,c.isRegionCodeRequiredCountryConfiguration)(e)||!!this.regionCode&&!!e.regions[this.regionCode]}},{key:"isValid",get:function(){return this.isPostalCodeValid&&this.isRegionCodeValid}}]),e}();(0,s.__decorate)([u.observable,(0,s.__metadata)("design:type",String)],h.prototype,"countryCode",void 0),(0,s.__decorate)([u.observable,(0,s.__metadata)("design:type",Object)],h.prototype,"postalCode",void 0),(0,s.__decorate)([u.observable,(0,s.__metadata)("design:type",String)],h.prototype,"regionCode",void 0),(0,s.__decorate)([u.observable,(0,s.__metadata)("design:type",Object)],h.prototype,"shouldShowRegionCodeValidation",void 0),(0,s.__decorate)([u.observable,(0,s.__metadata)("design:type",Object)],h.prototype,"countries",void 0),(0,s.__decorate)([u.action.bound,(0,s.__metadata)("design:type",Function),(0,s.__metadata)("design:paramtypes",[String]),(0,s.__metadata)("design:returntype",void 0)],h.prototype,"setCountryCode",null),(0,s.__decorate)([u.action.bound,(0,s.__metadata)("design:type",Function),(0,s.__metadata)("design:paramtypes",[String]),(0,s.__metadata)("design:returntype",void 0)],h.prototype,"setRegionCode",null),(0,s.__decorate)([u.action.bound,(0,s.__metadata)("design:type",Object)],h.prototype,"setPostalCode",void 0),(0,s.__decorate)([u.computed,(0,s.__metadata)("design:type",Object),(0,s.__metadata)("design:paramtypes",[])],h.prototype,"isPostalCodeValid",null),(0,s.__decorate)([u.computed,(0,s.__metadata)("design:type",Object),(0,s.__metadata)("design:paramtypes",[])],h.prototype,"isPostalCodeInvalid",null),(0,s.__decorate)([u.computed,(0,s.__metadata)("design:type",Object),(0,s.__metadata)("design:paramtypes",[])],h.prototype,"details",null),(0,s.__decorate)([u.computed,(0,s.__metadata)("design:type",Object),(0,s.__metadata)("design:paramtypes",[])],h.prototype,"isValid",null),t.BillingAddressService=h},72153:function(e,t,n){"use strict";var r=n(94534).default;Object.defineProperty(t,"__esModule",{value:!0}),t.createCountriesList=t.countriesWherePaypalIsNotDefaultCodeList=t.topPaymentCountryCodeList=void 0;var i=n(14820);t.topPaymentCountryCodeList=["AU","BR","CA","CN","DE","HK","IN","JP","NZ","SA","SG","ZA","KR","AE","GB","US"],t.countriesWherePaypalIsNotDefaultCodeList=["BY","AM","UA","MM","CI","TR","AQ","AF","CU","BV","IO","CM","CF","CX","GQ","HT","HM","IR","IQ","KP","LA","LB","LR","LY","NG","PK","PG","RS","ME","SD","SY","ZW"];t.createCountriesList=function(e){return Object.entries(e).map((function(e){var t=r(e,2);return{code:t[0],name:t[1].name}})).sort(i.sortCountriesAlphabetically)}},60898:function(e,t,n){"use strict";var r=n(48485).default;Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentsCountryCode=t.usePaymentCountryCode=void 0;var i=n(72791),o=n(9093),a=n(72153),s=n(36004);t.usePaymentCountryCode=function(){var e=(0,s.useBillingAddress)(),t=e.setCountryCode,n=e.countryCode,o=e.countries,u=e.getCountryConfiguration,c=(0,i.useCallback)((function(e){return t(e)}),[t]);return{countryCode:n,countryOptions:"success"===o.status?function(e,t){var n=a.topPaymentCountryCodeList.map((function(e){return{value:e,label:t(e).name}})),i=e.map((function(e){return{value:e.code,label:e.name}})),o={value:"",label:"----------",disabled:!0};return[o].concat(r(n),[o],r(i)).map((function(e,t){return Object.assign(Object.assign({},e),{key:"".concat(e.value,"-").concat(t)})}))}(o.list,u):"error"===o.status?[{value:"error",label:"Failed to load countries configuration, please restart a page or try later"}]:[],onChange:c}},t.PaymentsCountryCode=(0,o.observer)((function(e){return(0,e.children)((0,t.usePaymentCountryCode)())}))},70440:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5259);(0,r.__exportStar)(n(25086),t),(0,r.__exportStar)(n(36004),t),(0,r.__exportStar)(n(60898),t),(0,r.__exportStar)(n(93146),t),(0,r.__exportStar)(n(99117),t)},93146:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentsPostalCode=t.usePaymentPostalCode=void 0;var r=n(72791),i=n(99023),o=n(57048),a=n(36004);t.usePaymentPostalCode=function(){var e=(0,a.useBillingAddress)(),t=e.countryCode,n=e.postalCode,i=e.setPostalCode,s=e.isPostalCodeRequired,u=e.isPostalCodeDisabled,c=e.isPostalCodeInvalid,M=(0,r.useCallback)((function(e){return i(e.trim())}),[i]),m=s(t),l=u(t),d=c?(0,o.isEmpty)(n.value)?"Required":"Invalid":void 0,h="US"===t?"ZIP Code":"Postal Code",f=l||m?"":"optional";return{postalCode:n.value,label:h,placeholder:f,isRequired:m,isDisabled:l,error:d,onChange:M}},t.PaymentsPostalCode=(0,i.observer)((function(e){return(0,e.children)((0,t.usePaymentPostalCode)())}))},99117:function(e,t,n){"use strict";var r=n(48485).default,i=n(94534).default;Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentsRegionCode=t.usePaymentRegionCode=void 0;var o=n(72791),a=n(99023),s=n(5329),u=n(36004);function c(e){var t=e.regions,n=Object.entries(t).map((function(e){var t=i(e,2);return[t[0],t[1].name]})).sort(m).map((function(e){var t=i(e,2);return{value:t[0],label:t[1]}}));return[{value:"",label:"----------",disabled:!0}].concat(r(n))}t.usePaymentRegionCode=function(){var e=(0,u.useBillingAddress)(),t=e.setRegionCode,n=e.countryCode,r=e.regionCode,i=e.isRegionCodeValid,a=e.shouldShowRegionCodeValidation,m=e.getCountryConfiguration,l=(0,o.useCallback)((function(e){return t(e)}),[t]),d=m(n),h=a&&!i?"Required":void 0;return{shouldShowRegionCode:(0,s.isRegionCodeRequiredCountryConfiguration)(d),regionCode:r,regionOptions:(0,s.isRegionCodeRequiredCountryConfiguration)(d)?c(d):[],label:M(n),error:h,onChange:l}},t.PaymentsRegionCode=(0,a.observer)((function(e){var n=e.children,r=(0,t.usePaymentRegionCode)();return r.shouldShowRegionCode?n(r):null}));var M=function(e){switch(e){case"CA":return"Province";case"IN":default:return"State"}},m=function(e,t){var n=i(e,2),r=(n[0],n[1]),o=i(t,2),a=(o[0],o[1]);return r.localeCompare(a)}},62436:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5259);!function(){var e=n.g;e.IS_DEV=!1,e.IS_CLIENT_SIDE=!1,e.GIT_BRANCH="",e.GIT_COMMIT="",e.BUILD_TAG=""}(),(0,r.__exportStar)(n(70440),t),(0,r.__exportStar)(n(42150),t),(0,r.__exportStar)(n(48943),t),(0,r.__exportStar)(n(1e3),t),(0,r.__exportStar)(n(35654),t),(0,r.__exportStar)(n(31091),t),(0,r.__exportStar)(n(42602),t),(0,r.__exportStar)(n(61132),t),(0,r.__exportStar)(n(59083),t)},1e3:function(e,t,n){"use strict";var r=n(94534).default;Object.defineProperty(t,"__esModule",{value:!0}),t.InvoiceConfirm=void 0;var i=(0,n(5259).__importDefault)(n(72791)),o=n(99023),a=n(35654);t.InvoiceConfirm=(0,o.observer)((function(e){var t=e.viewModel,n=e.confirmText,o=e.Button,s=e.H5Text,u=e.SmallText,c=e.Spacer;return t.submittedDraft?i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{style:{display:"flex",flexFlow:"row nowwrap"}},i.default.createElement("span",{style:{alignSelf:"center",marginRight:"8px"}},i.default.createElement(s,null,"Billing Details")),i.default.createElement(o,{color:a.ButtonColor.BlueInvertedWhiteBg,text:"EDIT",onClick:function(){return t.setConfirmView(!1)}})),Object.entries(t.submittedDraft).map((function(e){var t=r(e,2),n=t[0],o=t[1];return i.default.createElement("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-start",marginBottom:"8px"},key:n},i.default.createElement("span",{style:{color:"#8189A9",fontSize:"14px",lineHeight:"21px",fontFamily:"Inter",width:"200px"}},a.StripeInvoiceFields.get(n)),i.default.createElement("span",{style:{color:"#2B2D38",maxWidth:"200px",wordBreak:"break-all",fontSize:"14px",lineHeight:"21px",fontFamily:"Inter",marginLeft:"1rem",width:"150px"}},o))})),i.default.createElement(c,null),i.default.createElement(o,{color:a.ButtonColor.Green,status:t.isConfirmLoading?a.ButtonStatus.Loading:a.ButtonStatus.Active,text:"Confirm",onClick:t.sendInvoicePayLater,widthPercent:100,qa:"confirmDetails"}),i.default.createElement(c,null),n&&i.default.createElement(u,null,n)):null}))},83984:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentsCountryCodeField=void 0;var r=(0,n(5259).__importDefault)(n(72791)),i=n(70440);t.PaymentsCountryCodeField=function(e){var t=e.CountryCodeDropdown,n=e.className,o=(0,i.usePaymentCountryCode)(),a=o.countryOptions,s=o.countryCode,u=o.onChange;return r.default.createElement(t,{value:s,options:a,handleChange:u,name:"country",id:"selectInvoiceCountry",label:"Country/Region *",placeholder:"Select",qa:"country",className:n})}},44139:function(e,t,n){"use strict";var r=n(84322);Object.defineProperty(t,"__esModule",{value:!0}),t.InvoiceFieldsView=void 0;var i=n(5259),o=(0,i.__importStar)(n(72791)),a=n(83984),s=n(54091),u=n(76176);t.InvoiceFieldsView=function(e){var t=e.fields,n=e.showFields,r=(0,i.__rest)(e,["fields","showFields"]);return n?o.default.createElement(o.default.Fragment,null,t.map((function(e){return o.default.createElement(c,Object.assign({key:e.name,field:e},r))}))):null};var c=function(e){var t=e.field,n=e.updateFormField,c=e.formErrors,M=e.formValues,m=e.clientFormErrors,l=e.updateFormFieldValidation,d=e.Input,h=e.InvoiceDropdown,f=(0,o.useCallback)((function(e){return n(t.name,e)}),[t.name,n]),p=M[t.name],y=m[t.name]||(null===c||void 0===c?void 0:c[t.name]),g={onChange:f,label:t.label,"aria-label":t.label,value:p,error:y,onBlur:function(){return(0,i.__awaiter)(void 0,void 0,void 0,r.mark((function e(){var n,i;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=null===t||void 0===t?void 0:t.validator)||void 0===n?void 0:n.validate(null!==p&&void 0!==p?p:"");case 2:(i=e.sent)&&l(t.name,i.message);case 4:case"end":return e.stop()}}),e)})))},placeholder:t.placeholder};return"country"===t.type?o.default.createElement(a.PaymentsCountryCodeField,{CountryCodeDropdown:h}):"state"===t.type?o.default.createElement(s.PaymentsRegionCodeField,{RegionDropdown:h,Input:d,field:t,inputProps:g}):"postalCode"===t.type?o.default.createElement(u.PostalCode,{Input:d,field:t,inputProps:g}):o.default.createElement(d,Object.assign({},g,{qa:t.name,type:"textbox"}))}},76176:function(e,t,n){"use strict";var r=n(84322);Object.defineProperty(t,"__esModule",{value:!0}),t.PostalCode=void 0;var i=n(5259),o=(0,i.__importDefault)(n(72791)),a=n(99023),s=n(70440);t.PostalCode=(0,a.observer)((function(e){var t=e.Input,n=e.field,a=e.inputProps,u=(0,s.useBillingAddress)(),c=u.postalCode,M=u.setPostalCode,m=u.isPostalCodeValid,l=u.invalidatePostalCode,d=(!m&&c.value.length>0?"Postal code invalid":"")||a.error;return o.default.createElement(t,{onChange:M,label:n.label,value:c.value,error:d,onBlur:function(e){return(0,i.__awaiter)(void 0,void 0,void 0,r.mark((function t(){var n;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(n=null===a||void 0===a?void 0:a.onBlur)||void 0===n||n.call(a,e),t.next=3,l();case 3:case"end":return t.stop()}}),t)})))},placeholder:n.placeholder,qa:n.name})}))},54091:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentsRegionCodeField=void 0;var r=(0,n(5259).__importDefault)(n(72791)),i=n(99023),o=n(99117);t.PaymentsRegionCodeField=(0,i.observer)((function(e){var t=e.RegionDropdown,n=e.Input,i=e.field,a=e.inputProps,s=(0,o.usePaymentRegionCode)(),u=s.shouldShowRegionCode,c=s.regionOptions,M=s.label,m=s.onChange,l=s.regionCode;return u?r.default.createElement(t,{id:"selectRegionCode",placeholder:"Select",qa:"regionCode",name:"regionCode",label:M,value:l,options:c,handleChange:m,forcedError:a.error}):r.default.createElement(n,Object.assign({},a,{qa:i.name}))}))},31091:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48943:function(e,t,n){"use strict";var r=n(84322),i=n(94534).default,o=n(38181).default;Object.defineProperty(t,"__esModule",{value:!0}),t.InvoiceForm=t.emptyDraft=void 0;var a=n(5259),s=(0,a.__importStar)(n(72791)),u=n(99023),c=n(65685),M=n(70440),m=n(28484),l=n(44139),d=n(65049),h=n(76267),f=n(35654);t.emptyDraft=Array.from(f.StripeInvoiceFields.keys()).reduce((function(e,t){return Object.assign(Object.assign({},e),o({},t,""))}),{}),t.InvoiceForm=(0,u.observer)((function(e){var n,u=e.viewModel,p=e.invoiceFields,y=e.SubmitButton,g=e.Input,E=e.Spacer,v=e.Checkbox,b=e.Button,w=e.InvoiceDropdown,S=e.invoiceTracking,C=(0,s.useState)((function(){var e,n;return null!==(e=u.submittedDraft)&&void 0!==e?e:Object.assign(Object.assign({},t.emptyDraft),{companyName:null!==(n=(0,c.getLocalStorageItem)(c.LocalStorageKey.questionnaireCompanyName))&&void 0!==n?n:""})})),A=i(C,2),_=A[0],H=A[1],k=p.fields,P=p.shippingFields,N=p.poField,T=u.showPOField,R=u.shippingSameAsBilling,B=u.billingAddressService,D=u.shippingAddressService,F=(0,d.combineFormData)(_,B,D),I=(0,s.useState)({}),x=i(I,2),O=x[0],L=x[1],j=(0,s.useCallback)((function(e,t){H((function(n){return Object.assign(Object.assign({},n),o({},e,t))}))}),[]),z=function(e,t){L((function(n){var r=n,i=e,s=(r[i],(0,a.__rest)(r,["symbol"===typeof i?i:i+""]));return t?Object.assign(Object.assign({},s),o({},e,t)):s}))},Q=T&&!(null===(n=F.purchaseOrder)||void 0===n?void 0:n.length)?f.ButtonStatus.Disabled:u.isSubmitDraftLoading?f.ButtonStatus.Loading:f.ButtonStatus.Active;return s.default.createElement("form",{key:"invoiceForm",noValidate:!0,onSubmit:function(e){return(0,a.__awaiter)(void 0,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),S.createInvoice(),t.next=4,(0,m.validateFormData)(p,u,F,z);case 4:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,u.submitDraft(F);case 8:case"end":return t.stop()}}),t)})))}},function(){var e={updateFormField:j,clientFormErrors:O,updateFormFieldValidation:z,formValues:F,formErrors:u.formErrors,Input:g,InvoiceDropdown:w};return s.default.createElement(s.default.Fragment,null,s.default.createElement(M.BillingAddressProvider,{billingAddressService:B},s.default.createElement(l.InvoiceFieldsView,Object.assign({key:"general",fields:k,showFields:!0},e))),s.default.createElement(h.ShippingSameAsBilling,{viewModel:u,Spacer:E,Checkbox:v}),s.default.createElement(M.BillingAddressProvider,{billingAddressService:D},s.default.createElement(l.InvoiceFieldsView,Object.assign({key:"billing",fields:P,showFields:!R},e))),s.default.createElement(h.POCheckbox,{viewModel:u,getForm:function(){return F},Spacer:E,Checkbox:v,Button:b}),s.default.createElement(l.InvoiceFieldsView,Object.assign({key:"po",fields:N,showFields:T},e)))}(),s.default.createElement(y,{widthPercent:100,qa:"invoiceSubmit",text:"Continue",status:Q,submit:!0}))}))},76267:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.POCheckbox=t.ShippingSameAsBilling=void 0;var r=(0,n(5259).__importDefault)(n(72791)),i=n(99023),o=n(35654);t.ShippingSameAsBilling=(0,i.observer)((function(e){var t=e.viewModel,n=e.Checkbox,i=e.Spacer;return r.default.createElement("div",null,r.default.createElement(n,{label:"Shipping address is the same as the billing address",onChange:t.setShippingSameAsBilling,selected:t.shippingSameAsBilling,value:"shippingSameAsBilling"}),r.default.createElement(i,null))})),t.POCheckbox=(0,i.observer)((function(e){var t=e.viewModel,n=e.getForm,i=e.Checkbox,a=e.Button,s=e.Spacer;return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center"}},r.default.createElement(i,{label:"Include a purchase order number",onChange:t.setShowPOField,selected:t.showPOField,value:"includePurchaseOrder"}),t.showPOField&&r.default.createElement(a,{color:o.ButtonColor.BlueInvertedWhiteBg,text:"Get a quote",onClick:function(){return t.getQuote(n())}})),t.isQuoteError&&t.showPOField&&r.default.createElement("span",{style:{color:"#CE1331"}},"Please fill out email and company name for a quote"),r.default.createElement(s,null))}))},65049:function(e,t,n){"use strict";var r=n(94534).default;Object.defineProperty(t,"__esModule",{value:!0}),t.setInitialBillingServiceValues=t.combineFormData=void 0;var i=n(5329),o=function(e,t){return[(0,i.isRegionCodeRequiredCountryConfiguration)(e.getCountryConfiguration(e.countryCode)),(0,i.isRegionCodeRequiredCountryConfiguration)(t.getCountryConfiguration(t.countryCode))]};t.combineFormData=function(e,t,n){var i=o(t,n),a=r(i,2),s=a[0],u=a[1];return Object.assign(Object.assign(Object.assign(Object.assign({},e),{shippingAddressPostalCode:n.postalCode.value,shippingAddressCountry:n.countryCode,billingAddressPostalCode:t.postalCode.value,billingAddressCountry:t.countryCode}),s?{billingAddressState:t.regionCode}:{}),u?{shippingAddressState:n.regionCode}:{})};t.setInitialBillingServiceValues=function(e,t,n){t.setCountryCode(e.billingAddressCountry),n.setCountryCode(e.shippingAddressCountry),t.setPostalCode(e.billingAddressPostalCode),n.setPostalCode(e.shippingAddressPostalCode);var i=o(t,n),a=r(i,2),s=a[0];a[1]&&n.setRegionCode(e.shippingAddressState),s&&t.setRegionCode(e.billingAddressState)}},28484:function(e,t,n){"use strict";var r=n(84322);Object.defineProperty(t,"__esModule",{value:!0}),t.validateFormData=void 0;var i=n(5259);t.validateFormData=function(e,t,n,o){return(0,i.__awaiter)(void 0,void 0,void 0,r.mark((function a(){var s;return r.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=e.getActiveInputs(!t.shippingSameAsBilling,t.showPOField),a.next=3,s.reduce((function(e,t){return(0,i.__awaiter)(void 0,void 0,void 0,r.mark((function i(){var a,s,u,c,M,m,l;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e;case 2:return c=r.sent,r.next=5,null===(a=null===t||void 0===t?void 0:t.validator)||void 0===a?void 0:a.validate(null!==(s=n[t.name])&&void 0!==s?s:"");case 5:if(r.t1=u=r.sent,r.t0=null!==r.t1,!r.t0){r.next=9;break}r.t0=void 0!==u;case 9:if(!r.t0){r.next=13;break}r.t2=u,r.next=14;break;case 13:r.t2={valid:!0,message:""};case 14:return M=r.t2,m=M.valid,l=M.message,m&&o(t.name,null),!m&&l&&o(t.name,l),r.abrupt("return",c&&m);case 20:case"end":return r.stop()}}),i)})))}),Promise.resolve(!0));case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),a)})))}},42602:function(e,t,n){"use strict";var r=n(48485).default,i=n(48064).default,o=n(18231).default;Object.defineProperty(t,"__esModule",{value:!0}),t.InvoiceFormFields=t.notEmptyValidator=t.validatorFactory=void 0;var a=n(57048),s=n(32145),u=n(35654);function c(e){return new(function(){function t(){i(this,t)}return o(t,[{key:"validate",value:function(t){return e(t)}}]),t}())}t.validatorFactory=c,t.notEmptyValidator=c((function(e){return(0,a.isEmpty)(e)?{valid:!1,message:u.validationStateMessages.empty}:{valid:!0}}));var M=function(){function e(t,n){i(this,e),this.billingAddressService=t,this.shippingAddressService=n}return o(e,[{key:"companyName",get:function(){return{label:"Company Name *",name:"companyName",maxLength:256,placeholder:"Acme Co",type:"text",validator:t.notEmptyValidator}}},{key:"billingContactName",get:function(){return{label:"Billing Contact *",name:"billingContactName",maxLength:256,placeholder:"Name",type:"text",validator:t.notEmptyValidator}}},{key:"billingContactEmail",get:function(){return{label:"Billing Email *",name:"billingContactEmail",maxLength:256,placeholder:"Email",type:"text",validator:t.notEmptyValidator}}},{key:"billingContactPhone",get:function(){return{label:"Billing Phone",name:"billingContactPhone",maxLength:256,placeholder:"Phone",type:"number"}}},{key:"billingAddressCity",get:function(){return{label:"City *",name:"billingAddressCity",maxLength:256,placeholder:"City",type:"text",validator:t.notEmptyValidator}}},{key:"shippingAddressCity",get:function(){return{label:"City *",name:"shippingAddressCity",maxLength:256,placeholder:"City",type:"text",validator:t.notEmptyValidator}}},{key:"billingAddressLine1",get:function(){return{label:"Billing Address Line 1 *",name:"billingAddressLine1",maxLength:256,placeholder:"Street address, apartment, suite, floor, etc.",type:"text",validator:t.notEmptyValidator}}},{key:"billingAddressLine2",get:function(){return{label:"Billing Address Line 2",name:"billingAddressLine2",maxLength:256,placeholder:"Street address, apartment, suite, floor, etc.",type:"text"}}},{key:"shippingAddressLine1",get:function(){return{label:"Shipping Address Line 1 *",name:"shippingAddressLine1",maxLength:256,placeholder:"Street address, apartment, suite, floor, etc.",type:"text",validator:t.notEmptyValidator}}},{key:"shippingAddressLine2",get:function(){return{label:"Shipping Address Line 2",name:"shippingAddressLine2",maxLength:256,placeholder:"Street address, apartment, suite, floor, etc.",type:"text"}}},{key:"billingAddressCountry",get:function(){return{label:"Country/Region *",name:"billingAddressCountry",maxLength:256,placeholder:"Country/Region",type:"country",validator:t.notEmptyValidator}}},{key:"shippingAddressCountry",get:function(){return{label:"Country/Region *",name:"shippingAddressCountry",maxLength:256,placeholder:"Country/Region",type:"country",validator:t.notEmptyValidator}}},{key:"billingAddressPostalCode",get:function(){return{label:"Zip/Postal Code *",name:"billingAddressPostalCode",maxLength:256,placeholder:"Postal Code",type:"postalCode",validator:(0,s.postalCodeValidator)(this.billingAddressService)}}},{key:"shippingAddressPostalCode",get:function(){return{label:"Zip/Postal Code *",name:"shippingAddressPostalCode",maxLength:256,placeholder:"Postal Code",type:"postalCode",validator:(0,s.postalCodeValidator)(this.shippingAddressService)}}},{key:"billingAddressState",get:function(){return{label:"State",name:"billingAddressState",maxLength:256,placeholder:"State",type:"state",validator:(0,s.stateValidator)(this.billingAddressService)}}},{key:"shippingAddressState",get:function(){return{label:"State",name:"shippingAddressState",maxLength:256,placeholder:"State",type:"state",validator:(0,s.stateValidator)(this.shippingAddressService)}}},{key:"customerTaxIdValue",get:function(){return{label:"Customer Tax ID",name:"customerTaxIdValue",maxLength:256,placeholder:"Tax ID",type:"number"}}},{key:"purchaseOrder",get:function(){return{label:"PO Number",name:"purchaseOrder",maxLength:256,placeholder:"PO #",type:"text",validator:t.notEmptyValidator}}},{key:"fields",get:function(){var e=[this.billingAddressLine1,this.billingAddressLine2,this.billingAddressCity,this.billingAddressCountry,this.billingAddressState,this.billingAddressPostalCode];return[this.companyName,this.billingContactName,this.billingContactEmail,this.billingContactPhone,this.customerTaxIdValue].concat(e)}},{key:"shippingFields",get:function(){return[this.shippingAddressLine1,this.shippingAddressLine2,this.shippingAddressCity,this.shippingAddressCountry,this.shippingAddressState,this.shippingAddressPostalCode]}},{key:"poField",get:function(){return[this.purchaseOrder]}},{key:"getActiveInputs",value:function(e,t){return[].concat(r(this.fields),r(e?this.shippingFields:[]),r(t?this.poField:[]))}}]),e}();t.InvoiceFormFields=M,M.create=function(e,t){return new M(e,t)}},87804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invoiceGenericError=void 0;var r=n(5259),i=(0,r.__importDefault)(n(72791)),o=(0,(0,r.__importDefault)(n(655)).default)();t.invoiceGenericError=i.default.createElement((function(){return i.default.createElement(i.default.Fragment,null,i.default.createElement("h3",null,"Something went wrong"),"To get help with this issue, please"," ",i.default.createElement("a",{href:o.support.urls.newRequestHelpForm,style:{textDecoration:"underline",color:"#99C2FF"},target:"_blank",rel:"noopener noreferrer"},"contact our Support team"),".")}),null)},35654:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validationStateMessages=t.ButtonColor=t.ButtonStatus=t.StripeInvoiceFields=void 0,t.StripeInvoiceFields=new Map([["billingAddressCity","Billing Address City"],["billingAddressCountry","Billing Address Country"],["billingAddressLine1","Billing Address Line 1"],["billingAddressLine2","Billing Address Line 2"],["billingAddressPostalCode","Billing Address Postal Code"],["billingAddressState","Billing Address State"],["billingContactEmail","Billing Contact Email"],["billingContactName","Billing Contact Name"],["billingContactPhone","Billing Contact Phone"],["companyName","Company Name"],["customerTaxIdType","Customer Tax Id Type"],["customerTaxIdValue","Customer Tax ID Value"],["purchaseOrder","Purchase Order"],["shippingAddressCity","Shipping Address City"],["shippingAddressCountry","Shipping Address Country"],["shippingAddressLine1","Shipping Address Line 1"],["shippingAddressLine2","Shipping Address Line 2"],["shippingAddressPostalCode","Shipping Address Postal Code"],["shippingAddressState","Shipping Address State"]]),function(e){e.Active="Active",e.Disabled="Disabled",e.Loading="Loading"}(t.ButtonStatus||(t.ButtonStatus={})),function(e){e.Green="Green",e.GreenInvertedGrayBg="GreenInvertedGrayBg",e.GreenInvertedWhiteBg="GreenInvertedWhiteBg",e.Yellow="Yellow",e.YellowInvertedGrayBg="YellowInvertedGrayBg",e.YellowInvertedWhiteBg="YellowInvertedWhiteBg",e.Blue="Blue",e.BlueInvertedGrayBg="BlueInvertedGrayBg",e.BlueInvertedWhiteBg="BlueInvertedWhiteBg"}(t.ButtonColor||(t.ButtonColor={})),t.validationStateMessages={empty:"Required"}},32145:function(e,t,n){"use strict";var r=n(84322),i=n(48064).default,o=n(18231).default;Object.defineProperty(t,"__esModule",{value:!0}),t.stateValidator=t.postalCodeValidator=void 0;var a=n(5259),s=n(5329),u=n(42602),c=function(){function e(t){i(this,e),this.billingAddressService=t}return o(e,[{key:"validate",value:function(e){return(0,a.__awaiter)(this,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.length){t.next=2;break}return t.abrupt("return",u.notEmptyValidator.validate(e));case 2:return this.billingAddressService.setPostalCode(e),t.next=5,this.billingAddressService.invalidatePostalCode();case 5:return t.abrupt("return",{valid:this.billingAddressService.isPostalCodeValid,message:this.billingAddressService.isPostalCodeValid?"":"Postal code invalid"});case 6:case"end":return t.stop()}}),t,this)})))}}]),e}();t.postalCodeValidator=function(e){return new c(e)};var M=function(){function e(t){i(this,e),this.addressService=t}return o(e,[{key:"validate",value:function(e){return(0,s.isRegionCodeRequiredCountryConfiguration)(this.addressService.getCountryConfiguration(this.addressService.countryCode))?u.notEmptyValidator.validate(e):{valid:!0}}}]),e}();t.stateValidator=function(e){return new M(e)}},61132:function(e,t,n){"use strict";var r="/index.js",i=n(94534).default,o=n(38181).default,a=n(84322),s=n(48064).default,u=n(18231).default;Object.defineProperty(t,"__esModule",{value:!0}),t.InvoiceViewModel=void 0;var c=n(5259),M=n(84894),m=n(29295),l=n(90951),d=n(59577),h=n(57266),f=n(65685),p=n(65049),y=n(70440),g=n(42150),E=n(87804),v=function(){function e(t,n,i,u,M,d,g,v){var b=this;s(this,e),this.api=t,this.handleError=n,this.user=i,this.context=u,this.onInvoiceSendSuccess=M,this.logo=d,this.tracking=g,this.formSubmitOverride=v,this.shippingSameAsBilling=!0,this.showPOField=!1,this.loaded=!1,this.isConfirmView=!1,this.isQuoteError=!1,this.isConfirmLoading=!1,this.isSubmitDraftLoading=!1,this.billingAddressService=new y.BillingAddressService(this.api),this.shippingAddressService=new y.BillingAddressService(this.api),this.load=function(){return(0,c.__awaiter)(b,void 0,void 0,a.mark((function e(){var t;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.billingAddressService.loadCountryConfiguration();case 2:return e.next=4,this.shippingAddressService.loadCountryConfiguration();case 4:return e.next=6,this.api.getInvoiceDraft();case 6:t=e.sent,m.ObjectUtils.isEmptyObject(t)||(this.setDraft(t),(0,p.setInitialBillingServiceValues)(t,this.billingAddressService,this.shippingAddressService)),this.setLoaded(!0);case 9:case"end":return e.stop()}}),e,this)})))},this.setDraft=function(e){return b.submittedDraft=e},this.setLoaded=function(e){return b.loaded=e},this.setConfirmView=function(e){return b.isConfirmView=e},this.setShippingSameAsBilling=function(e){return b.shippingSameAsBilling=e},this.setShowPOField=function(e){return b.showPOField=e},this.submitDraft=function(t){return(0,c.__awaiter)(b,void 0,void 0,a.mark((function n(){var r,i;return a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=this.enrichInvoiceDataIfSameShipping(t),i=e.removeEmptyFormValues(r),this.isSubmitDraftLoading=!0,n.prev=3,n.next=6,this.api.sendInvoiceDraft(i);case 6:this.setDraft(i),this.setConfirmView(!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),this.handleSubmitDraftError(n.t0);case 13:return n.prev=13,this.isSubmitDraftLoading=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,this,[[3,10,13,16]])})))},this.enrichInvoiceDataIfSameShipping=function(e){return b.shippingSameAsBilling?Object.assign(Object.assign({},e),{shippingAddressLine1:e.billingAddressLine1,shippingAddressLine2:e.billingAddressLine2,shippingAddressCountry:e.billingAddressCountry,shippingAddressState:e.billingAddressState,shippingAddressCity:e.billingAddressCity,shippingAddressPostalCode:e.billingAddressPostalCode}):e},this.handleSubmitDraftError=function(e){if(400!==e.code)return(0,l.logError)("Error submitting draft for invoice",r,"invoiceErrors",void 0,void 0,e),b.handleError(E.invoiceGenericError);var t=(0,h.getServerErrorData)(e);b.formErrors=t.errors.reduce((function(e,t){return Object.assign(Object.assign({},e),o({},t.property,t.violation))}),{})},this.sendInvoicePayLater=function(){return(0,c.__awaiter)(b,void 0,void 0,a.mark((function e(){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isConfirmLoading=!0,this.tracking.confirmInvoice(),e.prev=2,!this.formSubmitOverride){e.next=8;break}return e.next=6,this.formSubmitOverride();case 6:e.next=10;break;case 8:return e.next=10,this.sendInvoice();case 10:this.onInvoiceSendSuccess(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),this.handleSendInvoiceError(e.t0);case 16:return e.prev=16,this.isConfirmLoading=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[2,13,16,19]])})))},this.sendInvoice=function(){return(0,c.__awaiter)(b,void 0,void 0,a.mark((function e(){var t;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.api.sendInvoice({numberOfSeats:this.context.volume,planId:this.context.selectedPlan.id,institutionName:(null===(t=this.submittedDraft)||void 0===t?void 0:t.companyName)||(0,f.getLocalStorageItem)(f.LocalStorageKey.organizationName)||"Organization Name"});case 2:case"end":return e.stop()}}),e,this)})))},this.handleSendInvoiceError=function(e){(0,l.logError)("Error submitting invoice",r,"invoiceErrors",void 0,void 0,e),b.handleError(E.invoiceGenericError)}}return u(e,[{key:"isLoaded",get:function(){return this.loaded}},{key:"getQuote",value:function(e){this.tracking.getInvoiceQuote(),this.isQuoteError=!1,e.companyName&&e.billingContactEmail?(0,g.downloadQuote)({pageId:"upgradeBusiness",name:this.user.name,email:e.billingContactEmail,companyName:e.companyName,context:this.context,logo:this.logo},d.noop):this.isQuoteError=!0}}]),e}();v.removeEmptyFormValues=function(e){return Object.entries(e).filter((function(e){var t=i(e,2),n=(t[0],t[1]);return n&&n.length>0})).reduce((function(e,t){var n=i(t,2),r=n[0],a=n[1];return Object.assign(Object.assign({},e),o({},r,a))}),{})},(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"shippingSameAsBilling",void 0),(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"showPOField",void 0),(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"submittedDraft",void 0),(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"loaded",void 0),(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"isConfirmView",void 0),(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"formErrors",void 0),(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"isQuoteError",void 0),(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"isConfirmLoading",void 0),(0,c.__decorate)([M.observable,(0,c.__metadata)("design:type",Object)],v.prototype,"isSubmitDraftLoading",void 0),(0,c.__decorate)([M.action,(0,c.__metadata)("design:type",Object)],v.prototype,"setDraft",void 0),(0,c.__decorate)([M.action,(0,c.__metadata)("design:type",Object)],v.prototype,"setLoaded",void 0),(0,c.__decorate)([M.action,(0,c.__metadata)("design:type",Object)],v.prototype,"setConfirmView",void 0),(0,c.__decorate)([M.action,(0,c.__metadata)("design:type",Object)],v.prototype,"setShippingSameAsBilling",void 0),(0,c.__decorate)([M.action,(0,c.__metadata)("design:type",Object)],v.prototype,"setShowPOField",void 0),(0,c.__decorate)([M.computed,(0,c.__metadata)("design:type",Boolean),(0,c.__metadata)("design:paramtypes",[])],v.prototype,"isLoaded",null),(0,c.__decorate)([M.action,(0,c.__metadata)("design:type",Object)],v.prototype,"submitDraft",void 0),(0,c.__decorate)([M.action,(0,c.__metadata)("design:type",Object)],v.prototype,"sendInvoicePayLater",void 0),(0,c.__decorate)([M.action.bound,(0,c.__metadata)("design:type",Function),(0,c.__metadata)("design:paramtypes",[Object]),(0,c.__metadata)("design:returntype",void 0)],v.prototype,"getQuote",null),t.InvoiceViewModel=v},14910:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTrialSubscriptionApi=void 0;var r=n(15435),i=n(63088);t.createTrialSubscriptionApi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return(0,i.sendRequest)({})};return{subscribe:function(n){var o=r.RequestBuilder.post(e,"/subscription/subscribe").json(n);return(0,i.addApplicationRequestHeaders)(o).then((function(){return t().json(o)}))},changePlan:function(n){var o=r.RequestBuilder.post(e,"/subscription/change-plan").json(n);return(0,i.addApplicationRequestHeaders)(o).then((function(){return t().empty(o)}))}}}},93759:function(e,t,n){"use strict";var r=n(38181).default,i=n(94534).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTrialPlans=void 0;var o=n(46785),a=n(57048),s=n(62507),u={prod:{rollout:[{month:1,id:10201543,price:{value:30,currency:"USD"}},{month:3,id:10201542,price:{value:60,currency:"USD"}},{month:12,id:10201541,price:{value:144,currency:"USD"}}]},preprod:{rollout:[{month:1,id:10201115,price:{value:30,currency:"USD"}},{month:3,id:10201114,price:{value:60,currency:"USD"}},{month:12,id:10201113,price:{value:144,currency:"USD"}}]},qa:{rollout:[{month:1,id:10201183,price:{value:30,currency:"USD"}},{month:3,id:10201182,price:{value:60,currency:"USD"}},{month:12,id:10201181,price:{value:144,currency:"USD"}}]}};t.getTrialPlans=function(e,t){var n=c(t);return Object.entries(u[e]).map((function(e){var t=i(e,2);return{version:t[0],plans:t[1].map(n)}})).reduce((function(e,t){var n=t.version,i=t.plans;return Object.assign(Object.assign({},e),r({},n,i))}),{})};var c=function(e){return function(t){var n,r=t.id,i=t.month,u=t.price,c=null!==(n=e.find((function(e){return e.periodMonths===i})))&&void 0!==n?n:function(e){return{periodMonths:e,title:(0,a.capitalize)((0,o.getPlanPeriod)(e)),description:(0,a.capitalize)((0,o.getPlanPeriod)(e)),price:0,priceMoney:s.emptyMoney,regularPrice:0,regularPriceMoney:s.emptyMoney}}(i);return Object.assign(Object.assign({},c),{id:r,priceMoney:u,price:u.value,regularPlanId:r,regularPriceMoney:u,regularPrice:u.value,renewalPlanId:r,renewalPriceMoney:u,renewalPrice:u.value,trialDays:7,hasTrial:!0})}}},59083:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5259);(0,r.__exportStar)(n(14910),t),(0,r.__exportStar)(n(93759),t)},42150:function(e,t,n){"use strict";var r=n(94534).default;Object.defineProperty(t,"__esModule",{value:!0}),t.downloadQuote=void 0;var i=n(5259),o=(0,i.__importDefault)(n(72791));t.downloadQuote=function(e,t){var a=e.context,s=a.volume,u=a.selectedPlan;Promise.all([Promise.resolve().then((function(){return(0,i.__importStar)(n(73844))})),Promise.resolve().then((function(){return(0,i.__importStar)(n(86875))}))]).then((function(n){var i=r(n,2),a=i[0].QuotePDF;(0,i[1].downloadPDF)(o.default.createElement(a,{pageId:e.pageId,name:e.name,companyName:e.companyName,email:e.email,planName:u.isAnnual?"Annual":"Monthly",numberOfSeats:s,pricePerSeatPerBillingPeriod:u.pricePerMonthPerMember*u.periodMonths,logo:e.logo}),"Grammarly Business Quote").then((function(){window.setTimeout(t,1e3)}))}))}},73844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuotePDF=void 0;var r=(0,n(5259).__importStar)(n(72791)),i=n(44330),o=n(24659),a=n(79510),s=n(62507),u=n(33489),c=n(460),M=function(e){var t=e.children,n=e.style,o=void 0===n?{}:n;return r.default.createElement(i.View,{style:[c.styles.row,o]},t)},m=function(e){var t=e.afterText,n=void 0!==t&&t;return r.default.createElement(i.View,{style:n?c.styles.spacerAfterText:c.styles.spacer})},l=function(){return r.default.createElement(i.View,{style:c.styles.hr})},d=function(e){var t=e.children,n=e.style,o=void 0===n?{}:n;return r.default.createElement(i.Text,{style:[c.styles.label,o]},t)},h=function(e){var t=e.children,n=e.style,o=void 0===n?{}:n;return r.default.createElement(i.Text,{style:[c.styles.title,o]},t)};t.QuotePDF=r.default.memo((function(e){var t=e.pageId,n=e.name,f=e.companyName,p=e.email,y=e.planName,g=e.numberOfSeats,E=e.pricePerSeatPerBillingPeriod,v=e.logo,b=(0,o.v4)(),w=(0,a.fullDate)(Date.now()),S=(0,s.priceMoneyToString)({currency:"USD",value:E}),C=g*E,A=(0,s.priceMoneyToString)({currency:"USD",value:C});return(0,r.useEffect)((function(){u.gnarSpec.businessGetQuoteFormSuccess(f,p,p.split("@")[1],n,t,y,E,b,w,g,C)})),r.default.createElement(i.Document,{title:"Quote"},r.default.createElement(i.Page,{style:c.styles.page},r.default.createElement(i.Image,{style:c.styles.logo,src:v}),r.default.createElement(m,null),r.default.createElement(i.Text,null,"548 Market Street, Ste 35410"),r.default.createElement(i.Text,null,"San Francisco, CA 94104"),r.default.createElement(i.Text,null,"United States"),r.default.createElement(m,{afterText:!0}),r.default.createElement(l,null),r.default.createElement(m,null),r.default.createElement(h,null,"Quote Estimate"),r.default.createElement(M,null,r.default.createElement(d,null,"Quote ID:"),r.default.createElement(i.Text,null,b)),r.default.createElement(M,null,r.default.createElement(d,null,"Quote issue date:"),r.default.createElement(i.Text,null,w)),r.default.createElement(m,{afterText:!0}),r.default.createElement(h,null,"Quote for"),r.default.createElement(M,null,r.default.createElement(d,null,"Requester name:"),r.default.createElement(i.Text,null,n)),r.default.createElement(M,null,r.default.createElement(d,null,"Requester company name:"),r.default.createElement(i.Text,null,f)),r.default.createElement(M,null,r.default.createElement(d,null,"Requester email:"),r.default.createElement(i.Text,null,p)),r.default.createElement(m,{afterText:!0}),r.default.createElement(h,null,"Plan info"),r.default.createElement(M,null,r.default.createElement(d,null,"Item Name:"),r.default.createElement(i.Text,null,"Grammarly Business")),r.default.createElement(M,null,r.default.createElement(d,null,"Seats Qty:"),r.default.createElement(i.Text,null,g)),r.default.createElement(M,null,r.default.createElement(d,null,"Plan Length:"),r.default.createElement(i.Text,null,y)),r.default.createElement(M,null,r.default.createElement(d,null,"Price Per Seat (USD):"),r.default.createElement(i.Text,null,S)),r.default.createElement(M,null,r.default.createElement(d,null,"Total amount billed on checkout (USD):"),r.default.createElement(i.Text,null,A)),r.default.createElement(m,{afterText:!0}),r.default.createElement(l,null),r.default.createElement(m,null),r.default.createElement(i.View,{style:c.styles.block},r.default.createElement(h,{style:c.styles.blockTitle},"How to check out:"),r.default.createElement(i.Text,null,"Purchase your Grammarly Business subscription here:"," ",r.default.createElement(i.Link,{src:"https://gram.ly/GBquote"},"https://gram.ly/GBquote")),r.default.createElement(i.Text,null,"If you have any questions, please contact"," ",r.default.createElement(i.Link,{src:"https://support.grammarly.com/hc/en-us"},"support"),".")),r.default.createElement(m,null),r.default.createElement(i.View,null,r.default.createElement(i.Text,{style:c.styles.footerText},"This document is for informational purposes only. Because prices may change, the above quote is non-binding on Grammarly and we may change it upon sign-up. To see current prices, please visit"," ",r.default.createElement(i.Link,{src:"https://gram.ly/GBquote"},"https://gram.ly/GBquote"),"."))))}))},460:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.styles=void 0;var r=n(44330),i="#000";t.styles=r.StyleSheet.create({page:{padding:"50pt",paddingRight:"100pt",fontSize:"10pt",lineHeight:"2",color:i},spacer:{height:"36pt"},spacerAfterText:{height:"26pt"},hr:{borderBottom:"1pt solid #E4E6F2"},row:{display:"flex",flexDirection:"row"},logo:{width:"85.5pt",height:"22.5pt"},footerText:{fontSize:"8pt",lineHeight:"2",fontStyle:"oblique",color:"#333954"},label:{flexGrow:0,flexShrink:0,width:"45%",color:"#4D536E"},title:{fontSize:"12pt",color:"#4D536E"},block:{padding:"12pt",backgroundColor:"#E7E9F5"},blockTitle:{color:i}})},86875:function(e,t,n){"use strict";var r=n(84322);Object.defineProperty(t,"__esModule",{value:!0}),t.downloadPDF=void 0;var i=n(5259),o=n(44330),a=function(e,t){var n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),document.body.removeChild(r)};t.downloadPDF=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document";return(0,i.__awaiter)(void 0,void 0,void 0,r.mark((function n(){return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o.pdf)(e).toBlob().then((function(e){a(e,"".concat(t,".pdf"))}));case 2:case"end":return n.stop()}}),n)})))}},54629:function(e,t,n){"use strict";var r=n(84322);Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicationRequestHeaders=t.clientVersion=t.clientType=void 0;var i=n(5259),o=n(85601),a=n(33489);t.clientType="funnel",t.clientVersion=isNaN(parseInt(BUILD_TAG,10))?"1.0.906."+BUILD_TAG:BUILD_TAG;t.getApplicationRequestHeaders=function(){return(0,i.__awaiter)(void 0,void 0,void 0,r.mark((function e(){var n;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.gnar.getContainerId();case 2:return n=e.sent,e.abrupt("return",{"X-CSRF-Token":(0,o.getCookie)("csrf-token"),"X-Client-Type":t.clientType,"X-Client-Version":t.clientVersion,"X-Container-Id":n});case 4:case"end":return e.stop()}}),e)})))}},37137:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestBuilder=t.Request=t.HTTPError=t.RequestError=t.Ajax=void 0;var r,i=n(5259),o=n(65309),a=n(61542),s=n(1583),u=n(29295);!function(e){e.extend=function(e){return u.R.local((function(t){return(0,i.__assign)((0,i.__assign)({},t),{requestExtender:t.requestExtender?l.Extender.compose(e,t.requestExtender):e})}))};var t=function(e){function t(t,n){var r=e.call(this,t)||this;return r.message=t,r.details=n,r.name="ParseError",r}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Ajax response parsing error\n Message ".concat(this.message,"\n Details ").concat(a.failure(this.details))},t}(u.CustomError);e.ParseError=t,function(e){e.json="application/json",e.form="application/x-www-form-urlencoded",e.multipart="multipart/form-data",e.pdf="application/pdf",e.txt="text/plain",e.stream="application/octet-stream",e.vnd="application/vnd",e.zip="application/zip",e.any="*/*"}(e.MimeType||(e.MimeType={})),e.mapToHTTPErrorWithoutBody=function(t,n,r){return r.removeBody(),e.mapToHTTPError(t,n,r)},e.mapToHTTPError=function(e,t,n){return new M({request:n,code:t.status,status:t.statusText,url:t.url,body:e})}}(r=t.Ajax||(t.Ajax={}));var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.message=t,r.details=n,r.name="RequestError",r}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Request error\n Message: ".concat(this.message,"\n details: ").concat(this.details)},t.fromError=function(e,n){var r=new t(e,n.message);return r.stack=n.stack,r},t}(u.CustomError);t.RequestError=c;var M=function(e){function t(t){var n=t.code,r=t.status,i=t.url,o=t.message,a=t.body,s=t.request,u=e.call(this,Boolean(o)?o:Boolean(r||a)?r||a:"HTTPError")||this;return u.name="HTTPError",u.url=i,u.code=n,u.body=a,u.status=r,u.request=s,u}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"Response\n Message: ".concat(this.message,"\n Status: ").concat(this.status,"\n Code: ").concat(this.code,"\n Body: ").concat(this.body,"\n ").concat(void 0!==this.request?"\n"+this.request.toString():"Url: ".concat(this.url))},t}(u.CustomError);t.HTTPError=M;var m=function(){function e(e,t,n,r,i){this._url=e,this._method=t,this._headers=n,this._mime=r,this._body=i}return e.get=function(){for(var e=[],t=0;t0})),0).join("/");return e._normalize(r)},e._normalize=function(e){return e=(e=(e=e.replace(/:\//g,"://")).replace(/([^:\s])\/+/g,"$1/")).replace(/\/(\?|#)/g,"$1")},e.get=function(){for(var t=[],n=0;n0&&(this._url+="?"+this._queryParams),this._body instanceof URLSearchParams){if(Boolean(this._mime)&&this._mime!==r.MimeType.form)throw new Error("Only application/x-www-form-urlencoded can be used for form requests, don't specify it mandatory in mime() method");this._mime=r.MimeType.form}else if(this._body instanceof s&&Boolean(this._mime)&&this._mime!==r.MimeType.multipart)throw new Error("Only multipart/form-data can be used for multipart form data requests, don't specify it mandatory in mime() method");if(this._mime===r.MimeType.json&&Boolean(this._body)&&(this._body=JSON.stringify(this._body)),!Boolean(this._method))throw new Error("HTTP method was not set");if(this._method=this._method,this._method===m.Method.GET&&Boolean(this._body))throw new Error("Body is not supported for GET");if(Boolean(this._mime)&&(this._headers["Content-Type"]=this._mime),this._cookies.length>0){this._headers.Cookie=this._cookies.join("; ")}return new m(this._url,this._method,this._headers,Boolean(this._mime)?this._mime:null,this._body)},e}();t.RequestBuilder=l,function(e){!function(e){e.identity=function(e){return o.task.of(e)},e.compose=function(){for(var t=[],n=0;n0?r:void 0},e.diff=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return h.isEqual(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},e.invert=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),e=null!=e?e:{};var n=Object.keys(t).reduce((function(n,r){return t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n}),{});return Object.keys(e).reduce((function(n,r){return e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n}),n)},e.transform=function(e,t,n){if(void 0===n&&(n=!1),"object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}}(s||(s={}));var f,p=function(){function e(e){this.ops=e,this.index=0,this.offset=0}return e.prototype.hasNext=function(){return this.peekLength()<1/0},e.prototype.next=function(e){Boolean(e)||(e=1/0);var t=this.ops[this.index];if(null==t)return{retain:1/0};var n=this.offset,r=y(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i},e.prototype.peek=function(){return this.ops[this.index]},e.prototype.peekLength=function(){return null!=this.ops[this.index]?y(this.ops[this.index])-this.offset:1/0},e.prototype.peekType=function(){return null==this.ops[this.index]?"retain":"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert"},e.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e}();function y(e){return"number"===typeof e.delete?e.delete:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}!function(e){e.iterator=function(e){return new p(e)},e.length=y}(f||(f={}));var g,E,v,b,w=f,S=String.fromCharCode(0),C=function(){function e(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}return e.prototype.insert=function(e,t){var n={};return"string"===typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},e.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},e.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},e.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=h.structuredClone(e),"object"===typeof n){if("number"===typeof e.delete&&"number"===typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"===typeof n.delete&&null!=e.insert&&(t-=1,"object"!==typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(h.isEqual(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},e.prototype.chop=function(){var e=this.ops[this.ops.length-1];return null!=(null===e||void 0===e?void 0:e.retain)&&null==e.attributes&&this.ops.pop(),this},e.prototype.filter=function(e){return this.ops.filter(e)},e.prototype.forEach=function(e){this.ops.forEach(e)},e.prototype.map=function(e){return this.ops.map(e)},e.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},e.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},e.prototype.changeLength=function(){return this.reduce((function(e,t){return null!=t.insert?e+w.length(t):null!=t.delete?e-t.delete:e}),0)},e.prototype.length=function(){return this.reduce((function(e,t){return e+w.length(t)}),0)},e.prototype.slice=function(t,n){void 0===t&&(t=0),void 0===n&&(n=1/0);for(var r=[],i=w.iterator(this.ops),o=0;o0&&r.next(o.retain-a)}for(var u=new e(i);n.hasNext()||r.hasNext();)if("insert"===r.peekType())u.push(r.next());else if("delete"===n.peekType())u.push(n.next());else{var c=Math.min(n.peekLength(),r.peekLength()),M=n.next(c),m=r.next(c);if("number"===typeof m.retain){var l={};"number"===typeof M.retain?l.retain=c:l.insert=M.insert;var d=s.compose(M.attributes,m.attributes,"number"===typeof M.retain);if(d&&(l.attributes=d),u.push(l),!r.hasNext()&&h.isEqual(u.ops[u.ops.length-1],l)){var f=new e(n.rest());return u.concat(f).chop()}}else"number"===typeof m.delete&&"number"===typeof M.retain&&u.push(m)}return u.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:S;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),i=new e,o=d()(r[0],r[1],n),a=w.iterator(this.ops),u=w.iterator(t.ops);return o.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case d().INSERT:n=Math.min(u.peekLength(),t),i.push(u.next(n));break;case d().DELETE:n=Math.min(t,a.peekLength()),a.next(n),i.delete(n);break;case d().EQUAL:n=Math.min(a.peekLength(),u.peekLength(),t);var r=a.next(n),o=u.next(n);h.isEqual(r.insert,o.insert)?i.retain(n,s.diff(r.attributes,o.attributes)):i.push(o).delete(n)}t-=n}})),i.chop()},e.prototype.eachLine=function(t,n){void 0===n&&(n="\n");for(var r=w.iterator(this.ops),i=new e,o=0;r.hasNext();){if("insert"!==r.peekType())return;var a=r.peek(),s=w.length(a)-r.peekLength(),u="string"===typeof a.insert?a.insert.indexOf(n,s)-s:-1;if(u<0)i.push(r.next());else if(u>0)i.push(r.next(u));else{if(!1===t(i,r.next(1).attributes||{},o))return;o+=1,i=new e}}i.length()>0&&t(i,{},o)},e.prototype.invert=function(t){var n=new e;return this.reduce((function(e,r){if(Boolean(r.insert))n.delete(w.length(r));else{if(Boolean(r.retain)&&null==r.attributes)return n.retain(r.retain),e+r.retain;if(Boolean(r.delete)||Boolean(r.retain)&&null!=r.attributes){var i=r.delete||r.retain;return t.slice(e,e+i).forEach((function(e){Boolean(r.delete)?n.push(e):Boolean(r.retain)&&null!=r.attributes&&n.retain(w.length(e),s.invert(r.attributes,e.attributes))})),e+i}}return e}),0),n.chop()},e.prototype.transform=function(t,n){if(void 0===n&&(n=!1),n=!!n,"number"===typeof t)return this.transformPosition(t,n);for(var r=t,i=w.iterator(this.ops),o=w.iterator(r.ops),a=new e;i.hasNext()||o.hasNext();)if("insert"!==i.peekType()||!n&&"insert"===o.peekType())if("insert"===o.peekType())a.push(o.next());else{var u=Math.min(i.peekLength(),o.peekLength()),c=i.next(u),M=o.next(u);if(null!=c.delete)continue;null!=M.delete?a.push(M):a.retain(u,s.transform(c.attributes,M.attributes,n))}else a.retain(w.length(i.next()));return a.chop()},e.prototype.transformPosition=function(e,t){void 0===t&&(t=!1),t=!!t;for(var n=w.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r"):e[n],t}),{})};e.anonymizeTextAndStringAttrs=function(t){return t.ops.reduce((function(t,n){return e.match((function(n){return t.insert("string"===typeof n.insert?"<".concat(e.getInsertLength(n),">"):"",i(n.attributes))}),(function(e){return t.delete(e.delete)}),(function(e){return t.retain(e.retain,i(e.attributes))}))(n)}),new C)},e.squash=function(e){return e.reduce((function(e,t){return e.compose(new C(t))}),new C)},e.cleanAllAttrs=function(t){return t.reduce((function(t,n){return e.match((function(e){return t.insert(e.insert)}),(function(e){return t.delete(e.delete)}),(function(e){return t.retain(e.retain)}))(n)}),new C)};var o=function(e){return k.fromNullable(e.attributes)};e.getAttrs=e.match(o,(function(){return k.none}),o),e.skipAny=m.constFalse;e.cleanDelta=function(t,n){return function(r){var i=function(e){return e&&Object.keys(e).filter((function(e,t,r){return n(e,r.slice(0))})).reduce((function(t,n){return t[n]=e[n],t}),{})};return r.reduce((function(n,r){return e.match((function(e){return n.insert("string"===typeof e.insert||t(e.insert)?e.insert:" ",i(e.attributes))}),(function(e){return n.delete(e.delete)}),(function(e){return n.retain(e.retain,i(e.attributes))}))(r)}),new C)}},e.splitToDeleteThenInsert=function(t){return t.reduce((function(t,n){var r=t[0],i=t[1];return e.match((function(e){return[r,i.push(e)]}),(function(e){return[r.push(e),i]}),(function(e){return[r.push({retain:e.retain}),i.push(e)]}))(n)}),[new C,new C]).map((function(e){return e.chop()}))},e.nonEmpty=function(e){return e.ops.length>0},e.findInDelta=function(e,t){return void 0===t&&(t=r),function(n){for(var r=0,i=0;r0})),0).join("/");return e._normalize(r)},e._normalize=function(e){return e=(e=(e=e.replace(/:\//g,"://")).replace(/([^:\s])\/+/g,"$1/")).replace(/\/(\?|#)/g,"$1")},e.get=function(){for(var t=[],n=0;n0&&(this._url+="?"+this._queryParams),this._body instanceof URLSearchParams){if(Boolean(this._mime)&&this._mime!==B.MimeType.form)throw new Error("Only application/x-www-form-urlencoded can be used for form requests, don't specify it mandatory in mime() method");this._mime=B.MimeType.form}else if(this._body instanceof x&&Boolean(this._mime)&&this._mime!==B.MimeType.multipart)throw new Error("Only multipart/form-data can be used for multipart form data requests, don't specify it mandatory in mime() method");if(this._mime===B.MimeType.json&&Boolean(this._body)&&(this._body=JSON.stringify(this._body)),!Boolean(this._method))throw new Error("HTTP method was not set");if(this._method=this._method,this._method===z.Method.GET&&Boolean(this._body))throw new Error("Body is not supported for GET");if(Boolean(this._mime)&&(this._headers["Content-Type"]=this._mime),this._cookies.length>0){this._headers.Cookie=this._cookies.join("; ")}return new z(this._url,this._method,this._headers,Boolean(this._mime)?this._mime:null,this._body)},e}();!function(e){!function(e){e.identity=function(e){return F.task.of(e)},e.compose=function(){for(var t=[],n=0;n0&&e._startCounter()}),this._windowTime)},e}();!function(e){var t,n;!function(e){e[e.NORMAL_CLOSURE=1e3]="NORMAL_CLOSURE",e[e.GOING_AWAY=1001]="GOING_AWAY",e[e.CLOSED_ABNORMALLY=1006]="CLOSED_ABNORMALLY",e[e.NOT_CONSISTENT=1007]="NOT_CONSISTENT",e[e.VIOLATED_POLICY=1008]="VIOLATED_POLICY",e[e.TOO_BIG=1009]="TOO_BIG",e[e.UNEXPECTED_CONDITION=1011]="UNEXPECTED_CONDITION",e[e.SERVICE_RESTART=1012]="SERVICE_RESTART",e[e.CLIENT_MALFUNCTION=3e3]="CLIENT_MALFUNCTION",e[e.BLOCKED_BY_CLIENT=4e3]="BLOCKED_BY_CLIENT",e[e.UNAUTHORIZED=4001]="UNAUTHORIZED",e[e.SERVER_SHUTDOWN=4002]="SERVER_SHUTDOWN",e[e.NOT_FOUND=4004]="NOT_FOUND",e[e.PRECONDITION_FAILED=4012]="PRECONDITION_FAILED",e[e.TOO_MANY_REQUESTS=4029]="TOO_MANY_REQUESTS",e[e.UNKNOWN_WS_ERROR=-1]="UNKNOWN_WS_ERROR"}(t=e.WsCodes||(e.WsCodes={})),function(e){e.capi="capi",e.dox="dox"}(n=e.ClientType||(e.ClientType={}));e.getIdleReconnect=function(e){var t=Me.Monitoring.Logging.getLogger("coreclients.".concat(n[e],".reconnect"),he.LogLevel.TRACE);return function(n,r){var i={client:e,code:n.code,reason:n.reason,reconnectCounter:r.retryStatus.iterNumber};return t.info("skipping reconnect ",i),_.right({kind:"idle"})}},e.getDefaultReconnect=function(e,r){var i=this;void 0===r&&(r=5);var o=Me.Monitoring.Logging.getLogger("coreclients.".concat(n[e],".reconnect"),he.LogLevel.TRACE),a=new fe;return function(n,s,u){return function(e){return"RUNTIME_ERROR"===e.error.status}(n)&&(o.debug("disconnected because of runtime error"),a.inc()),(0,H.pipe)(function(e,n,r,i,o,a){if(void 0===a&&(a="backOffReconnect"),n.iterNumber>10)return _.left(new Error("Maximum number (".concat(10,") of reconnect attempts reached")));switch(e.code){case t.NORMAL_CLOSURE:case t.GOING_AWAY:return(0,H.pipe)(o.canGoIdle?"idle":"backOffReconnect",_.right);case t.TOO_BIG:return _.left(new Error("WS closed because message was too big"));case t.UNEXPECTED_CONDITION:return(0,H.pipe)(r>i?"idle":"backOffReconnect",_.right);case t.CLOSED_ABNORMALLY:case t.VIOLATED_POLICY:case t.SERVICE_RESTART:case t.SERVER_SHUTDOWN:case t.TOO_MANY_REQUESTS:return _.right("backOffReconnect");case t.NOT_FOUND:return _.left(new Error("WS closed due to not found error"));case t.UNAUTHORIZED:return _.left(new Error("WS closed due to unauthorized error"));case t.CLIENT_MALFUNCTION:case t.BLOCKED_BY_CLIENT:return!o.isStable&&n.iterNumber>1?_.left(new Error("Failed to init connection for the second time")):_.right("backOffReconnect");case t.NOT_CONSISTENT:return n.iterNumber>1?_.left(new Error("Tried to send invalid message for the second time in a row")):_.right("backOffReconnect");case t.PRECONDITION_FAILED:return _.left(new Error("Precondition failed"));default:return _.right(a)}}(n,s.retryStatus,a.count,r,u),_.chain((function(t){var r,a={client:e,code:n.code,reason:n.reason,reconnectDecision:t,reconnectStatus:s.retryStatus};switch(t){case"idle":return o.debug("Skip reconnect, going idle",a),_.right({kind:"idle"});case"backOffReconnect":return o.debug("Trying to reconnect",a),_.right({kind:"scheduledReconnect",reconnect:(r=s.retryStatus,(0,D.__awaiter)(i,void 0,void 0,(function(){var e;return(0,D.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,s.scheduleReconnect(r)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),o.warn("Reconnect failed due to error ",e),[3,3];case 3:return[2]}}))})))});default:return _.left(new Error("unsupported reconnect decision: "+t))}})))}},e.defaultRetryPolicy=function(e,t){return void 0===e&&(e=de.MS_IN_SEC),void 0===t&&(t=de.MS_IN_MIN),(0,le.capDelay)(t,(0,le.exponentialBackoff)(e))};var r=function(){function t(t,n){void 0===n&&(n=[e.defaultRetryPolicy()]),this._reconnect=t,this.retryPolicies=n,this._log=Me.Monitoring.Logging.getLogger("coreclients.reconnect.scheduler"),this._policy=me.fold(le.monoidRetryPolicy)(n),this.retryStatus=le.defaultRetryStatus}return t.prototype.reset=function(){this.retryStatus=le.defaultRetryStatus},t.prototype.scheduleReconnect=function(e){var t=this;return void 0===e&&(e=this.retryStatus),this.retryStatus=(0,le.applyPolicy)(this._policy,e),(0,H.pipe)(this.retryStatus.previousDelay,c.tap((function(e){return t._log.debug("Reconnecting after timeout ".concat(e))})),k.fold(this._reconnect,(function(e){return(0,P.gw)(e).then(t._reconnect)})))},t}();e.ReconnectSchedulerImpl=r}(ue||(ue={}));var pe=function(){},ye=function(){this.onSessionStarted=pe,this.onWaitForOT=pe,this.onReady=pe,this.onSessionInbound=pe,this.beforeAlert=pe,this.onAlert=pe,this.onRemove=pe,this.onChange=pe,this.onSynonyms=pe,this.onSnippets=pe,this.onPlagiarism=pe,this.onBeforeAsyncCheckFinish=pe,this.onAsyncCheckFinish=pe,this.onError=pe,this.onBeforeFinish=pe,this.onFinish=pe,this.onStats=pe,this.onTextMaps=pe,this.onTextInfo=pe,this.onEmotions=pe,this.onPong=pe,this.onDebugInfo=pe,this.onConnect=pe,this.onDisconnect=pe,this.onClose=pe,this.onQueueMsgAccepted=pe,this.onQueueMsgDropped=pe,this.onAck=pe,this.onMessageReceived=pe,this.onMessageSent=pe,this.onAutoComplete=pe,this.onAttentionHeatmap=pe,this.onAttentionInfo=pe,this.onProofitAvailability=pe,this.onProofitCancelled=pe,this.onProofitCompleted=pe,this.onProofitProgress=pe,this.onProofitProgressProblem=pe,this.onProofitSubmit=pe,this.onShortenItFinished=pe,this.onSDUI=pe,this.onPublishedAck=pe,this.onGbRuleCreated=pe},ge=n(88927),Ee=n(52453),ve=n(51194);function be(e){return"null"===e||"undefined"===e||null===e||void 0===e}function we(e){if(null===e||"null"===e||"boolean"===typeof e)return null;var t=Number(e);return Number.isNaN(t)?null:t}function Se(e){return be(e)?null:"true"===e||"false"!==e&&"0"!==e&&Boolean(e)}function Ce(e){try{return JSON.parse(decodeURI(e))}catch(t){return null}}var Ae,_e=function(){function e(e){this._value=e}return e.prototype.getStr=function(){return be(this._value)?null:String(this._value)},e.prototype.getNum=function(){return we(this._value)},e.prototype.getBool=function(){return Se(this._value)},e.prototype.getBoolOrDefault=function(e){return function(e,t){return be(e)?t:"true"===e||"false"!==e&&"0"!==e&&Boolean(e)}(this._value,e)},e.prototype.getObject=function(){return Ce(this._value)},e.prototype.getArray=function(){return Ce(this._value)},e.prototype.getObjProp=function(e){return Boolean(this._value.hasOwnProperty(e))?this._value[e]:null},e}();!function(e){e.find=function(e){for(var t=[],n=1;n1024?U.failure(e,n,"Property ".concat(r," is too long (max length is ").concat(1024,")")):t.some((function(e){return i.indexOf(e)>=0}))?U.failure(e,n,"Property ".concat(r," has forbidden characters (").concat(t.join(", "),")")):U.success(e)}),U.identity),e.fromProperties=function(t){return U.type((0,H.pipe)(t,ge.filter((function(e){return"function"!==typeof e})),ge.map((function(t){return e.property}))))}}(He||(He={}));var Re,Be=function(){function e(e,t,n){this._fingerprints=n,this._endpoints={props:"props/v2",mimic:"mimic"},this._url=Q.join(e,"api"),this._ajax=t({requestExtender:W.toHeaderAppender(this._fingerprints)})}return e.prototype.load=function(){return(0,H.pipe)(this._ajax.json(Q.get(this._url,this._endpoints.props)),this._ajax.map(Ae.of))},e.prototype.get=function(e){return(0,H.pipe)(this._ajax.text(Q.get(this._url,this._endpoints.props,e)),this._ajax.map((function(t){var n;return Ae.of(((n={})[e]=t||null,n))})))},e.prototype.save=function(e){var t=this;return(0,H.pipe)(e,Ne,_.mapLeft(Te),_.fold(this._ajax.throwError,this._ajax.of),this._ajax.map((function(e){return Q.post(t._url,t._endpoints.props).json(e)})),this._ajax.chain(this._ajax.empty))},e.prototype.getMimic=function(e){return this._ajax.json(Q.get(this._url,this._endpoints.mimic).cookie("gnar_containerId",e))},e.prototype.getMimicWithProps=function(e){return(0,H.pipe)(this._ajax.json(Q.get(this._url,this._endpoints.mimic,"withProps").cookie("gnar_containerId",e)),this._ajax.map((function(e){var t=e.groups,n=e.properties;return{experiments:new Set(t),properties:Ae.of(n)}})))},e.targetTag="dapi",e}();function De(e){return e}!function(e){function t(e){return function(t){return c.is(t)&&(0,H.pipe)(t,k.fold((function(){return!0}),e.is))}}function n(e){return function(t){return Array.isArray(t)&&t.length>0&&t.every(e.is)}}e.set=function(e){return new U.Type("Set<".concat(e.name,">"),(function(e){return e instanceof Set}),(function(t,n){return _.either.map(U.array(e).validate(t,n),(function(e){return new Set(e)}))}),(function(e){return Array.from(e)}))},e.getIsOption=t,e.option=function(e){return new U.Type("option:".concat(e.name),t(e),(function(t,n){return void 0===t||null===t?_.right(k.none):_.either.map(e.validate(t,n),k.some)}),k.fold((function(){}),e.encode))},e.opaque=function(e){return new U.Type("Opaque",(function(e){return"string"==typeof e}),(function(t,n){return _.either.chain(e.validate(t,n),(function(e){return U.success(e)}))}),(function(e){return e}))},e.getIsNEA=n,e.nonEmptyArray=function(e){return new U.Type("NEA",n(e),(function(t,n){return _.either.chain(U.array(e).validate(t,n),(function(e){return e.length>0?U.success(e):U.failure(e,n,"Array is empty")}))}),(function(e){return c.unsafeGet(R.fromArray(e))}))},e.literalUnion=function(e,t){return U.union(t.map((function(e){return U.literal(e)})),"".concat(e,":string"))},e.date=function(){return new U.Type("Date",(function(e){return e instanceof Date}),(function(e,t){var n=Date.parse(null===e||void 0===e?void 0:e.toString()),r=isNaN(n)?e:n;return _.either.map(U.number.validate(r,t),(function(e){return new Date(e)}))}),(function(e){return e.getTime()}))};var r=function(e){return U.string.is(e)&&!Number.isNaN(Number(e))};e.stringFromNumber=new U.Type("stringFromNumber",r,(function(e,t){return r(e)?U.success(e):"number"!==typeof e||Number.isNaN(e)?U.failure(e,t):U.success(e.toString())}),(function(e){return Number(e)})),e.withDefault=function(e,t){return new U.Type("withDefault(".concat(JSON.stringify(t),"):").concat(e.name),e.is,(function(n,r){return e.validate(be(n)?t:n,r)}),e.encode)},e.fallback=function(e,t){return new U.Type("fallback(".concat(JSON.stringify(t),"):").concat(e.name),e.is,(function(n,r){var i=e.validate(n,r);return _.isLeft(i)?_.right(t):i}),e.encode)};var i=function(e,t){Array.prototype.push.apply(e,t)},o=["boolean","string","Date","number","Array","Set","object","Dictionary","StringEnum","Partial"];function a(e,t){var n=function(e){var t=e.replace(/\w+\(.*?\):/,"");if("{"===t[0]&&"}"===t[t.length-1])return"object";var n=t.split(":").pop();return 0===n.indexOf("Date")?"Date":0===n.indexOf("Array<")?"Array":0===n.indexOf("Set<")?"Set":0===n.indexOf("StringEnum<")?"StringEnum":0===t.indexOf("Partial<")?"Partial":((0,M.kG)(o.indexOf(n)>-1,"unsupported prop type ".concat(e)),n)}(e);switch(n){case"boolean":return t.getBool();case"string":case"StringEnum":return t.getStr();case"Date":return null===t.getNum()?t.getStr():t.getNum();case"number":return t.getNum();case"Array":case"Set":return t.getArray();case"object":case"Partial":case"Dictionary":return t.getObject();default:return(0,M.vE)(n)}}e.properties=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=function(e){return"{ ".concat(Object.keys(e).map((function(t){return"".concat(t,": ").concat(e[t].name)})).join(", ")," }")}(e)),new U.InterfaceType(n,(function(t){if(!Ae.is(t))return!1;for(var n in e)if(!e[n].is(t[n]))return!1;return!0}),(function(n,r){if(!Array.isArray(n)||n.some((function(e){return!Ae.is(e)})))return U.failure(n,r);var o={},s=[],u=function(u){var c=""!==t?"".concat(t,":").concat(u):u,M=Ae.find.apply(Ae,(0,D.__spreadArray)([c],n,!1)),m=e[u],l=a(m.name,M),d=m.validate(l,U.appendContext(r,u,m));(0,H.pipe)(d,_.fold((function(e){return i(s,e)}),(function(e){o[u]=e})))};for(var c in e)u(c);return s.length?U.failures(s):U.success(o)}),(function(n){var r={};for(var i in e){var o=""!==t?"".concat(t,":").concat(i):i,a=e[i],s=n[i];a.is(s)&&(r[o]=e[i].encode(s))}return Ae.of(r)}),e)},e.combineProperties=function(e,t){void 0===t&&(t="(".concat(e.map((function(e){return e.name})).join(" & "),")"));var n=e.length;return new U.IntersectionType(t,(function(t){return e.every((function(e){return e.is(t)}))}),(function(t,r){for(var o={},a=[],s=0;s"))}}(Re||(Re={}));var Fe,Ie=k.getEq({equals:function(e,t){return e===t}}),xe=N.fromEquals(P.As);function Oe(e){if(!Boolean(e))return"general";switch(e.split("_")[0]){case"academic":return"academic";case"business":return"business";case"technical":case"medical":return"mail";case"creative":return"creative";case"casual":return"casual";default:return"general"}}function Le(e){switch(e){case"general":return"general";case"academic":return"academic_general";case"business":return"business_other";case"mail":return"technical_other";case"creative":return"creative_other";case"casual":return"casual_other";default:return e}}function je(e){return Fe.fromDomain(Oe(e))}!function(e){var t;!function(e){e.eq=N.getStructEq({type:N.eqString,citation:N.eqString}),e.defaultAcademic={citation:"apa",type:"essay"},e.withCitationStyle=function(t){return function(n){return(0,D.__assign)((0,D.__assign)({},n),{domain:k.some("academic"),outcomeContext:k.some((0,D.__assign)((0,D.__assign)({},e.defaultAcademic),{citation:t}))})}}}(t=e.OutcomeContext||(e.OutcomeContext={})),e.eq=N.getStructEq({domain:k.getEq(N.eqStrict),goals:k.getEq(xe),audience:Ie,style:Ie,outcomeContext:k.getEq(t.eq)}),function(e){e.eq=N.getStructEq({domain:N.eqStrict,goals:xe,audience:N.eqString,style:N.eqString})}(e.Default||(e.Default={})),e.goals=["inform","describe","convince","tellStory","sell"],e.goalsLabels=["Inform","Describe","Convince","Tell A Story"],e.audiences=["general","knowledgeable","expert"],e.formalityLevels=["informal","neutral","formal"],e.tone=["neutral","confident","joyful","optimistic","friendly","urgent","analytical","respectful"],e.domains=["academic","business","general","mail","casual","creative"],e.dialects=["american","british","canadian","australian"],e.academicTypes=["essay","report","other"],e.citation=["apa","mla","chicago","other"],e.fromDomain=function(t){return(0,D.__assign)((0,D.__assign)({},e.unset),{domain:k.some(t)})},e.fromGoals=function(t){return(0,D.__assign)((0,D.__assign)({},e.unset),{goals:k.some(new Set(t))})},e.unset={goals:k.none,domain:k.none,audience:k.none,style:k.none,dialect:k.none,outcomeContext:k.none},e.defaultContextFallback={goals:new Set,domain:"general",audience:"knowledgeable",style:"neutral",dialect:k.none},e.isStyleValidWithDomain=function(e,t){return"neutral"===t||("formal"===t?"creative"!==e&&"casual"!==e:"academic"!==e)};var n=Re.literalUnion("goal",e.goals),r=Re.set(n),i=Re.literalUnion("audience",e.audiences),o=Re.literalUnion("formality",e.formalityLevels),a=(Re.literalUnion("tone",e.tone),Re.literalUnion("domain",e.domains)),s=Re.literalUnion("dialect",e.dialects),u=Re.literalUnion("academicType",e.academicTypes);e.citationType=Re.literalUnion("citation",e.citation);var c=U.interface({type:u,citation:e.citationType});e.IOType=U.interface({goals:Re.option(r),domain:Re.option(a),audience:Re.option(i),style:Re.option(o),dialect:Re.option(s),outcomeContext:Re.option(c)}),e.IOTypeDefault=U.interface({goals:r,domain:a,audience:i,style:o,dialect:Re.option(s)}),e.tryParse=function(e){return function(t){return(0,H.pipe)(e(t),_.mapLeft(I.failure),_.mapLeft((function(e){return Me.Monitoring.Logging.getLogger("coreclients.dox.context").warn("failed to parse document context",e),e})))}},e.parse=(0,m.flow)(k.fromNullable,k.chain((function(t){return(0,H.pipe)(t,e.tryParse(e.IOType.decode),k.fromEither)}))),e.parseDefault=(0,m.flow)(k.fromNullable,k.chain((0,m.flow)(e.tryParse((function(t){return e.IOTypeDefault.decode(t)})),k.fromEither))),e.serialize=function(t){return e.IOType.encode(t)},e.serializeDefault=function(t){return e.IOTypeDefault.encode(t)}}(Fe||(Fe={}));var ze=function(){function e(e,t,n,r){this.from=e,this.to=t,this.event=n,this.args=r}return e.prototype.toString=function(){return"Transition: From: "+this.from+" to: "+this.to+" (Args: "+this.args+")"},e}(),Qe=function(){function e(t,n,r){this._name=t,this._log=Me.Monitoring.Logging.getLogger("coreclients.fsm"),this._parents={},this._transitions={},this._scheduled=[],this._listeners={},this._inTransition=!1,this._verbose=!1,this._id=++e._ids,this._current=n,this._final=null!==r&&void 0!==r?r:null}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFinal",{get:function(){return this._final===this._current},enumerable:!1,configurable:!0}),e.prototype.transition=function(e,t,n){this._transitions[e<<11|n]=t},e.prototype.parent=function(e,t){this._parents[e]=t},e.prototype.is=function(){for(var e=this,t=[],n=0;n=0},e.prototype.from=function(){for(var e=[],t=0;tthis._capacity){if(!this._allowOverflow)throw new M.ej("ids limit reached: "+this._capacity);this._nextId=e=0}return this._nextId++,e},e.prototype.reset=function(){this._nextId=this._start},e}(),Ke=n(50469),Ye=function(e){function t(t,n,r){var i=e.call(this,"AssertionError: ".concat(r))||this;return i.expected=t,i.actual=n,i.name="AssertionError",i}return(0,D.__extends)(t,e),t.prototype.toString=function(){return"".concat(this.message,"\nExpected: ").concat(this.expected,"\nActual: ").concat(this.actual)},t}(M.sH);function Ze(e,t,n){if(e!==t)throw new Ye(e,t,n)}var Ve=function(e){function t(t){var n=e.call(this,Boolean(t)?t:"Timeout")||this;return n.name="TimeoutError",n}return(0,D.__extends)(t,e),t.isTimeoutError=function(e){return e instanceof t},t}(M.sH),$e=function(e){function t(t){var n=e.call(this,Boolean(t)?t:"Dropped")||this;return n.name="DroppedError",n}return(0,D.__extends)(t,e),t.isDroppedError=function(e){return e instanceof t},t}(M.sH),qe=function(e){function t(t){var n=e.call(this,Boolean(t)?t:"Not Connected to WS")||this;return n.name="NotConnectedError",n}return(0,D.__extends)(t,e),t.isNotConnectedError=function(e){return e instanceof t},t}(M.sH),et=function(e){function t(t){var n=e.call(this,Boolean(t)?t:"Not ready")||this;return n.name="NotReady",n}return(0,D.__extends)(t,e),t.isNotReadyError=function(e){return e instanceof t},t}(M.sH);function tt(e,t){void 0===t&&(t=function(){return!0});var n,r=me.fold(le.monoidRetryPolicy)(e);return function(e){return(0,Ke.$E)(r,(function(t){return(0,H.pipe)(t.previousDelay,k.fold((function(){return e}),(function(r){return(0,H.pipe)(rt(t.iterNumber,r),Ee.apSecond(e),Ee.mapLeft((function(e){var r;return"stack"in(r=e)&&void 0!==r.stack&&(1===t.iterNumber?n=e.stack:void 0!==n&&(e.stack=n)),e})))})))}),(function(e){return _.isLeft(e)&&t(e.left)}))}}function nt(e,t,n,r){return void 0===t&&(t=7),void 0===n&&(n=50),void 0===r&&(r=function(){return!0}),tt([(0,le.exponentialBackoff)(n),(0,le.limitRetries)(t)],r)(e)}var rt=function(e,t){return Ee.rightIO((function(){return Me.Monitoring.Logging.root.getLogger("coreclients.utils").trace("retryWithDelay: count ".concat(e,", timeout: ").concat(t))}))},it=function(){function e(e,t,n){void 0===e&&(e=5e3),void 0===t&&(t=""),void 0===n&&(n=new Ve),this._timeout=e,this._timeoutError=n,this._notifications=new Map,this._log=Me.Monitoring.Logging.getLogger("coreclients.valueNotifier"+(t.length>0?"."+t:""))}return e.prototype.waitFor=function(e,t){var n=this;return function(){return n._startNotificationWatch(e,t)}},e.prototype.notify=function(e){this._stopNotification(e,_.right(void 0))},e.prototype.error=function(e,t){this._log.trace("onError:(".concat(e,")")),this._stopNotification(e,_.left(t))},e.prototype.clear=function(e){var t=this;this._log.trace("clearing notification watches: "+e),this._notifications.forEach((function(n,r){t.error(r,new $e("clearing value notifier and dropping all pending notification watches:"+e))}))},e.prototype._startNotificationWatch=function(e,t){var n=this;this._log.debug("Starting notification watch: ".concat(e)),(0,M.kG)(!this._notifications.has(e),"must not start watch for same notification twice, notification already watched: "+e);var r={};return r.promise=new Promise((function(e){r.notifyValue=function(){return e(_.right(t))},r.notifyError=function(t){return e(_.left(t))}})),r.timer=window.setTimeout((function(){return n._stopNotification(e,_.left(n._timeoutError))}),this._timeout),this._notifications.set(e,r),r.promise},e.prototype._stopNotification=function(e,t){this._log.trace("_stopNotification: stopping notification watch: ".concat(e),t);var n=this._notifications.get(e);void 0===n?this._log.error("Got result for unknown notification or notification has already expired.",{id:e,result:t}):(clearTimeout(n.timer),(0,H.pipe)(t,_.fold((function(e){return n.notifyError(e)}),(function(){return n.notifyValue()}))),this._notifications.delete(e))},e}(),ot=function(){function e(e,t,n){void 0===e&&(e=5e3),void 0===t&&(t=""),void 0===n&&(n=new Ve),this._timeout=e,this._timeoutError=n,this._requests=new Map,this._log=Me.Monitoring.Logging.getLogger("coreclients.valueRequester"+(t.length>0?"."+t:""))}return e.prototype.watchRequest=function(e){return this._startRequestWatch(e)},e.prototype.onValue=function(e,t){this._stopRequest(e,_.right(t))},e.prototype.onError=function(e,t){this._log.trace("onError:(".concat(e,")")),this._stopRequest(e,_.left(t))},e.prototype.clear=function(e){var t=this;this._log.trace("clearing request watches: "+e),this._requests.forEach((function(n,r){t.onError(r,new $e("clearing value requester and dropping all pending request watches:"+e))}))},e.prototype._startRequestWatch=function(e){var t=this;this._log.debug("Starting request watch: ".concat(e)),(0,M.kG)(!this._requests.has(e),"must not start watch for same request twice, request already watched: "+e);var n={};return n.promise=new Promise((function(e){n.resolve=e})),n.timer=window.setTimeout((function(){return t._stopRequest(e,_.left(t._timeoutError))}),this._timeout),this._requests.set(e,n),n.promise},e.prototype._stopRequest=function(e,t){this._log.trace("_stopRequest: stopping request watch: ".concat(e),t);var n=this._requests.get(e);void 0===n?this._log.warn("Got result for unknown request or request has already expired.",{id:e,result:t}):(clearTimeout(n.timer),n.resolve(t),this._requests.delete(e))},e}();var at,st,ut,ct,Mt=n(83191),mt=n(20555),lt=n(71362);!function(e){var t;!function(e){e.isEmpty=function(e){return e.e-e.s===0}}(e.Range||(e.Range={})),function(e){!function(e){e.MAIN="main",e.IMPORTANT="important"}(e.Type||(e.Type={})),function(e){e.OPTIONAL_CONTEXT="optional_context"}(e.TypeExt||(e.TypeExt={}))}(t=e.Edit||(e.Edit={})),function(e){function n(e){return(0,m.pipe)(e.ops,k.fromPredicate((function(e){return-1===e.findIndex(n)})),k.fold((function(){return _.left({ops:(t=e.ops,t.reduce((function(e,t,r){if(n(t,r)){var i=t.attributes,o=(i.type,(0,D.__rest)(i,["type"]));e.push((0,D.__assign)((0,D.__assign)({},t),{attributes:o}))}else e.push(t);return e}),[]))});var t}),(function(e){return _.right({ops:e})})));function n(e,n){return n>0&&g.isRetain(e)&&void 0!==e.attributes&&e.attributes.type===t.TypeExt.OPTIONAL_CONTEXT}}e.unsafeFromDelta=function(e){return(0,m.pipe)(e,n,_.fold(m.identity,m.identity))},e.fromDelta=n}(e.AbsAlternative||(e.AbsAlternative={}))}(at||(at={})),function(e){var t,n;!function(e){e.Important="important",e.Main="main",e.Optional="optional"}(t=e.Type||(e.Type={})),function(e){e.OptionalContext="optional_context"}(n=e.TypeExt||(e.TypeExt={}));var r=function(e){return"object"===typeof e&&null!==e};e.eqAttributes=ge.getEq(N.fromEquals((function(t,n){return r(t)&&r(n)?e.eqAttributes.equals(t,n):N.eqStrict.equals(t,n)}))),e.eq=N.getStructEq({type:N.eqStrict,group:k.getEq(N.eqString),insert:N.eqString,delete:N.eqNumber,retain:N.eqNumber,attributes:e.eqAttributes}),e.isInsert=function(e){return"insert"in e},e.isInsertString=function(t){return e.isInsert(t)&&i(t.insert)},e.isInsertGap=function(t){return e.isInsert(t)&&o(t.insert)},e.isDelete=function(e){return"delete"in e},e.isRetain=function(e){return"retain"in e},e.isOptionalContextRetain=function(t){return"retain"in t&&e.isOptionalContextType(t.type)};var i=function(e){return"string"===typeof e},o=function(e){return"object"===typeof e&&null!==e&&"gap"in e};e.isMain=function(t){return t.type===e.Type.Main},e.isOptionalType=function(t){return t===e.Type.Optional},e.isOptionalContextType=function(t){return t===e.TypeExt.OptionalContext},e.isSignificant=function(e){switch(e.type){case t.Main:case t.Important:return!0;case t.Optional:return!1;default:return(0,M.vE)(e.type)}},e.fromRawAbsAlternative=function(e){if(function(e){var t=e[0];return Boolean(t)&&"retain"in t&&Boolean(t.attributes)&&"optional_context"===t.attributes.type}(e.ops)){var t=e.ops,r=t[0],i=t.slice(1),o={retain:r.retain,type:n.OptionalContext,group:k.none};return(0,D.__spreadArray)([o],i.map(u),!0)}return e.ops.map(u)},e.length=C.Op.length,e.anonymize=function(t){return e.isInsert(t)?(0,D.__assign)((0,D.__assign)({},t),{insert:"string"===typeof t.insert?"<".concat(e.length(t),">"):""}):t};var a=function(){function n(e){this.ops=e,this.index=0,this.offset=0}return n.prototype.hasNext=function(){return this.peekLength()<1/0},n.prototype.next=function(n){Boolean(n)||(n=1/0);var r=this.ops[this.index];if(Boolean(r)){var i=r.type,o=this.offset,a=e.length(r);return n>=a-o?(n=a-o,this.index+=1,this.offset=0):this.offset+=n,e.isDelete(r)?{delete:n,type:i,group:r.group}:e.isRetain(r)?{retain:n,type:i,group:r.group,attributes:!e.isOptionalContextType(i)&&r.attributes}:e.isInsertString(r)?{insert:r.insert.substr(o,n),type:i,group:r.group,attributes:r.attributes}:r}return{retain:1/0,type:t.Optional,group:k.none,attributes:{}}},n.prototype.peekLength=function(){return Boolean(this.ops[this.index])?e.length(this.ops[this.index])-this.offset:1/0},n.prototype.peekType=function(){return Boolean(this.ops[this.index])?e.isDelete(this.ops[this.index])?"delete":e.isRetain(this.ops[this.index])?"retain":"insert":"retain"},n}();e.Iterator=a;var s=(0,m.flow)(k.fromNullable,k.map(ge.deleteAt("type")),k.map(ge.deleteAt("group")),k.getOrElse((function(){return{}}))),u=function(e){var n,r=function(e){if(null!=(null===e||void 0===e?void 0:e.type))switch(e.type){case"main":return t.Main;case"important":return t.Important;default:return(0,M.vE)(e.type)}return t.Optional}(e.attributes),i=(n=e.attributes,(0,H.pipe)(k.fromNullable(n),k.chain((function(e){return k.fromNullable(e.group)}))));return"insert"in e?{insert:e.insert,type:r,group:i,attributes:s(e.attributes)}:"delete"in e?{delete:e.delete,type:r,group:i}:{retain:e.retain,type:r,group:i,attributes:s(e.attributes)}}}(st||(st={})),function(e){e.fromAlternative=function(e){var t=e.alternative,n=e.fullText;return(0,H.pipe)(t.delta.invert(n),ct.fromRawDelta)},e.fromAlternativeBoldified=function(t){var n=t.alternative,r=t.fullText,i=(0,H.pipe)(n.delta.map(g.match((function(e){return(0,H.pipe)(e,k.fromPredicate(g.isInsertString),k.chain((function(e){return(0,H.pipe)(k.fromNullable(e.attributes),k.map((function(t){return{attributes:t,retain:e.insert.length}})))})),k.filter((function(e){var t=e.attributes;return Boolean(t.bold)})),k.map((function(e){return{retain:e.retain,attributes:{bold:!1}}})))}),(function(e){return k.none}),(function(e){return k.some({retain:e.retain})}))),Mt.compact,(function(e){return new C(e)}),(function(e){return r.compose(e)}));return e.fromAlternative({alternative:n,fullText:i})},e.fromAlternativeListified=function(t){var n=t.alternative,r=t.fullText;return(0,H.pipe)(e.fromAlternative({alternative:n,fullText:r}),(function(e){return(0,H.pipe)(e.delta.ops,Mt.findLastIndex((function(e){return g.isInsertString(e)&&"\n"===e.insert&&Boolean(!e.attributes||!Boolean(e.attributes.list))})),k.map((function(t){var n=e.delta.ops,r=n[t];return new C((0,D.__spreadArray)((0,D.__spreadArray)((0,D.__spreadArray)([],n.slice(0,t),!0),[(0,D.__assign)((0,D.__assign)({},r),{attributes:(0,D.__assign)((0,D.__assign)({},r.attributes),{list:!1})})],!1),n.slice(t+1),!0))})),k.getOrElse((function(){return e.delta})))}),ct.fromRawDelta)}}(ut||(ut={})),function(e){var t;function n(e){return function(t){return st.isInsertGap(t)?(0,D.__assign)((0,D.__assign)({},t),{insert:e}):t}}function r(e){return new i(e)}e.hasOptionalContext=function(e){return Boolean(e[0])&&st.isOptionalContextRetain(e[0])},function(e){e.Insert="insert",e.Remove="remove",e.Substitution="substitution"}(t=e.Type||(e.Type={})),function(e){function t(t){return t.type===st.Type.Main?k.some(st.isInsert(t)?e.Insert:e.Remove):k.none}e.eq=N.eqString,e.fromOperation=t,e.semigroup={concat:function(t,n){switch(t){case e.Insert:return n===e.Remove?e.Substitution:n;case e.Remove:return n===e.Insert?e.Substitution:n;case e.Substitution:return e.Substitution;default:return(0,M.vE)(t)}}},e.monoid=k.getMonoid(e.semigroup),e.parse=(0,Mt.foldMap)(e.monoid)(t)}(t=e.Type||(e.Type={})),e.eq=N.getStructEq({lengthAffected:N.eqNumber,type:k.getEq(t.eq),ops:(0,Mt.getEq)(st.eq)}),e.fromRawDelta=(0,m.flow)(at.AbsAlternative.unsafeFromDelta,st.fromRawAbsAlternative,r),e.fillGaps=function(t,i){return e.hasOptionalContext(t.ops)?r((0,D.__spreadArray)([t.ops[0]],t.ops.slice(1).map(n(i)),!0)):r(t.ops.map(n(i)))},e.dismissTransformGroups=function(t,n){var i=Mt.filterMap((function(e){return(0,H.pipe)(e.group,k.filter((function(e){return n.has(e)})),k.fold((function(){return k.some(e)}),(function(){return function(e){return st.isDelete(e)?k.some({type:e.type,group:e.group,retain:e.delete,attributes:{}}):st.isInsert(e)?k.none:k.some(e)}(e)})))}));if(e.hasOptionalContext(t.ops)){var o=t.ops,a=o[0],s=o.slice(1);return r((0,D.__spreadArray)([a],(0,H.pipe)(s,i),!0))}return r((0,H.pipe)(t.ops,i))},e.getTransformGroups=function(e){var t=new Set;return e.ops.forEach((function(e){return(0,H.pipe)(e.group,c.tap((function(e){return t.add(e)})))})),t},e.getDeleteOpsGroupsList=function(e){return(0,H.pipe)(e.ops.filter(st.isDelete),Mt.map((function(e){return e.group})),Mt.compact)},e.create=r,e.validate=(0,m.flow)((function(e){return e.ops}),_.fromPredicate(T.existsOnEdgesOnly(st.isOptionalContextRetain),(function(e){return"Optional_context operations exist not only at the beginning or at the end of Delta"}))),function(t){t.fromSerialized=function(t){return{context:t.context,alternatives:(0,H.pipe)(t.alternatives,R.map((function(e){return e.ops})),R.map(e.create))}},t.fromSubalerts=function(e,t){return{context:e,alternatives:R.map((0,m.flow)(st.fromRawAbsAlternative,r))(t)}},t.fromRawTransform=function(e){return{context:R.of(e.context),alternatives:R.map((0,m.flow)(st.fromRawAbsAlternative,r))(e.alternatives)}},t.rebase=function(e){return function(t){return{context:(0,H.pipe)(t.context,R.map((function(t){return{s:e.transformPosition(t.s,!0),e:e.transformPosition(t.e,!0)}}))),alternatives:(0,H.pipe)(t.alternatives,R.map((function(t){return(0,H.pipe)(t.rebase(e),k.fold((function(){return t}),m.identity))})))}}},t.copy=function(e){return{context:R.copy(e.context),alternatives:R.copy(e.alternatives)}}}(e.Group||(e.Group={}));var i=function(){function n(e){this.ops=e,this.type=t.parse(this.ops),this.lengthAffected=g.calcAffectedLength(this)}return n.prototype.rebase=function(e){var t=e.ops[0];if(!Boolean(t)||g.isRetain(t)&&("undefined"===typeof t.attributes||0===Object.keys(t.attributes).length)&&C.Op.length(t)>this.lengthAffected)return k.some(this);var n=this.ops.length>=2&&g.isDelete(this.ops[this.ops.length-2])&&g.isInsert(this.ops[this.ops.length-1]);return!Boolean(t)||n&&g.isRetain(t)&&("undefined"===typeof t.attributes||0===Object.keys(t.attributes).length)&&C.Op.length(t)===this.lengthAffected?k.some(this):this._internalRebase(e)},n.prototype._internalRebase=function(t){for(var r=this,i=C.Op.iterator(t.ops),o=new st.Iterator(this.ops),a=k.some(new n([])),s=!1;o.hasNext();)if("insert"===i.peekType()){if(s&&(0,H.pipe)(a,c.forAll((function(e){return e.ops[e.ops.length-1].type===st.Type.Main}))))return k.none;var u=C.Op.length(i.next()),M=(0,H.pipe)(a,k.map((function(e){return e.ops[e.ops.length-1]})),c.unsafeGet);if(s&&c.forAll((function(e){return e.lengthAffected>0}))(a)){var m={retain:u,type:M.type,group:M.group,attributes:"attributes"in M&&!st.isOptionalContextType(M.type)&&M.attributes};a=n._pushOp(a,m)}else a=n._pushOp(a,{retain:u,type:st.Type.Optional,group:k.none,attributes:{}})}else if("insert"===o.peekType()){var l=o.next();if(l.type===st.Type.Main&&"delete"===i.peekType()&&i.offset>0)return k.none;a=n._pushOp(a,l)}else{var d=Math.min(i.peekLength(),o.peekLength()),h=i.next(d),f=o.next(d);g.isDelete(h)||(s=o.offset>0,a=n._pushOp(a,st.isDelete(f)?f:st.isOptionalContextType(f.type)?{retain:d,type:st.TypeExt.OptionalContext,group:k.none}:{retain:d,type:f.type,group:f.group,attributes:f.attributes}))}return(0,H.pipe)(a,k.map((function(t){return t.type=e.Type.parse(r.ops),t})))},n._pushOp=function(e,t){return(0,H.pipe)(e,k.chain((function(e){return(0,H.pipe)(A.tryCatchError((function(){return e._push(t)})),_.mapLeft((function(e){return Me.Monitoring.Logging.getLogger("Alternative").error("Alternative push error",e),e})),k.fromEither)})))},n.prototype._push=function(e){var t=this.ops.length,n=this.ops[t-1];if(Boolean(n)){if(st.isOptionalContextRetain(e))return st.isOptionalContextRetain(n)?n.retain+=e.retain:st.isRetain(n)&&t<=2?2===t?((0,M.kG)(st.isOptionalContextRetain(this.ops[0]),"OptionalContext is expected in the beginning of alternative but not found",JSON.stringify({ops:this.ops,newOp:e,index:t})),this.ops[0].retain+=e.retain):(this.ops[t]=n,this.ops[t-1]=e):(0,M.kG)(st.isOptionalContextRetain(n)||st.isRetain(n)&&1===t,"Attempted to push optional_context in the middle of alternative ops",JSON.stringify({ops:this.ops,newOp:e,index:t})),this.lengthAffected+=e.retain,this;if(st.isDelete(e)&&st.isDelete(n))return e.type===n.type?n.delete+=e.delete:this.ops.push(e),this.lengthAffected+=e.delete,this;if(st.isInsert(e)&&st.isInsert(n))return e.type===n.type&&"string"===typeof e.insert&&"string"===typeof n.insert&&st.eqAttributes.equals(e.attributes,n.attributes)?n.insert+=e.insert:this.ops.push(e),this;if(st.isRetain(e)&&st.isRetain(n))return e.type===n.type?n.retain+=e.retain:this.ops.push(e),this.lengthAffected+=e.retain,this;this.ops.push(e)}else this.ops=[e];return st.isInsert(e)||(this.lengthAffected+=st.length(e)),this},Object.defineProperty(n.prototype,"delta",{get:function(){return g.normalizeDelta(new C(this))},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){return{ops:this.ops}},n}();e.compose=function(e,t){var n={composedDelta:new C,currentFullText:t,reversedAlternatives:[]},r=e.reduce((function(e,t,n){var r=t[0],i=t[1];return(0,H.pipe)(r.rebase(e.composedDelta),k.fold((function(){e.reversedAlternatives.push(_.left({error:new Error("Could not rebase alternative to composed delta"),delta:r.delta,alternativeIndex:n}))}),(function(t){var r=i({alternative:t,fullText:e.currentFullText});e.composedDelta=e.composedDelta.compose(t.delta),e.currentFullText=e.currentFullText.compose(t.delta),function(e,t){e.forEach((function(n,r){return(0,H.pipe)(n,_.fold(m.constVoid,(function(n){e[r]=(0,H.pipe)(n.reversedAlternative.rebase(t.delta),_.fromOption((function(){return{error:new Error("Could not rebase reversed alternative to some alternative"),delta:n.reversedAlternative.delta,alternativeIndex:n.alternativeIndex}})),_.map((function(e){return(0,D.__assign)((0,D.__assign)({},n),{reversedAlternative:e})})))})))}))}(e.reversedAlternatives,t),e.reversedAlternatives.push(_.right({reversedAlternative:r,alternativeIndex:n}))}))),e}),n),i=(0,H.pipe)(r.reversedAlternatives,Mt.separate,lt.T.fromSeparatedArray);return(0,D.__assign)((0,D.__assign)({},r),{reversedAlternatives:i})},e.withoutOptionalOps=function(t){return e.create(t.filter((function(e){return!st.isOptionalType(e.type)})))}}(ct||(ct={}));var dt,ht,ft,pt,yt,gt,Et,vt,bt,wt,St,Ct,At,_t,Ht,kt,Pt,Nt,Tt,Rt,Bt,Dt,Ft,It,xt,Ot,Lt,jt,zt,Qt,Gt,Wt,Ut,Xt,Jt=Math.pow(2,32)/2;!function(e){e.alertsUpdate="alerts_update",e.textInfo="text_info",e.freeAdvancedChecks="free_inline_advanced_alerts",e.readability="readability_check",e.sentenceVariety="sentence_variety_check",e.fillerWords="filler_words_check",e.alertsChanges="alerts_changes",e.freeClarityChecks="free_clarity_alerts",e.superAlerts="super_alerts",e.consistency="consistency_check",e.setGoalsLink="set_goals_link",e.emogenieCheck="emogenie_check",e.toneCards="tone_cards",e.alternativeDeletesCard="alternative_deletes_card",e.voxCheck="vox_check",e.plagiarismAlertsUpdate="plagiarism_alerts_update",e.fullSentenceRewrite="full_sentence_rewrite_card",e.listCard="turn_to_list_card",e.userMutes="user_mutes",e.completions="completions",e.muteQuotedAlerts="mute_quoted_alerts",e.keyTakeaways="key_takeaways_v4",e.supportsFormatting="formatting",e.supportsButtonTransformCards="transform_with_button_card",e.priorityAlertsView="priority_alerts_view",e.proofit="realtime_proofit",e.freeOccasionalPremiumAlerts="free_occasional_premium_alerts",e.gapTransformCard="gap_transform_card",e.toneAI="tone_slider_card",e.ethicalAI="ethical_ai_card",e.enclosingHighlight="enclosing_highlight",e.mainStartHighlight="main_start_highlight",e.drilldownCard="drilldown_card",e.shortenIt="shorten_it",e.ideasGalleryLink="ideas_gallery_link",e.citations="citations",e.citation_detection_card="citation_detection_card",e.suggestedSnippets="suggested_snippets",e.knowledgeHub="knowledge_hub",e.autoapply="autoapply"}(dt||(dt={})),function(e){e.v1="1",e.v2="2"}(ht||(ht={})),function(e){!function(e){e.READ_ONLY="READ_ONLY"}(e.SessionMode||(e.SessionMode={})),function(e){e.OK="OK",e.TOO_SMALL="TOO_SMALL",e.SENSITIVE="SENSITIVE",e.ERROR="ERROR"}(e.ScoresStatus||(e.ScoresStatus={})),function(e){var t={Clarity:0,Correctness:0,Engagement:0,Tone:0,"Style guide":0,GeneralScore:0};e.normalize=function(e){return(0,D.__assign)((0,D.__assign)({},t),e)}}(e.OutcomeScores||(e.OutcomeScores={})),function(e){e.hasAttentionInfo=function(e){return"attentionScore"in e&&"showAttentionCard"in e}}(e.AttentionHeatmap||(e.AttentionHeatmap={})),function(e){!function(e){!function(e){!function(e){e.gmail="gmail"}(e.Placement||(e.Placement={}))}(e.BaseSurvey||(e.BaseSurvey={})),function(e){e.type="score",function(e){e.declined="declined"}(e.Score||(e.Score={}))}(e.ScoreSurvey||(e.ScoreSurvey={}))}(e.Data||(e.Data={}))}(e.Survey||(e.Survey={}))}(ft||(ft={})),pt||(pt={}),function(e){e.empty=[],e.isLeaf=function(e){return 0===e.length},e.Tree=U.recursion("Tree",(function(){return U.array(U.tuple([U.number,e.Tree]))}))}(yt||(yt={})),function(e){!function(e){e.sales_crm="sales_crm",e.sales_engagement="sales_engagement",e.sales_enablement="sales_enablement",e.marketing_email_automation="marketing_email_automation",e.marketing_content="marketing_content",e.customer_service="customer_service",e.customer_surveys_surveys="customer_surveys_surveys",e.recruiting="recruiting",e.training_learning="training_learning",e.project_management="project_management",e.legal="legal",e.contractors="contractors",e.human_resources="human_resources",e.email="email",e.business_chat="business_chat"}(e.DomainCategory||(e.DomainCategory={}))}(gt||(gt={})),function(e){!function(e){e.InQuotes="InQuotes"}(e.SpecialCategory||(e.SpecialCategory={})),function(e){e.GLOBAL="GLOBAL",e.SESSION="SESSION",e.DOCUMENT="DOCUMENT"}(e.ScopeType||(e.ScopeType={})),function(e){e.MUTED_BY_USER="MUTED_BY_USER",e.NOT_ELIGIBLE_FOR_INLINE="NOT_ELIGIBLE_FOR_INLINE",e.NOT_MUTED="NOT_MUTED"}(e.MutedByType||(e.MutedByType={}))}(Et||(Et={})),function(e){!function(e){e.NOT_RELEVANT="NOT_RELEVANT",e.WRONG_TONE="WRONG_TONE",e.INCORRECT="INCORRECT",e.WRONG_GRAMMAR="WRONG_GRAMMAR",e.OFFENSIVE="OFFENSIVE",e.OTHER="OTHER"}(e.SuggestionRejectionReason||(e.SuggestionRejectionReason={}))}(vt||(vt={})),function(e){e.mock={bundle:"Test bundle",bundleRank:10,group:"Test Group",rank:1,outcome:"Correctness"}}(bt||(bt={})),function(e){function t(e){return function(t){return{s:e.s+t.s,e:e.s+t.e,type:t.type}}}function n(e,t){return void 0===t&&(t=!1),0===e.s?m.unsafeCoerce:function(n){return(0,m.unsafeCoerce)({ops:(0,D.__spreadArray)([{retain:e.s,attributes:t?void 0:{type:at.Edit.TypeExt.OPTIONAL_CONTEXT}}],n.ops,!0)})}}e.prependContextToHighlight=t,e.prependContext=n,e.toAbs=function(e){return Ct.create({highlights:e.highlights.map(t(e.context)),alternatives:(0,H.pipe)(e,k.fromPredicate((function(e){return void 0!==e.alternatives&&e.alternatives.length>0})),k.map((function(e){return(0,D.__assign)((0,D.__assign)({},e),{alternatives:R.map(n(e.context))(e.alternatives)})})),k.map(ct.Group.fromRawTransform))})}}(wt||(wt={})),function(e){var t,n;!function(e){e.create=function(e){return e.toString()}}(t=e.Id||(e.Id={})),function(e){e.rebase=function(e,t){var n=t.transformPosition(e.begin,!0),r=t.transformPosition(e.end,!0),i=(new C).insert(e.text).compose(t.slice(e.begin)).reduce((function(e,t){return g.isInsert(t)?"".concat(e).concat(t.insert):e}),"").slice(0,r-n);return(0,D.__assign)((0,D.__assign)({},e),{begin:n,end:r,text:i})},e.isSquashed=function(e){return e.begin>=e.end},e.fromAttentionHeatmapMessage=function(e){return(0,D.__assign)((0,D.__assign)({},e),{id:t.create(e.id)})}}(n=e.Range||(e.Range={})),e.fromAttentionHeatmapMessage=function(e){return(0,D.__assign)((0,D.__assign)({},e),{add:e.add.map(n.fromAttentionHeatmapMessage),update:e.update.map(n.fromAttentionHeatmapMessage),remove:e.remove.map(t.create),attentionScore:(0,H.pipe)(e,k.fromPredicate(ft.AttentionHeatmap.hasAttentionInfo),k.map(h.pick("attentionScore"))),showAttentionCard:(0,H.pipe)(e,k.fromPredicate(ft.AttentionHeatmap.hasAttentionInfo),k.map(h.pick("showAttentionCard")))})}}(St||(St={})),function(e){e.create=function(e){return e},e.isSquashed=function(e){return e.highlights.some(at.Range.isEmpty)},e.isValidAfterTransform=function(e,n){var r=t(e),i=t(n);return Boolean(T.compareInPairs(r.highlights,i.highlights,(function(e,t){return e.e-e.s===t.e-t.s})))&&T.compareInPairs(r.alternatives,i.alternatives,(function(e,t){return T.compareInPairs(e.ops.filter((0,P.ff)(g.isRetain)),t.ops.filter((0,P.ff)(g.isRetain)),g.isEqual((function(){return!0})))}))},e.rebase=function(t,n){return e.create({highlights:t.highlights.map((function(e){return{s:n.transformPosition(e.s,!0),e:n.transformPosition(e.e,!0),type:e.type}})),alternatives:(0,H.pipe)(t.alternatives,k.map(ct.Group.rebase(n)))})};var t=function(e){return{highlights:e.highlights,alternatives:(0,H.pipe)(e.alternatives,k.fold((function(){return[]}),(function(e){return e.alternatives.map((function(e){return e.delta}))})))}}}(Ct||(Ct={})),function(e){var t,n,r;function i(e){return void 0===e.drilldownTree&&void 0===e.knowledgeHubSuggestCorrectionUrl&&void 0===e.knowledgeHubRelatedMaterials&&void 0===e.knowledgeHubPointPeople?e:(0,D.__assign)((0,D.__assign)({},e),{drilldownTree:void 0===e.drilldownTree?void 0:(0,H.pipe)(e.drilldownTree,(function(e){return"object"===typeof e?e:JSON.parse(e)}),yt.Tree.decode,A.unsafeGet),knowledgeHubRelatedMaterials:void 0===e.knowledgeHubRelatedMaterials?void 0:"object"===typeof e.knowledgeHubRelatedMaterials?e.knowledgeHubRelatedMaterials:JSON.parse(e.knowledgeHubRelatedMaterials),knowledgeHubPointPeople:void 0===e.knowledgeHubPointPeople?void 0:"object"===typeof e.knowledgeHubPointPeople?e.knowledgeHubPointPeople:JSON.parse(e.knowledgeHubPointPeople)})}function o(e,t){(0,H.pipe)(e.ops,Mt.findFirst((function(e){return g.isInsert(e)&&(0,H.pipe)(g.getAttr(e,"type"),k.exists((function(e){return e===at.Edit.Type.MAIN})))&&"string"===typeof e.insert})),k.map((function(e){var n=e.insert;return t(n)})))}function a(e){return function(t){switch(t){case Et.SpecialCategory.InQuotes:return"true"===e.extra_properties.in_quotes;default:return!1}}}function s(e){return!m(e)&&!l(e)}function u(e){return void 0!==e.begin&&void 0!==e.end&&void 0!==e.highlightBegin&&void 0!==e.highlightEnd}function m(e){return void 0!==e.cardLayout&&void 0!==e.transformJson}function l(e){return"labels"in e&&"subalerts"in e}function d(e,t,n,r){return s(e)?t(e):m(e)?n(e):r(e)}!function(e){e.create=function(e){return e.toString()}}(e.Id||(e.Id={})),function(e){e.Critical="critical",e.Advanced="advanced"}(t=e.Impact||(e.Impact={})),function(e){e.all="all",e.priority="priority"}(n=e.View||(e.View={})),function(e){e.inline="inline",e.not_inline="not_inline"}(r=e.Inline||(e.Inline={})),e.parseExtraProperties=i,e.fromAlertMessage=function(t){return Object.assign({},t,(0,D.__assign)({id:e.Id.create(t.id),cost:Boolean(t.cost)?t.cost:1,extra_properties:i(t.extra_properties)},t.transformJson?{transformJson:wt.toAbs(t.transformJson),highlightText:[t.highlightText]}:(0,H.pipe)(mt.fromNullableArray(t.subalerts),k.fold((function(){return{highlightText:[t.highlightText]}}),(function(e){return(0,H.pipe)(function(e,t){return(0,H.pipe)(t,k.fold((function(){return _.left(new Error("Got corrupted superalert \u2014 the labels are missing"))}),(function(t){return function(e,t){if(e.length<2)return _.left(new Error("There should be more than one subalert, got "+e.length));var n=t.map((function(e){return{matches:0,replacements:new Set,label:e}})),r=n.reduce((function(e,t){return e[t.label]=t,e}),{}),i=mt.fromNullableArray(e[0].transformJson.alternatives);if(n.length>0&&Boolean(k.isNone(i))||!Boolean((0,H.pipe)(i,c.forAll((function(e){return n.length===e.length})))))return _.left(new Error("Alternatives array length must match labels array length"));for(var a=(0,H.pipe)(i,k.map(R.mapWithIndex((function(t,r){return o(r,(function(e){return n[t].replacements.add(e)})),wt.prependContext(e[0].transformJson.context)(r)}))),k.map((function(t){return r[e[0].label].matches+=1,[R.of(e[0].transformJson.context),t]}))),s=e[0].transformJson.highlights.map(wt.prependContextToHighlight(e[0].transformJson.context)),u=[e[0].highlightText],M=function(t){var i=e[t];if(n.length>0){if(void 0===i.transformJson.alternatives)return{value:_.left(new Error("The alternatives are missing from subalert, expected length: ".concat(n.length)))};if(i.transformJson.alternatives.length!==n.length)return{value:_.left(new Error("Subalert has incorrect alternatives length: expected ".concat(n.length,", got ").concat(i.transformJson.alternatives.length)))}}a=(0,H.pipe)(a,k.map((function(e){var t=e[0],a=e[1];r[i.label].matches+=1,t.push(i.transformJson.context);for(var s=function(e){var t=i.transformJson.alternatives[e];o(t,(function(t){return n[e].replacements.add(t)})),a[e]=(0,H.pipe)(new C(a[e]),(function(e){return e.compose(e.transform(new C(wt.prependContext(i.transformJson.context,!0)(t)),!0))}),at.AbsAlternative.unsafeFromDelta)},u=0;u0}),(function(e){return e.labels.length>0}))},e.mock={id:e.Id.create(""),rev:0,pname:"Spelling/BritishVsAmerican/BrInstOfAm/BrInstOfAm",group:"ContextualSpelling",point:"BrInstOfAm",category:"BritishVsAmerican",categoryHuman:"British vs American",hidden:!1,text:"centralise",todo:"correct",minicardTitle:"correct",title:"Inconsistent spelling",cost:1,transforms:["centralise\u2192centralize"],details:"

One of the most obvious differences between American and British English is the spelling of certain words such as color/colour, learned/learnt, and toward/towards. Typically, the spelling of words like these only varies by one or two letters. In the interest of consistency and clarity, you should use the spelling that will be more familiar to your intended audience.\n",explanation:"

The word centralise is a British English spelling. In the interest of consistency, consider replacing it with the American English spelling.\n",examples:'

British: I wish you success in all your endeavours.
American: I wish you success in all your endeavors.

British: Sweet yoghurts contain a lot of sugar.
American: Sweet yogurts contain a lot of sugar.

British: Serena moved towards the blinking light.
American: Serena moved toward the blinking light.
',free:!0,impact:e.Impact.Critical,highlightBegin:5092,highlightEnd:5102,highlightText:[""],begin:5092,end:5102,replacements:["centralize"],extra_properties:{priority:"2"},cardLayout:{bundle:"Fix spelling and grammar",bundleRank:10,group:"Spelling",rank:10,outcome:"Correctness"},transformJson:Ct.create({highlights:[{s:5092,e:5102}],alternatives:k.none}),view:n.all,inline:r.inline},e.mockPlagiarism={id:e.Id.create(""),rev:0,transforms:[],title:"Citation audit",cost:1,details:"",explanation:"",examples:"",free:!1,impact:e.Impact.Advanced,hidden:!1,todo:"",minicardTitle:"",cardLayout:{bundle:"Plagiarism",bundleRank:10,group:"Unoriginal content",rank:0,outcome:"Originality"},category:"Plagiarism",categoryHuman:"Unoriginal content",begin:156,end:697,text:"",group:"Plagiarism",pname:"Plagiarism/Plagiarism/UnoriginalContent",point:"UnoriginalContent",highlightBegin:156,highlightEnd:697,highlightText:[""],replacements:[],extra_properties:{},transformJson:Ct.create({highlights:[{s:1,e:40}],alternatives:k.none}),view:n.all,inline:r.not_inline},e.mockWithSubalerts={id:e.Id.create(""),point:"Capitalization",title:"Inconsistent capitalization",details:"

For certain words, capitalization preferences can vary between style guides. Internet was once routinely capitalized, for example. However, in recent years many style guides have begun advising writers to lowercase the word: internet. Whether you choose to capitalize a particular term or not, it\u2019s best to choose one style and use it consistently throughout the same document.\n",explanation:"

You wrote Country once and country twice. Both spellings are acceptable, but it\u2019s best not to switch back and forth. Choose whether or not to capitalize this word throughout your text.\n",examples:'

Inconsistent: Office life was different before the Internet. Education has changed because of the internet, too.
Consistent: Office life was different before the internet. Education has changed because of the internet, too.
Consistent: Office life was different before the Internet. Education has changed because of the Internet, too.
',todo:"capitalize consistently",minicardTitle:"capitalize consistently",free:!1,hidden:!1,labels:[{label:"Country",matches:1,replacementTexts:["Country"]},{label:"country",matches:2,replacementTexts:["country"]}],highlightText:["Country","country"],cost:1,subalerts:Ct.create({highlights:[{s:144,e:162},{s:755,e:778},{s:1458,e:1481}],alternatives:k.some(ct.Group.fromSubalerts([{s:144,e:162},{s:755,e:778},{s:1458,e:1481}],[at.AbsAlternative.unsafeFromDelta({ops:[{retain:144,attributes:{type:at.Edit.TypeExt.OPTIONAL_CONTEXT}},{delete:7,attributes:{type:at.Edit.Type.MAIN}},{insert:"Country",attributes:{type:at.Edit.Type.MAIN}}]}),at.AbsAlternative.unsafeFromDelta({ops:[{retain:144,attributes:{type:at.Edit.TypeExt.OPTIONAL_CONTEXT}},{delete:7,attributes:{type:at.Edit.Type.MAIN}},{insert:"country",attributes:{type:at.Edit.Type.MAIN}}]})]))}),category:"Inconsistency",text:"",group:"Style",pname:"Style/Inconsistency/Capitalization/Capitalization",rev:0,replacements:[],impact:t.Advanced,extra_properties:{priority:"4"},cardLayout:{bundle:"Keep your style consistent",bundleRank:10,group:"Consistency",rank:160,outcome:"Correctness"},categoryHuman:"Text Inconsistencies",updatable:!0,view:n.all,inline:r.not_inline},e.clearUserTextFields=function(e){var t=e;return t.text,t.replacements,t.highlightText,t.transformJson,t.transforms,t.details,t.explanation,t.examples,(0,D.__rest)(t,["text","replacements","highlightText","transformJson","transforms","details","explanation","examples"])},e.unsafeGetPosition=function(e){return(0,M.kG)(u(e),"raw alert should have a position"),e},e.unsafeGetTransformJson=function(e){return(0,M.kG)(m(e),"raw alert should have transformJson"),e}}(At||(At={})),function(e){e.NOT_AUTHORIZED="not_authorized",e.SESSION_NOT_INITIALIZED="session_not_initialized",e.BAD_REQUEST="bad_request",e.BACKEND_ERROR="backend_error",e.AUTH_ERROR="auth_error",e.RUNTIME_ERROR="runtime_error",e.ILLEGAL_DICT_WORD="illegal_dict_word",e.TIMEOUT="timeout",e.CANNOT_FIND_SYNONYM="cannot_find_synonym",e.CANNOT_GET_TEXT_STATS="cannot_get_text_stats",e.GB_RULE_ERROR="gb_rule_error"}(_t||(_t={})),function(e){e[e.INFO=0]="INFO",e[e.WARN=1]="WARN",e[e.ERROR=2]="ERROR"}(Ht||(Ht={})),function(e){e.IGNORE="IGNORE",e.ADD_TO_DICTIONARY="ADD_TO_DICTIONARY",e.LOOKED="LOOKED",e.ACCEPTED="ACCEPTED",e.CLOSED="CLOSED",e.ACKNOWLEDGED="ACKNOWLEDGED",e.HIDE="HIDE",e.LIKE="LIKE",e.DISLIKE="DISLIKE",e.WRONG_SUGGESTION="WRONG_SUGGESTION",e.OFFENSIVE_CONTENT="OFFENSIVE_CONTENT",e.EXPANDED="EXPANDED",e.IGNORE_BULK_ACCEPTED="IGNORE_BULK_ACCEPTED"}(kt||(kt={})),function(e){e.DRILLDOWN="DRILLDOWN"}(Pt||(Pt={})),function(e){e.BULK_ACCEPTED="BULK_ACCEPTED"}(Nt||(Nt={})),function(e){e.LENS_CLOSE="LENS_CLOSE",e.LENS_OPEN="LENS_OPEN",e.DISMISS_BY_LENS="DISMISS_BY_LENS"}(Tt||(Tt={})),function(e){e.EMOTION_LIKE="EMOTION_LIKE",e.EMOTION_DISLIKE="EMOTION_DISLIKE",e.EMOTION_OFFENSIVE="EMOTION_OFFENSIVE"}(Rt||(Rt={})),function(e){e.EMOTION_SENTENCE_LIKE="EMOTION_SENTENCE_LIKE",e.EMOTION_SENTENCE_DISLIKE="EMOTION_SENTENCE_DISLIKE"}(Bt||(Bt={})),function(e){e.RECHECK_SHOWN="RECHECK_SHOWN"}(Dt||(Dt={})),function(e){e.SYNONYM_ACCEPTED="SYNONYM_ACCEPTED",e.SYNONYM_DISMISSED="SYNONYM_DISMISSED"}(Ft||(Ft={})),function(e){e.MUTE="MUTE",e.UNMUTE="UNMUTE"}(It||(It={})),function(e){e.AUTOCORRECT_ACCEPT="AUTOCORRECT_ACCEPT",e.AUTOCORRECT_DISMISS="AUTOCORRECT_DISMISS",e.AUTOCORRECT_REPLACE="AUTOCORRECT_REPLACE"}(xt||(xt={})),function(e){e.COMPLETION_SHOWN="COMPLETION_SHOWN",e.COMPLETION_IGNORED="COMPLETION_IGNORED",e.COMPLETION_ACCEPTED="COMPLETION_ACCEPTED",e.COMPLETION_REJECTED="COMPLETION_REJECTED"}(Ot||(Ot={})),function(e){e.AUTOAPPLY_TRIGGERED="AUTOAPPLY_TRIGGERED",e.AUTOAPPLY_LOOKED="AUTOAPPLY_LOOKED",e.AUTOAPPLY_REVERTED="AUTOAPPLY_REVERTED"}(Lt||(Lt={})),function(e){e.SNIPPET_ACCEPTED="SNIPPET_ACCEPTED"}(jt||(jt={})),function(e){e.ASSISTANT_OPENED="ASSISTANT_OPENED"}(zt||(zt={})),function(e){e.ACCEPTED="ACCEPTED",e.DISMISSED="DISMISSED"}(Qt||(Qt={})),function(e){e.willRemoveAlert=function(e){return e===kt.IGNORE||e===kt.OFFENSIVE_CONTENT||e===kt.WRONG_SUGGESTION||e===kt.ADD_TO_DICTIONARY||e===kt.LIKE||e===kt.DISLIKE||e===kt.ACKNOWLEDGED||e===kt.HIDE}}(Gt||(Gt={})),function(e){e.Inline="inline",e.Hover="hover",e.Click="click",e.SidebarPriority="sidebar-priority",e.Sidebar="sidebar"}(Wt||(Wt={})),function(e){e.Context="context",e.GnarContainerId="gnar_containerId"}(Ut||(Ut={})),function(e){e.likelyToBeReadTakeaway="LikelyToRead",e.unlikelyToBeReadTakeaway="NotLikelyToRead"}(Xt||(Xt={}));var Kt,Yt,Zt,Vt,$t=300;function qt(e,t){var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return n>=55296&&n<57344&&r>=56320&&r<57344}function en(e){return function(e){for(var t,n,r=0,i=e.length,o=0;o=55296&&t<57344&&t<56320&&o+1=56320&&n<57344?(r+=4,o++):r+=t<128?1:t<2048?2:3;return r}(e)/1e3}!function(e){e.generatePoints=function(e,t,n){var r=function(e,t){return Math.max(Math.trunc(e/t),(0,P.TN)(e))};return T.mapNTimes(r(e,2),(function(e){return T.mapNTimes(r(t,3),(function(t){return{value:Math.random()*n,alertIds:[],footprint:"".concat(100*e+t)}}))}))}}(Kt||(Kt={})),function(e){!function(e){e.create=function(e){return e.toString()}}(e.Id||(e.Id={}))}(Yt||(Yt={})),function(e){e.NotFixed="NOT_FIXED"}(Zt||(Zt={})),function(e){e.is=function(){for(var e=[],t=0;t0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._changes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCommitedChanges",{get:function(){return this._changes.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localRevision",{get:function(){return this._revision},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stagedAmount",{get:function(){return this._stagedAmount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChanges",{get:function(){return this._changes.some(tn.isChange)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._changes.length},enumerable:!1,configurable:!0}),e.prototype.poll=function(){var e=this;return(0,M.kG)(null===this._stagedOperationId,"Should not be in staging mode"),(0,H.pipe)(k.fromNullable(this._changes.shift()),k.map((function(t){return tn.isCmd(t)||e._staged.push(t),e._stagedOperationId=t.id,t})))},e.prototype.shift=function(){return k.fromNullable(this._changes.shift())},e.prototype.peek=function(){return this.isEmpty?k.none:k.fromNullable(this._changes[0])},e.prototype.ackOperation=function(e){(0,M.kG)(!!this._stagedOperationId&&e===this._stagedOperationId,"Cannot ack operation by wrong id. Expected: '".concat(this._stagedOperationId,", got: '").concat(e,"'")),this._stagedOperationId=null},e.prototype.ackRevision=function(e){this._ackedRevisions.add(e),this._cleanStaged()},e.prototype.transformAlertAgainstQueue=function(t){var n=this._getQueuedDeltaAndLatestRevision(t.rev),r=(0,H.pipe)(At.hasPosition(t)?e._transformPosition(t,n.delta):k.some(t),k.map((function(e){return h.update(e,{rev:n.latestRev})})));return(0,H.pipe)(r,k.chain(At.matchBy(k.some,(function(e){var t=Ct.rebase(e.transformJson,n.delta);return(!0===e.updatable?Ct.isSquashed(t):!Ct.isValidAfterTransform(e.transformJson,t))?k.none:k.some(h.update(e,{transformJson:t}))}),(function(e){var t=Ct.rebase(e.subalerts,n.delta);return Ct.isSquashed(t)?k.none:k.some(h.update(e,{subalerts:t}))}))))},e.prototype.transformAttentionHeatmapAgainstQueue=function(e){var t=this._getQueuedDeltaAndLatestRevision(e.rev),n=function(e){return e.map((function(e){return St.Range.rebase(e,t.delta)}))},r=n(e.update),i=r.filter(St.Range.isSquashed).map((function(e){return e.id}));return h.update(e,{rev:t.latestRev,add:n(e.add).filter((0,m.not)(St.Range.isSquashed)),update:r.filter((0,m.not)(St.Range.isSquashed)),remove:(0,D.__spreadArray)((0,D.__spreadArray)([],e.remove,!0),i,!0)})},e.prototype.clear=function(e){var t=(0,D.__spreadArray)((0,D.__spreadArray)([],this._changes,!0),this._staged,!0);this._changes=[],this._staged=[],this._stagedOperationId=null,this._ackedRevisions=new Set,this._revision=0,t.length>0&&this._dropMessages(t,e)},e.prototype._tail=function(){return this.isEmpty?k.none:k.fromNullable(this._changes[this._changes.length-1])},e.prototype._enqueueChange=function(e,t){var n,r=this,i=this._revision++;if(this._changeStagedAmount(e.amount),1===t.length)n=this._idGenerator(),this._changes.push({kind:"change",change:e,id:n,rev:i,deltasString:t[0]});else{this._log.trace("change is larger than maximum allowed size, splitting to chunks",t.length);var o=t.map((function(e){return{id:r._idGenerator(),chunk:e}}));n=this._idGenerator(),this._changes.push({kind:"change_chunked",change:e,id:n,rev:i,chunks:o})}return n},e.prototype._replaceChange=function(e,t,n){var r=this,i=this._changes[e];(0,M.kG)(tn.isChange(i),"queued change should exist");var o=i;this._changeStagedAmount(-o.change.amount+t.amount),n.length>1?this._changes[e]=(0,D.__assign)((0,D.__assign)({},o),{kind:"change_chunked",chunks:n.map((function(e){return{id:r._idGenerator(),chunk:e}}))}):this._changes[e]=(0,D.__assign)((0,D.__assign)({},o),{kind:"change",change:t,deltasString:n[0]})},e.prototype._cleanStaged=function(){for(;void 0!==this._staged[0]&&this._ackedRevisions.has(this._staged[0].rev);){var e=this._staged.shift();this._ackedRevisions.delete(e.rev),this._acceptMessage(e)}},e.prototype._changeStagedAmount=function(e){this._stagedAmount+=e},e.prototype._getQueuedDeltaAndLatestRevision=function(e){var t=this._staged.filter((function(t){return t.rev>e})).concat(this._changes).filter(tn.isChange);return{delta:g.squash(t.map((function(e){return e.change.delta}))),latestRev:(0,H.pipe)(Mt.last(t),k.map((function(e){return e.rev})),k.getOrElse((function(){return e})))}},e.prototype.toJSON=function(){return{isEmpty:this.isEmpty,isStaging:this.isStaging,changes:this._changes.map((function(e){return tn.isChange(e)?{kind:"change",prevLen:e.change.prevLen,changeDiff:e.change.length,changeAmount:e.change.amount}:e}))}},e._transformPosition=function(e,t){var n=At.Position.rebase(e,t);return(!0===e.updatable?At.Position.isSquashed(n):!At.Position.hasEqualLength(e,n))?k.none:k.some(h.update(e,n))},e}();!function(e){e.fromRaw=function(e){return(0,D.__assign)((0,D.__assign)({},e),{suggestionsCard:(0,H.pipe)(k.fromNullable(e.suggestionsCard),k.map((function(e){return{title:e.title,miniTitle:k.fromNullable(e.miniTitle)}}))),successCard:(0,H.pipe)(k.fromNullable(e.successCard),k.map((function(e){return{title:e.title,miniTitle:k.fromNullable(e.miniTitle)}}))),defaultCard:(0,D.__assign)((0,D.__assign)({},e.defaultCard),{miniTitle:k.fromNullable(e.defaultCard.miniTitle),details:k.fromNullable(e.defaultCard.details)})})}}(on||(on={})),function(e){function t(e,t){var n=t/60,r=de.secondsToTime(e/n);return r.s=r.h>0&&r.m>10?0:Math.floor(r.s),r}e.calculateReadingTime=function(e){return t(e,250)},e.calculateSpeakingTime=function(e){return t(e,130)},e.generateStats=function(t,n){var r={words:t,chars:n,sentences:Math.floor(t/5),readingTime:{},speakingTime:{},uniqueWords:40*Math.random(),uniqueWordsIndex:100*Math.random(),rareWords:20*Math.random(),rareWordsIndex:100*Math.random(),wordLength:5.4,wordLengthIndex:100*Math.random(),sentenceLength:16.7,sentenceLengthIndex:100*Math.random(),readabilityScore:73,readabilityDescription:"Your text is likely to be understood by a reader who has at least 7th grade education (age 12)"};return r.readingTime=e.calculateReadingTime(r.words),r.speakingTime=e.calculateSpeakingTime(r.words),r}}(an||(an={})),function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.WAITING_FOR_OT=3]="WAITING_FOR_OT",e[e.WAITING_FOR_ACK=4]="WAITING_FOR_ACK",e[e.SESSION_INBOUND=5]="SESSION_INBOUND",e[e.ANY=6]="ANY",e[e.CLOSED=7]="CLOSED"}(sn||(sn={})),function(e){e[e.CONNECT=0]="CONNECT",e[e.CONNECTED=1]="CONNECTED",e[e.DISCONNECT=2]="DISCONNECT",e[e.WAIT=3]="WAIT",e[e.READY=4]="READY",e[e.SEND=5]="SEND",e[e.ACK=6]="ACK",e[e.CLOSE=7]="CLOSE"}(un||(un={})),function(e){e.getUnsafe=function(){return(0,m.flow)(m.unsafeCoerce,_.right)}}(cn||(cn={}));var mn,ln=function(e){if("string"===typeof e)return e;switch(e.action){case"submit_ot":if(e.chunked)return JSON.stringify(e);var t=(0,D.__assign)((0,D.__assign)({},e),{deltasString:void 0,deltas:void 0}),n=JSON.stringify(t);return n.substring(0,n.length-1)+',"deltas": '.concat(e.deltasString,"}");default:return JSON.stringify(e)}},dn=function(){function e(e,t,n,r){var i=this,o=e.context,a=void 0===o?void 0:o,s=e.dialect,u=void 0===s?"undefined":s,c=e.client,M=e.clientVersion,l=void 0===M?"":M,d=e.extDomain,h=void 0===d?void 0:d,f=e.sendDelay,p=void 0===f?50:f,y=e.docid,g=void 0===y?"":y,E=e.clientSupports,b=void 0===E?[]:E,w=e.sduiConfig,S=e.sduiProtocolVersion,C=void 0===S?void 0:S,A=e.isDemoDoc,_=void 0!==A&&A,N=e.maxMessageSizeKb,T=e.messagePaddingKb,R=e.startSessionOptions,B=void 0===R?{}:R,F=e.idGenerator,I=void 0===F?new Je(Jt,0,!1):F,x=e.shouldSendFeedback,O=void 0===x?m.constTrue:x;this._connectionOptions=r,this._log=Me.Monitoring.Logging.getLogger("coreclients.capi",he.LogLevel.TRACE),this._queueIdGenerator=new Je(Jt,0,!1),this._textSize=0,this._asyncChecksManager=new hn,this._initialSessionUuid=null,this._pingsMap=new Map,this._validateAlert=mn.validate,this._statsRequester=new ot(15e3,"CAPI.DocStats"),this._synonymsRequester=new ot(15e3,"CAPI.Synonyms"),this._snippetsRequester=new ot(15e3,"CAPI.Snippets"),this._getTextRequester=new ot(15e3,"CAPI.Text"),this._commandsRequester=new ot(15e3,"CAPI.Commands"),this._otChunksNotifier=new it(15e3,"CAPI.OT.Chunks"),this.reportLensFeedback=function(e,t){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:t,lens:e},i._commandsRequester)},this.reportSystemFeedback=function(e){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:e},i._commandsRequester)},this.reportEmotionFeedback=function(e,t,n){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:t,emotion:e,subtype:n},i._commandsRequester)},this.reportEmotionSentenceFeedback=function(e,t){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:t,alertId:e},i._commandsRequester)},this.reportMuteFeedback=function(e,t,n){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:n,userMuteScope:t,userMuteCategories:e},i._commandsRequester)},this.reportAutocorrectFeedback=function(e,t){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:e,before:t.before,after:t.after,context:t.context,expected:t.expected},i._commandsRequester)},this.reportAutocompleteFeedback=function(e,t){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:e,alertId:t.alertId,begin:t.begin,end:t.end,context:t.context,before:t.before,after:t.after,text:t.text,pname:t.pname},i._commandsRequester)},this.reportAutocompleteRejectedFeedback=function(e){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:Ot.COMPLETION_REJECTED,alertId:e.alertId,begin:e.begin,end:e.end,context:e.context,before:e.before,after:e.after,text:e.text,pname:e.pname,subtype:e.subtype},i._commandsRequester)},this.reportSnippetFeedback=function(e,t){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"feedback",type:e,snippetUuid:t},i._commandsRequester)},this.requestSynonyms=function(e,t){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"synonyms",begin:e,token:t},i._synonymsRequester)},this.requestSnippets=function(e){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"get_snippets_list",institutionId:e},i._snippetsRequester)},this.shortenItSubmit=function(e){return(0,H.pipe)(Ee.rightIO((function(){i._log.trace("shorten-it submit")})),Ee.chain((function(){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"shorten_it_submit",alertId:e},i._commandsRequester)})))},this.requestDocStats=this._sendLazyInbandCommand((function(){return{id:i._idGenerator.newId(),action:"get_text_stats"}}),this._statsRequester),this.enablePlagiarismSearch=(0,H.pipe)(Ee.rightIO((function(){i._log.trace("Enable plagiarism search"),i._asyncChecksManager.resetCheck("plagiarism")})),Ee.chain((function(){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"toggle_checks",checks:{plagiarism:!0}},i._commandsRequester)}))),this.disablePlagiarismSearch=this._sendLazyInbandCommand((function(){return{id:i._idGenerator.newId(),action:"toggle_checks",checks:{plagiarism:!1}}}),this._commandsRequester),this.realtimeProofitSubmit=function(e){return i._log.trace("Submit real-time Proofit job"),i._sendInbandCommand({id:i._idGenerator.newId(),action:"realtime_proofit_submit",reconnect:e},i._commandsRequester)},this.realtimeProofitCancel=(0,H.pipe)(Ee.rightIO((function(){i._log.trace("Cancel real-time Proofit job")})),Ee.chain((function(){return i._sendInbandCommand({id:i._idGenerator.newId(),action:"realtime_proofit_cancel"},i._commandsRequester)}))),this.submitRecipients=function(e){return i._log.trace("Submit recipients for better suggestions!"),i._sendInbandCommand({id:i._idGenerator.newId(),action:"submit_recipients",recipients:e},i._commandsRequester)},this.submitScoreSurveyResult=function(e,t){return i._log.trace("Submit score survey result:",{placement:e,score:t}),i._sendInbandCommand({id:i._idGenerator.newId(),action:"submit_survey_result",type:ft.Survey.Data.ScoreSurvey.type,placement:e,score:t},i._commandsRequester)},this.ping=this._sendLazyInbandCommand((function(){return{id:i._idGenerator.newId(),action:"ping"}}),this._commandsRequester),this.canGoIdle=function(){return i._changesQueue.isEmpty&&!i._changesQueue.isStaging},this.isStable=function(e){var t=void 0===e?i._idGenerator.id:i._idGenerator.id+1;return(void 0===e||"error"!==e.action)&&t>5},this.updateContextInfo=function(e){return i._log.trace("Update thread context info"),i._sendInbandCommand({id:i._idGenerator.newId(),action:"update_context_info",docContext:e},i._commandsRequester)},this.published=function(){return i._log.trace("Send published event"),i._sendInbandCommand({id:i._idGenerator.newId(),action:"published"},i._commandsRequester)},this._startSession=function(){return(0,D.__awaiter)(i,void 0,void 0,(function(){var e,t,n,r;return(0,D.__generator)(this,(function(i){switch(i.label){case 0:return this._log.trace("_startSession"),this._idGenerator.reset(),this._queueIdGenerator.reset(),e="session start",this._clear(e),this._commandsRequester.clear(e),this._statsRequester.clear(e),this._synonymsRequester.clear(e),this._getTextRequester.clear(e),"function"!=typeof this._startSessionOptions?[3,2]:[4,this._startSessionOptions()];case 1:return n=i.sent(),[3,3];case 2:n=this._startSessionOptions,i.label=3;case 3:return t=n,r=(0,D.__assign)((0,D.__assign)((0,D.__assign)({id:this._idGenerator.newId(),action:"start",client:this._client.type,clientSubtype:this._client.sub,clientVersion:this._clientVersion,dialect:this._dialect,docid:this._docid,extDomain:this._extDomain,documentContext:this._context&&Fe.serialize(this._context),clientSupports:this._clientSupports,isDemoDoc:this._isDemoDoc},null!==this._initialSessionUuid?{reconnectInfo:{sessionUuid:this._initialSessionUuid}}:{}),void 0!==this._sduiConfig?{sdui:this._sduiConfig}:{}),t),this._queueIdGenerator.newId(),[4,this._fsm.event(un.SEND)];case 4:return i.sent(),this._sendMessage(r),[2]}}))}))},this._handleStart=function(e){i._log.trace("_handleStart"),i._fsm.event(un.ACK);var t=e.userMutedCategories,n=e.domainCategory,r=e.domainName,o=e.isEnterprise,a=e.defaultDocumentContext,s=e.sessionUuid;i._initialSessionUuid=null===i._initialSessionUuid?s:i._initialSessionUuid,i._handler.onSessionStarted({kind:"session_started",userMutedCategories:t,domainCategory:n,domainName:r,isEnterprise:o,defaultDocumentContext:Fe.parseDefault(a),sessionUuid:s}),i._fsm.is(sn.CONNECTED)&&i._fsm.event(un.WAIT)},this._waitForSubmitOt=function(){i._handler.onWaitForOT({kind:"wait_for_ot"})},this._sessionInbound=function(e){i._handler.onSessionInbound({kind:"session_inbound"}),i._trySend(e)},this._canSend=function(){return!i._fsm.is(sn.DISCONNECTED,sn.CONNECTING,sn.CLOSED)},this._send=function(){return(0,D.__awaiter)(i,void 0,void 0,(function(){var e,t,n=this;return(0,D.__generator)(this,(function(r){switch(r.label){case 0:return this._resetTimer(),this._fsm.is(sn.SESSION_INBOUND)&&this._changesQueue.hasCommitedChanges?[4,this._fsm.event(un.SEND)]:[3,6];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),e=this._changesQueue.poll(),[4,(0,H.pipe)(e,k.map((function(e){return(0,D.__awaiter)(n,void 0,void 0,(function(){var t;return(0,D.__generator)(this,(function(n){switch(n.label){case 0:return t=tn.isChange(e),[4,this._sendMessage(this._processQueueMessage(e))];case 1:return n.sent(),t?[3,3]:(this._log.trace("message sent is not Change, firing CAPI FSM ACK immediately"),[4,this._fsm.event(un.ACK)]);case 2:n.sent()?this._changesQueue.ackOperation(e.id):this._log.debug("can not do ack for non change msg because we are in unexpected state",{state:sn[this._fsm.current]}),n.label=3;case 3:return[2]}}))}))})))];case 3:return r.sent(),[3,5];case 4:return t=r.sent(),this._log.error("unexpected error on sending",t),[3,5];case 5:return[3,7];case 6:this._trySend(this._fsm.current),r.label=7;case 7:return[2]}}))}))},this._processQueueMessage=function(e){return tn.isChange(e)?i._processSubmitOTMessage(e):i._shouldHaveSeparateRevision(e.cmd)?(0,D.__assign)((0,D.__assign)({},e.cmd),{rev:e.rev,id:e.id}):(0,D.__assign)((0,D.__assign)({},e.cmd),{id:e.id})},this._resetTimer=function(){void 0!==i._timeout&&(clearTimeout(i._timeout),i._timeout=void 0)},this._onQueueMsgAccepted=function(e){i._handler.onQueueMsgAccepted({kind:"queue_msg_accepted",message:e})},this._onQueueMsgDropped=function(e,t){e.filter(tn.isCmd).forEach((function(e){var n=new $e("message dropped from queue:"+t);switch(e.cmd.action){case"ping":case"option":case"toggle_checks":case"set_context":case"feedback":i._commandsRequester.onError(e.id,n);break;case"get_text_stats":i._statsRequester.onError(e.id,n);break;case"synonyms":i._synonymsRequester.onError(e.id,n);break;case"get_debug_info":i._getTextRequester.onError(e.id,n)}})),i._handler.onQueueMsgDropped({kind:"queue_msgs_dropped",messages:e,reason:t})},this._handler=t,this._context=a,this._dialect=u,this._client=c,this._clientVersion=l,this._extDomain=h,this._sendDelay=p,this._docid=g,this._clientSupports=b,this._isDemoDoc=_,this._startSessionOptions=B,this._idGenerator=I,this._shouldSendFeedback=O;var L=null===w||void 0===w?void 0:w.dslParser;if(void 0!==w){var j=(0,H.pipe)(w.supportedComponents,ge.filter(m.identity),ge.collect(m.identity));this._sduiConfig={supportedComponents:j,protocol:null!=C?C:ht.v1,dslSchema:w.dslSchemaVersion}}this._changesQueue=new Mn(this._shouldHaveSeparateRevision,this._onQueueMsgAccepted,this._onQueueMsgDropped,(function(){return i._queueIdGenerator.newId()}),N,T),this._fsm=new Qe("capi",sn.DISCONNECTED,sn.CLOSED).with(sn.ANY).parentOf(sn.CONNECTED,sn.CONNECTING,sn.DISCONNECTED,sn.WAITING_FOR_OT,sn.WAITING_FOR_ACK,sn.SESSION_INBOUND).from(sn.ANY).to(sn.CLOSED).on(un.CLOSE).from(sn.DISCONNECTED).to(sn.CONNECTING).on(un.CONNECT).from(sn.CONNECTING).to(sn.CONNECTING).on(un.CONNECT).from(sn.CONNECTING).to(sn.CONNECTED).on(un.CONNECTED).from(sn.CONNECTED,sn.WAITING_FOR_OT,sn.WAITING_FOR_ACK,sn.SESSION_INBOUND,sn.CONNECTING).to(sn.DISCONNECTED).on(un.DISCONNECT).from(sn.CONNECTED).to(sn.WAITING_FOR_OT).on(un.WAIT).from(sn.CONNECTED,sn.WAITING_FOR_OT).to(sn.SESSION_INBOUND).on(un.READY).from(sn.SESSION_INBOUND).to(sn.WAITING_FOR_ACK).on(un.SEND).from(sn.WAITING_FOR_ACK).to(sn.SESSION_INBOUND).on(un.ACK).on(sn.CONNECTED,this._startSession).on(sn.WAITING_FOR_OT,this._waitForSubmitOt).on(sn.SESSION_INBOUND,(function(e){return i._sessionInbound(e.to)})).on(sn.DISCONNECTED,(function(e){return i._clear(e.args)})),this._log.isEnabled(he.LogLevel.TRACE)&&this._fsm.verbose(sn,un),n.onConnecting((function(){return i._handleConnecting()})).onConnect((function(e){return i._handleConnect(e)})).onDisconnect((function(e){return i._handleDisconnect(e)})).onMessage((function(e,t){return i._handleMessage(t,L)})),(0,P.iR)("closeCapiSocket",(function(e,t){void 0===e&&(e=1e3),null!==i._conn&&i._conn._ws.close(e,t)})),(0,P.iR)("capiState",this),(0,P.iR)("capiReadyToReceive",(function(){return i._fsm.is(sn.SESSION_INBOUND)&&i._changesQueue.isEmpty})),(0,P.iR)("capiRuntimeError",(function(){var e=v.ins(0,"test",100500);i.pushChanges(e)}))}return e.prototype.pushChanges=function(e){return this._pushChangesTask(e)},Object.defineProperty(e.prototype,"checkingState",{get:function(){return 0===this._checkedTextSize||1===this._textSize?"idle":this._checkedTextSize>$t&&this._textSize>$t/3?"full":"checking"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"asyncChecksState",{get:function(){return this._asyncChecksManager.getState()},enumerable:!1,configurable:!0}),e.prototype.setSessionOption=function(e){switch(e.kind){case Ut.Context:return this.setContext(e.context);case Ut.GnarContainerId:return this.setOption(e.kind,e.id);default:return(0,M.vE)(e)}},e.prototype.setContext=function(e){return this._log.debug("setContext(...)"),this._context=e,this._sendInbandCommand({action:"set_context",id:this._idGenerator.newId(),rev:-1,documentContext:Fe.serialize(e)},this._commandsRequester)},e.prototype.setOption=function(e,t){return this._log.trace("Set option "+t),this._sendInbandCommand({id:this._idGenerator.newId(),action:"option",name:e,value:t},this._commandsRequester)},e.prototype.sendUserAction=function(e,t){var n=this;return this._log.debug("sendUserAction",{componentId:e,userAction:t}),(0,H.pipe)(this._connectionOptions.getSessionId(),_.fromOption((function(){return new Error("Can not sendUserAction because sessionId is empty")})),Ee.fromEither,Ee.chain((function(r){return n._sendInbandCommand({id:n._idGenerator.newId(),action:"user_action",sessionId:r,componentId:e,userAction:t},n._commandsRequester)})))},e.prototype.sendDebugReport=function(e,t){return this._log.debug("sendDebugReport",{alertId:e,errorMessage:t}),this._sendInbandCommand({id:this._idGenerator.newId(),action:"debug_report",type:"sdui_decode_error",alertId:e,errorMessage:t},this._commandsRequester)},e.prototype.sendFeedback=function(e){if(this._log.debug("sendFeedback",e.kind),!this._shouldSendFeedback(e))return this._log.debug("Skip sending ".concat(e.kind," based on CAPI Client configured, see 'shouldSendFeedback'")),Ee.of(void 0);switch(e.kind){case kt.ACCEPTED:return this._sendAlertAcceptedFeedback(e);case kt.IGNORE:return this.reportIgnoreFeedback(e.id,e.reason,e.subtype,e.pnameQualifier,e.drilldownSuggestionIds);case kt.ACKNOWLEDGED:return this.reportAcknowledgeFeedback(e.id,e.subtype,e.text,e.pnameQualifier);case kt.ADD_TO_DICTIONARY:case kt.LOOKED:case kt.CLOSED:case kt.LIKE:case kt.DISLIKE:case kt.WRONG_SUGGESTION:case kt.OFFENSIVE_CONTENT:case kt.EXPANDED:case kt.IGNORE_BULK_ACCEPTED:case kt.HIDE:return this.reportAlertFeedback(e.id,e.kind,e.subtype);case Pt.DRILLDOWN:return this._reportDrilldownFeedback(e.id,e.alternativeIndex,e.drilldownSuggestionIds,e.subtype);case Ft.SYNONYM_ACCEPTED:return this.reportSynonymFeedback(e.id,e.kind,e.replacementText,e.subtype);case Ft.SYNONYM_DISMISSED:return this.reportSynonymFeedback(e.id,e.kind,e.subtype);case Rt.EMOTION_LIKE:case Rt.EMOTION_DISLIKE:case Rt.EMOTION_OFFENSIVE:return this.reportEmotionFeedback(e.emotionName,e.kind,e.subtype);case Bt.EMOTION_SENTENCE_LIKE:case Bt.EMOTION_SENTENCE_DISLIKE:return this.reportEmotionSentenceFeedback(e.id,e.kind);case It.MUTE:case It.UNMUTE:return this.reportMuteFeedback(e.userMuteCategories,e.userMuteScope,e.kind);case Dt.RECHECK_SHOWN:return this.reportSystemFeedback(e.kind);case Tt.LENS_CLOSE:case Tt.LENS_OPEN:case Tt.DISMISS_BY_LENS:return this.reportLensFeedback(e.lensName,e.kind);case xt.AUTOCORRECT_ACCEPT:case xt.AUTOCORRECT_DISMISS:case xt.AUTOCORRECT_REPLACE:return this.reportAutocorrectFeedback(e.kind,e);case Ot.COMPLETION_REJECTED:return this.reportAutocompleteRejectedFeedback(e);case Ot.COMPLETION_ACCEPTED:case Ot.COMPLETION_IGNORED:case Ot.COMPLETION_SHOWN:return this.reportAutocompleteFeedback(e.kind,e);case Nt.BULK_ACCEPTED:return this.reportAlertsBatchFeedback(e.alertIds,e.kind,e.subtype);case jt.SNIPPET_ACCEPTED:return this.reportSnippetFeedback(e.kind,e.snippetUuid);case zt.ASSISTANT_OPENED:return this._reportAssistantFeedback(e.kind);case Lt.AUTOAPPLY_TRIGGERED:case Lt.AUTOAPPLY_LOOKED:case Lt.AUTOAPPLY_REVERTED:return this._reportAutoapplyFeedback(e.alertId,e.kind,e.subtype);default:return(0,M.vE)(e)}},e.prototype._reportDrilldownFeedback=function(e,t,n,r){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:Pt.DRILLDOWN,alertId:e,alternativeIndex:t,drilldownSuggestionIds:n,subtype:r},this._commandsRequester)},e.prototype._reportAssistantFeedback=function(e){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:e},this._commandsRequester)},e.prototype._sendAlertAcceptedFeedback=function(e){return"replacementText"in e?this._reportTextAlertAcceptedFeedback(e.id,e.replacementText,e.subtype,e.reason,e.gbPrompt):"alternativeIndex"in e?this._reportTransformJsonAlertAcceptedFeedback(e.id,e.alternativeIndex,e.gapValue,e.subtype,e.drilldownSuggestionIds,e.dismissedTransformGroups,e.reason,e.gbPrompt):(0,M.vE)(e)},e.prototype.reportIgnoreFeedback=function(e,t,n,r,i){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:kt.IGNORE,alertId:e,userReason:t,subtype:n,pnameQualifier:r,drilldownSuggestionIds:i},this._commandsRequester)},e.prototype.reportAcknowledgeFeedback=function(e,t,n,r){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:kt.ACKNOWLEDGED,alertId:e,subtype:t,pnameQualifier:r,text:n},this._commandsRequester)},e.prototype.reportAlertFeedback=function(e,t,n){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:t,alertId:e,subtype:n},this._commandsRequester)},e.prototype.reportAlertsBatchFeedback=function(e,t,n){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:t,alertIds:e,subtype:n},this._commandsRequester)},e.prototype._reportTextAlertAcceptedFeedback=function(e,t,n,r,i){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:kt.ACCEPTED,alertId:e,text:t,subtype:n,userReason:r,gbPrompt:i},this._commandsRequester)},e.prototype._reportTransformJsonAlertAcceptedFeedback=function(e,t,n,r,i,o,a,s){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:kt.ACCEPTED,alertId:e,alternativeIndex:t,gapValue:n,subtype:r,drilldownSuggestionIds:i,dismissedTransformGroups:o,userReason:a,gbPrompt:s},this._commandsRequester)},e.prototype.reportSynonymFeedback=function(e,t,n,r){switch(t){case Ft.SYNONYM_ACCEPTED:var i={id:this._idGenerator.newId(),action:"feedback",type:Ft.SYNONYM_ACCEPTED,text:n,alertId:e,subtype:r};return this._sendInbandCommand(i,this._commandsRequester);case Ft.SYNONYM_DISMISSED:return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:Ft.SYNONYM_DISMISSED,alertId:e,subtype:r},this._commandsRequester);default:return(0,M.vE)(t)}},e.prototype._reportAutoapplyFeedback=function(e,t,n){return this._sendInbandCommand({id:this._idGenerator.newId(),action:"feedback",type:t,alertId:e,subtype:n},this._commandsRequester)},e.prototype.isClosed=function(){return this._fsm.is(sn.CLOSED)},e.prototype.close=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(t){switch(t.label){case 0:return this.isClosed()?(this._log.trace("close: CAPI already closed, skipping"),[2]):(this._log.trace("close: closing CAPI"),[4,this._fsm.event(un.CLOSE,e)]);case 1:return t.sent()?this._clear(e):this._log.error("Cannot go to CLOSED state"),[2]}}))}))},e.prototype.getText=function(){return ve.toPromise(this._sendInbandCommand({id:this._idGenerator.newId(),action:"get_debug_info"},this._getTextRequester))},e.prototype._handleConnecting=function(){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(e){switch(e.label){case 0:return[4,this._fsm.event(un.CONNECT)];case 1:return e.sent()||this._log.error("Can not enter CONNECTING state",{fsmState:sn[this._fsm.current]}),[2]}}))}))},e.prototype._handleConnect=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t,n;return(0,D.__generator)(this,(function(r){switch(r.label){case 0:this._log.trace("_handleConnect(".concat(sn[this._fsm.current],"): received new ws connection")),this._conn=e,t=void 0,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._fsm.event(un.CONNECTED)];case 2:return r.sent()||(t="failed to switch to CONNECTED state"),[3,4];case 3:return n=r.sent(),t=n,[3,4];case 4:if(Boolean(t))throw this._log.warn("Connection cannot be finalized.",t),t;return[2]}}))}))},e.prototype._handleDisconnect=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t,n;return(0,D.__generator)(this,(function(r){switch(r.label){case 0:return this._log.trace("_handleDisconnect(".concat(sn[this._fsm.current],")"),e),[4,this._fsm.event(un.DISCONNECT,e.reason)];case 1:return t=r.sent(),n=this._fsm.is(sn.CLOSED)?he.LogLevel.WARN:he.LogLevel.ERROR,t||this._log.log(n,"Can not enter DISCONNECTED state",{reason:e,fsmState:sn[this._fsm.current]}),[2]}}))}))},e.prototype._handleMessage=function(e,t){switch(this._handler.onMessageReceived({kind:"message_received",message:e}),this._log.isEnabled(he.LogLevel.TRACE)&&this._log.trace("Message <<< "+JSON.stringify(e).replace("\n"," ").substring(0,300)),e.action){case"start":this._handleStart(e);break;case"alert":this._handleAlert(e);break;case"remove":this._handler.onRemove({kind:"alert_removed",alertId:At.Id.create(e.id),hint:(0,H.pipe)(k.fromNullable(e.hint),k.filter((function(e){return e===Zt.NotFixed}))),mergedIn:(0,H.pipe)(k.fromNullable(e.mergedIn),k.map((function(e){return At.Id.create(e)})))});break;case"alert_changes":this._handleAlertChange(e);break;case"finished":this._handleFinish(e);break;case"async_check_finished":this._handleAsyncCheckFinished(e);break;case"complete":this._handleComplete(e);break;case"heatmap":this._handleAttentionHeatmap(e);break;case"attention_widget":this._handleAttentionInfo(e);break;case"submit_ot":this._handleSubmitOtAck(e);break;case"submit_ot_chunk":this._handleSubmitOtChunkAck(e);break;case"feedback":case"option":case"toggle_checks":case"set_context":case"submit_recipients":case"user_action":case"debug_report":this._handleCommandAck(e);break;case"perfstats":this._handleAck(e);break;case"error":this._handleError(e);break;case"pong":this._handlePong(e);break;case"synonyms":this._handleSynonyms(e);break;case"get_snippets_list_response":this._handleSnippets(e);break;case"text_stats":this._handleTextStats(e);break;case"text_maps":this._handleTextMaps(e);break;case"text_info":this._handleTextInfo(e);break;case"emotions":this._handleEmotions(e);break;case"debug_info":this._handler.onDebugInfo({kind:"debug_info",info:e}),this._getTextRequester.onValue(e.id,e.text);break;case"realtime_proofit_availability":this._handleProofitAvailability(e);break;case"realtime_proofit_submit_resp":this._handleProofitSubmit(e);break;case"realtime_proofit_progress":this._handleProofitProgress(e);break;case"realtime_proofit_cancel_resp":this._handleProofitCancelled(e);break;case"shorten_it_submit":this._handleCommandAck(e);break;case"shorten_it_finished":this._handleShortenItFinished(e);break;case"update_context_info":this._handleCommandAck(e);break;case"published":this._handlePublishedAck(e);break;case"sdui_add":null!=t?this._handleSDUIAdd(e,t):this._handleUnexpectedSDUIMessage(e);break;case"sdui_update":null!=t?this._handleSDUIUpdate(e,t):this._handleUnexpectedSDUIMessage(e);break;case"sdui_remove":null!=t?this._handleSDUIRemove(e):this._handleUnexpectedSDUIMessage(e);break;case"submit_survey_result":this._handleCommandAck(e);break;case"gb_rule_created":this._handler.onGbRuleCreated({kind:"gb_rule_created",categoryTitle:e.categoryTitle,styleGuideId:e.styleGuideId,descriptionLength:e.descriptionLength});break;default:this._log.error("Unknown message",{message:e}),(0,M.vE)(e)}},e.prototype._handleAlert=function(e){var t=this;this._handler.beforeAlert({kind:"before_alert"});var n=At.fromAlertMessage(e);this._log.trace("_handleAlert",e.id);var r=this._changesQueue.transformAlertAgainstQueue(n);(0,H.pipe)(r,_.fromOption((function(){return new Error("alert ".concat(n.id," position overlap: ").concat(JSON.stringify(n).substring(0,200)))})),_.chain(this._validateAlert),_.fold((function(e){t._log.isEnabled(he.LogLevel.TRACE)&&t._log.trace("OT ALERT: discarding alert due to error",e)}),(function(e){return t._handler.onAlert({kind:"alert_received",alert:e})})))},e.prototype._handleAlertChange=function(e){return(0,H.pipe)({kind:"alert_changed",alertId:At.Id.create(e.id),rev:e.rev,extraProperties:e.extra_properties&&At.parseExtraProperties(e.extra_properties),transformJson:e.transformJson&&wt.toAbs(e.transformJson),muted:e.muted},this._changesQueue.transformChangeAgainstQueue,k.fold(m.constVoid,this._handler.onChange))},e.prototype._handleComplete=function(e){this._handler.onAutoComplete({kind:"autocomplete_received",complete:e})},e.prototype._handleAttentionHeatmap=function(e){var t=St.fromAttentionHeatmapMessage(e);this._handler.onAttentionHeatmap({kind:"attention_heatmap_received",heatmap:this._changesQueue.transformAttentionHeatmapAgainstQueue(t)})},e.prototype._handleAttentionInfo=function(e){var t;2===e.version?this._handler.onAttentionInfo({kind:"attention_info_received",rev:e.rev,wordsCount:e.wordsCount,checklist:e.checklist.map(on.fromRaw),headerMessage:e.headerMessage,predictionMessage:e.predictionMessage,hidden:null!==(t=e.hidden)&&void 0!==t&&t}):this._log.error("Got an unsupported attention_widget message version",e)},e.prototype._handleTextMaps=function(e){var t={score:e.score,generalScore:e.generalScore,textMaps:e.textMaps};this._handler.onTextMaps({kind:"text_maps",data:t})},e.prototype._handleTextInfo=function(e){var t={wordsCount:e.wordsCount,charsCount:e.charsCount-1,readingTime:an.calculateReadingTime(e.wordsCount),speakingTime:an.calculateSpeakingTime(e.wordsCount),readabilityScore:e.readabilityScore,messages:k.fromNullable(e.messages),sessionStats:e.sessionStats};this._handler.onTextInfo({kind:"text_info",data:t})},e.prototype._handleEmotions=function(e){this._handler.onEmotions({kind:"emotions",emotions:e.emotions,institutionLogo:e.institutionLogo,brandTonesEnabled:e.brandTonesEnabled,brandTonesConfigured:e.brandTonesConfigured,hidden:e.hidden})},e.prototype._handleProofitAvailability=function(e){this._handler.onProofitAvailability({id:e.id,kind:"realtime_proofit_availability",available:e.available,quota:e.quota})},e.prototype._handleProofitSubmit=function(e){this._handler.onProofitSubmit({id:e.id,kind:"realtime_proofit_submit_resp",status:e.status})},e.prototype._handleProofitProgress=function(e){"in_progress"===e.status?this._handler.onProofitProgress((0,D.__assign)({kind:"realtime_proofit_in_progress"},e)):"completed"===e.status?this._handler.onProofitCompleted((0,D.__assign)({kind:"realtime_proofit_completed"},e)):"error"===e.status?this._handler.onProofitProgressProblem((0,D.__assign)({kind:"realtime_proofit_progress_error"},e)):"rejected"===e.status&&this._handler.onProofitProgressProblem((0,D.__assign)({kind:"realtime_proofit_progress_rejected"},e))},e.prototype._handleProofitCancelled=function(e){this._handler.onProofitCancelled({id:e.id,kind:"realtime_proofit_cancel_resp",refunded:e.refunded,quota:e.quota})},e.prototype._handleShortenItFinished=function(e){this._handler.onShortenItFinished({kind:"shorten_it_finished",alertId:At.Id.create(e.alertId)})},e.prototype._handlePublishedAck=function(e){this._handleCommandAck(e),this._handler.onPublishedAck({kind:"published_ack",survey:e.survey})},e.prototype._handleFinish=function(e){this._log.trace("_handleFinish"),this._handler.onBeforeFinish({kind:"before_finish"}),this._changesQueue.ackRevision(e.rev);var t=this._createFinishEvent(e);this._handler.onFinish(t)},e.prototype._handleAsyncCheckFinished=function(e){this._handler.onBeforeAsyncCheckFinish({kind:"before_async_check_finish"}),this._asyncChecksManager.finish(e),this._handler.onAsyncCheckFinish({kind:"async_check_finished",check:e.check,revision:e.rev,outcomeScores:e.outcomeScores})},e.prototype._handleSubmitOtAck=function(e){this._log.trace("<<< Acknowledge for "+e.action,{message:e}),this._fsm.is(sn.WAITING_FOR_ACK)?(this._handleAck(e),this._changesQueue.ackOperation(e.id),this._fsm.event(un.ACK)):this._log.error("Got an unexpected submit_ot ack",{curentState:sn[this._fsm.current]})},e.prototype._sendNextOtChunk=function(e){var t=this;return 0===e.chunks.length?(this._log.trace("no more chunks, sending final submit_ot message"),Ee.tryCatch((function(){return(0,D.__awaiter)(t,void 0,void 0,(function(){return(0,D.__generator)(this,(function(t){switch(t.label){case 0:return[4,this._sendMessage(e.submitOt)];case 1:return[2,t.sent()]}}))}))}),(function(e){return new Error("failed to send final submit_ot message: ".concat(e))}))):(this._log.trace("sending next submit_ot chunk"),(0,H.pipe)(Ee.tryCatch((function(){return(0,D.__awaiter)(t,void 0,void 0,(function(){var t;return(0,D.__generator)(this,(function(n){switch(n.label){case 0:return t=e.chunks.splice(0,1)[0],[4,this._sendMessage(t)];case 1:return n.sent(),[2,t]}}))}))}),(function(e){return new Error("failed to send next chunk message: ".concat(e))})),Ee.chain((function(n){return t._waitForOtChunkAck(n,e)}))))},e.prototype._waitForOtChunkAck=function(e,t){var n=this;return(0,H.pipe)(this._otChunksNotifier.waitFor(e.id,t),Ee.chain(this._sendNextOtChunk.bind(this)),Ee.mapLeft((function(e){return n._log.error("failed sending OT chunks",e),e})))},e.prototype._handleSubmitOtChunkAck=function(e){this._log.trace("<<< Acknowledge for "+e.action,{message:e}),this._otChunksNotifier.notify(e.id)},e.prototype._handleCommandAck=function(e){this._log.trace("<<< Acknowledge for "+e.action,{message:e}),this._commandsRequester.onValue(e.id),this._handleAck(e)},e.prototype._handleAck=function(e){(0,H.pipe)(fn(e),k.fold(m.constNull,this._handler.onAck))},e.prototype._handlePong=function(e){var t=window.performance.now();this._handler.onPong({kind:"pong",latency:(0,H.pipe)(k.fromNullable(this._pingsMap.get(e.id)),k.map((function(e){return t-e})))})},e.prototype._handleSynonyms=function(e){var t=this._parseSynonymsResult(e);this._handler.onSynonyms({kind:"synonyms",synonyms:t,word:e.token,position:e.synonyms.pos}),this._synonymsRequester.onValue(e.id,t)},e.prototype._handleSnippets=function(e){this._handler.onSnippets({kind:"get_snippets_list_response",snippets:e}),this._snippetsRequester.onValue(e.id,e)},e.prototype._handleTextStats=function(e){e.readingTime=an.calculateReadingTime(e.words),e.speakingTime=an.calculateSpeakingTime(e.words),this._handler.onStats({kind:"stats",stats:e}),this._statsRequester.onValue(e.id,e)},e.prototype._handleSDUIAdd=function(e,t){var n=this;(0,H.pipe)(this._toSduiIdDslSchemaTuple(e,t),k.map((function(t){var r=t[0],i=t[1];return n._handler.onSDUI({kind:e.action,sdui:i,sduiRootId:r,rev:e.rev})})))},e.prototype._handleSDUIRemove=function(e){this._handler.onSDUI({kind:e.action,sduiRootId:Yt.Id.create(e.sduiRootId),rev:e.rev})},e.prototype._handleSDUIUpdate=function(e,t){var n=this;(0,H.pipe)(this._toSduiIdDslSchemaTuple(e,t),k.map((function(t){var r=t[0],i=t[1];return n._handler.onSDUI({kind:e.action,sdui:i,sduiRootId:r,rev:e.rev})})))},e.prototype._handleUnexpectedSDUIMessage=function(e){null!=this._sduiConfig?this._log.error("skip ".concat(e.messageId," due to not configured dslParser.")):this.sendDebugReport(e.messageId,"got unexpected sdui message without sending sduiConfig")()},e.prototype._toSduiIdDslSchemaTuple=function(e,t){var n=this,r=e.sdui,i=e.rev,o=e.messageId,a=e.sduiRootId,s=Yt.Id.create(a);return void 0===r?(this.sendDebugReport(o,"got unexpected empty sdui content for ".concat(i))(),this._log.error("skip ".concat(o," due to empty sdui content"),{messageId:o,rev:i}),k.none):(0,H.pipe)(t(r),_.fold((function(e){return n.sendDebugReport(o,e.message)(),n._log.error("skip ".concat(o," due to incorrect sdui content"),{messageId:o,rev:i}),k.none}),(function(e){return k.some([s,e])})))},e.prototype._createFinishEvent=function(e){return{kind:"finish",revision:e.rev,score:(0,H.pipe)(k.fromNullable(e.generalScore),k.filter((function(e){return e>=0})),k.map((function(t){return{errorRateScore:e.score,rank:t}}))),scoreStatus:k.fromNullable(e.scoresStatus),removed:new Set(e.removed),dialect:e.dialect,outcomeScores:ft.OutcomeScores.normalize(e.outcomeScores),foreign:e.foreign}},e.prototype._parseSynonymsResult=function(e){var t=this,n=function(e){return e.derived};return{id:e.id.toString(),originalWord:e.token,synonymsOrGroups:function(e){return 0===e.synonyms.meanings.length?k.none:1===e.synonyms.meanings.length?k.some(_.left(e.synonyms.meanings[0].synonyms.map(n))):k.some(_.right(e.synonyms.meanings.map((function(r){return void 0===r.meaning&&t._log.warn("Absent meaning in synonyms group.",{token:e.token}),{meaning:Boolean(r.meaning)?r.meaning:"",words:r.synonyms.map(n)}}))))}(e),pname:e.synonyms.pname}},e.prototype._trySend=function(e){void 0===this._timeout&&e===sn.SESSION_INBOUND?this._timeout=window.setTimeout(this._send,this._sendDelay):e!==sn.WAITING_FOR_OT||this._changesQueue.isEmpty?this._log.trace("_trySend(".concat(sn[e],") send timeout already set or not waiting for ot, ignoring")):(this._log.trace("_trySend(".concat(sn[e],") moving to READY")),this._fsm.event(un.READY),this._handler.onReady({kind:"ready"}))},e.prototype._shouldHaveSeparateRevision=function(e){return"set_context"===e.action},e.prototype._pushChangesTask=function(e){var t=this;this._log.debug("pushChanges(".concat(sn[this._fsm.current],"):"),e.kind);return v.isReset(e)&&this._fsm.is(sn.SESSION_INBOUND,sn.WAITING_FOR_ACK)?(this._log.debug("pushChanges(".concat(sn[this._fsm.current],"): got reset while active session, starting new session")),function(){return(0,D.__awaiter)(t,void 0,void 0,(function(){var t;return(0,D.__generator)(this,(function(n){switch(n.label){case 0:this._log.debug("pushChanges(".concat(sn[this._fsm.current],"): starting new session")),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._startSession()];case 2:return n.sent(),[2,this._pushChanges(e)];case 3:return t=n.sent(),this._log.warn("pushChanges(".concat(sn[this._fsm.current],"): failed sending start message: "),t),[2,_.left(t)];case 4:return[2]}}))}))}):Ee.fromIOEither((function(){return t._pushChanges(e)}))},e.prototype._pushChanges=function(e){var t=this;if(!this._canSend())return this._log.debug("pushChanges: cannot send, rejecting changes",e.kind),_.left(new qe("Cannot accepts changes as WS connection is down"));var n=function(e){t._asyncChecksManager.stage(t._changesQueue.localRevision);var n=t._changesQueue.pushChanges(e);return t._textSize=e.prevLen+e.length,t._trySend(t._fsm.current),_.right(k.some(n))};return v.isDelta(e)?this._fsm.is(sn.WAITING_FOR_OT)?_.left(new et("Capi is waiting for reset change but got a delta, dropping change")):n(e):v.isReset(e)?n(v.delta(e.delta)):(this._changesQueue.isEmpty||this.ping(),_.right(k.none))},e.prototype._sendInbandCommand=function(e,t){return this._sendLazyInbandCommand((function(){return e}),t)},e.prototype._sendLazyInbandCommand=function(e,t){var n=this;return function(){var r=e();if(n._log.trace("_sendInbandCommand(".concat(sn[n._fsm.current],"): "),r.action),n._canSend()){var i=n._changesQueue.isEmpty,o=n._changesQueue.pushCommand(r),a=t.watchRequest(o);return i?(n._log.trace("_sendInbandCommand: Q.isEmpty, sending command immediately"),n._send()):(n._log.trace("_sendInbandCommand: Q.notEmpty, delaying sending command"),n._trySend(n._fsm.current)),a}return n._log.debug("_sendInbandCommand: cannot send, rejecting command",r.action),Promise.resolve(_.left(new qe("Cannot send commands as WS connection is down")))}},e.prototype._processSubmitOTMessage=function(e){if(tn.isChunkedChange(e)){var t=e.chunks.map((function(e){return{id:e.id,action:"submit_ot_chunk",chunk:e.chunk}})),n=t.splice(0,1)[0],r={chunks:t,submitOt:{id:e.id,action:"submit_ot",rev:e.rev,doc_len:e.change.prevLen,chunked:!0}};return this._waitForOtChunkAck(n,r)(),n}return{id:e.id,action:"submit_ot",rev:e.rev,doc_len:e.change.prevLen,deltas:[e.change.delta],deltasString:e.deltasString,chunked:!1}},e.prototype._sendMessage=function(e){var t=this;return this._log.isEnabled(he.LogLevel.TRACE)&&this._log.trace("Sending >>>> "+JSON.stringify(e).replace("\n"," ").substring(0,300)),this._handler.onMessageSent({kind:"message_sent",message:e}),"ping"===e.action&&this._pingsMap.set(e.id,window.performance.now()),(0,M.CE)(this._conn,"_sendMessage should never be called without a connection").send(e).catch((function(e){return t._log.debug("fail on send",e)}))},Object.defineProperty(e.prototype,"_checkedTextSize",{get:function(){return this._changesQueue.stagedAmount},enumerable:!1,configurable:!0}),e.prototype._clear=function(e){this._log.debug("clearing message queue, reason: "+e),this._pingsMap.clear(),this._changesQueue.isEmpty||this._log.warn("clean queue with messages",{reason:e,queue:this._changesQueue.toJSON()}),this._changesQueue.clear(e),this._asyncChecksManager.reset(),this._resetTimer()},e.prototype._handleError=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(t){switch(e.error){case _t.CANNOT_GET_TEXT_STATS:this._statsRequester.onError(e.id,new Error("Server Error"));break;case _t.CANNOT_FIND_SYNONYM:this._synonymsRequester.onError(e.id,new Error("can not find synonym"));break;case _t.RUNTIME_ERROR:this._fsm.is(sn.WAITING_FOR_ACK)?(this._log.error("Got runtime_error for submit_ot",{message:e}),this._clear("runtime_error on submit_ot")):(this._handler.onError((0,D.__assign)({kind:"error"},e)),this._clear("runtime_error"));break;default:this._handler.onError((0,D.__assign)({kind:"error"},e)),this._log.error("Error",{message:e})}return[2]}))}))},e}(),hn=function(){function e(){this._wasChecked={plagiarism:!1},this.reset()}return e.prototype.getState=function(){return{plagiarism:this._pendingRevision>this._finishedRevisions.plagiarism?this._wasChecked.plagiarism?"checking":"full":"idle"}},e.prototype.stage=function(e){this._pendingRevision=Math.max(this._pendingRevision,e)},e.prototype.finish=function(e){this._finishedRevisions[e.check]=Math.max(this._finishedRevisions[e.check],e.rev),this._wasChecked[e.check]=!0},e.prototype.reset=function(){this._pendingRevision=0,this._finishedRevisions={plagiarism:-1}},e.prototype.resetCheck=function(e){this._finishedRevisions[e]=-1},e}(),fn=function(e){switch(e.action){case"option":return k.some({kind:"option_ack"});case"set_context":return k.some({kind:"set_context_ack",revision:e.rev});case"submit_recipients":return k.some({kind:"submit_recipients_ack"});case"toggle_checks":return k.some({kind:"toggle_checks_ack"});case"submit_ot":return k.some({kind:"set_context_ack",revision:e.rev});case"feedback":return k.some({kind:"feedback_ack",outcomeScores:e.scores?ft.OutcomeScores.normalize(e.scores):void 0,scoreStatus:e.scoresStatus});case"published":return k.some({kind:"published_ack",survey:e.survey});case"submit_survey_result":return k.some({kind:"submit_survey_result_ack"});case"submit_ot_chunk":case"shorten_it_submit":case"perfstats":case"user_action":case"debug_report":case"update_context_info":return k.none;default:return(0,M.vE)(e)}};!function(e){e.validate=function(e){var t=e.extra_properties.drilldownTree;return void 0===t?_.right(e):(0,H.pipe)(e,_.fromPredicate(At.withTransformJson,(function(){return n("no transformJSON")})),_.chain((function(e){var t=e.transformJson.alternatives;return(0,H.pipe)(t,_.fromOption((function(){return n("no alternatives")})))})),_.chain((function(i){var o=i.alternatives;return t.length>0&&r(o)(t)?_.right(e):_.left(n("incomplete tree"))})));function n(t){return new Error("Incorrect drilldownTree: ".concat(JSON.stringify(e.extra_properties.drilldownTree)," - ").concat(t))}function r(e){return function(t){return t.every((function(t){var n=t[0],i=t[1];return void 0!==e[n]&&(!!yt.isLeaf(i)||r(e)(i))}))}}}}(mn||(mn={}));var pn=function(){function e(e,t,n){var r=this,i=e.handler,o=e.reconnectHandler,a=void 0===o?ue.getDefaultReconnect(ue.ClientType.capi):o,s=e.maxReconnectDelay,u=e.baseReconnectDelay,m=(0,D.__rest)(e,["handler","reconnectHandler","maxReconnectDelay","baseReconnectDelay"]);this._connect=t,this._ws=n,this._log=Me.Monitoring.Logging.getLogger("coreclients.capi.connection"),this._isIdle=!1,this._isStarted=!1,this._currentSessionId=c.empty(),this._getSessionId=function(){return r._currentSessionId};var l=(0,D.__assign)((0,D.__assign)({},i||{}),{onError:function(e){var t,n;null===(t=r._onInitResetFailed)||void 0===t||t.call(r,new Error("Server Error during session start: code(".concat(e.error,") severity(").concat(e.severity,")"))),null===(n=null===i||void 0===i?void 0:i.onError)||void 0===n||n.call(i,e)},onWaitForOT:function(e){var t;(0,M.kG)(void 0!==r._onInitResetSent&&void 0!==r._onInitResetFailed,"expected initial connect promise to be initialized at this stage"),r._log.trace("sending initial reset Delta to CAPI"),r._capi.pushChanges(r._contentSource())().then(_.fold((function(e){r._onInitResetFailed(e),r._onInitResetFailed=void 0}),k.fold(P.Q1,(function(e){r._onInitResetSent(e),r._onInitResetSent=void 0})))),null===(t=null===i||void 0===i?void 0:i.onWaitForOT)||void 0===t||t.call(i,e)},onSessionStarted:function(e){var t;r._currentSessionId=k.some(e.sessionUuid),null===(t=null===i||void 0===i?void 0:i.onSessionStarted)||void 0===t||t.call(i,e)}});this._handler=Object.assign(new ye,l),this._ws.onMessage((function(e,t){r._capi.isStable(t)&&d.reset()})).onConnecting((function(){r._isIdle=!1})).onConnect((function(){return r._handler.onConnect({kind:"connect"})})).onDisconnect((function(e){if(r._currentSessionId=k.none,!r._capi.isClosed()){var t={canGoIdle:r._capi.canGoIdle(),isStable:r._capi.isStable()};r._log.debug("calling reconnect handler:",t),(0,H.pipe)(a(e,d,t),(function(t){return r._handler.onDisconnect({kind:"disconnect",reason:e,reconnectCounter:d.retryStatus.iterNumber,reconnectResult:t}),t}),_.fold((function(e){r._log.warn("error reconnecting, closing CAPI:",e.message),r._capi.close("error reconnecting:"+e.message)}),(function(e){"idle"===e.kind&&(r._isIdle=!0)})))}}));var d=new ue.ReconnectSchedulerImpl((function(){return r.connect(r._contentSource).then((function(e){var t=e[0];e[1];return t}))}),[ue.defaultRetryPolicy(u,s)]);this._capi=new dn(m,this._handler,this._ws,{getSessionId:this._getSessionId})}return e.prototype.connect=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t,n=this;return(0,D.__generator)(this,(function(r){switch(r.label){case 0:return(0,M.kG)(!this._capi.isClosed(),"cannot connect when CAPI is closed"),this._isIdle=!1,this._isStarted=!0,this._contentSource=e,this._log.trace("connect: initializing new ws connection"),[4,this._connect(this._ws)];case 1:return t=r.sent(),this._conn=t,[2,new Promise((function(e,r){n._onInitResetFailed=r,n._onInitResetSent=function(n){return e([t,n])},setTimeout((function(){return r('failed to initialize CAPI: timeout waiting for "wait_for_ot event" to send an initial reset Delta')}),5e3)}))]}}))}))},e.prototype.close=function(e,t){return void 0===e&&(e=ue.WsCodes.NORMAL_CLOSURE),(0,D.__awaiter)(this,void 0,void 0,(function(){var n;return(0,D.__generator)(this,(function(r){switch(r.label){case 0:return n=Boolean(t)?t:"CAPI WS Close called",this._log.trace("close: closing CAPI because: ".concat(n)),[4,this._capi.close(n)];case 1:return r.sent(),this._conn?(this._log.debug("close: closing connection because: ".concat(n)),[4,this._conn.close({code:e,reason:n})]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},Object.defineProperty(e.prototype,"isIdle",{get:function(){return this._isIdle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisconnected",{get:function(){return this._ws.isDisconnected()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wasStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"client",{get:function(){return this._capi},enumerable:!1,configurable:!0}),e}(),yn=function(){function e(e,t,n){this._url=e,this._ajaxFactory=t,this._fingerprints=n,this._ajax=this._ajaxFactory({requestExtender:W.toHeaderAppender(this._fingerprints)})}return e.prototype.checkText=function(e){var t=Q.post(this._url,"/check").mime(B.MimeType.txt).body(e);return this._ajax.json(t)},e.prototype.getStatistics=function(){var e=Q.get(this._url,"/statistics");return this._ajax.json(e)},e.prototype.getWeeklyStatistics=function(){var e=Q.get(this._url,"/statistics/product/weekly");return this._ajax.json(e)},e.prototype.getMonthlyStatistics=function(){var e=Q.get(this._url,"/statistics/product/monthly");return this._ajax.json(e)},e.targetTag="capi",e}(),gn="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),En=new Uint8Array(16);function vn(){if(!gn)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gn(En)}var bn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var wn=function(e){return"string"===typeof e&&bn.test(e)},Sn=[],Cn=0;Cn<256;++Cn)Sn.push((Cn+256).toString(16).substr(1));var An=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Sn[e[t+0]]+Sn[e[t+1]]+Sn[e[t+2]]+Sn[e[t+3]]+"-"+Sn[e[t+4]]+Sn[e[t+5]]+"-"+Sn[e[t+6]]+Sn[e[t+7]]+"-"+Sn[e[t+8]]+Sn[e[t+9]]+"-"+Sn[e[t+10]]+Sn[e[t+11]]+Sn[e[t+12]]+Sn[e[t+13]]+Sn[e[t+14]]+Sn[e[t+15]]).toLowerCase();if(!wn(n))throw TypeError("Stringified UUID is invalid");return n};var _n,Hn=function(e,t,n){var r=(e=e||{}).random||(e.rng||vn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return An(r)};try{_n=null!==WebSocket&&void 0!==WebSocket?WebSocket:window.MozWebSocket}catch(xi){}function kn(e,t){return Boolean(t)?new _n(e,t):new _n(e)}Boolean(_n)&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(kn,e,{get:function(){return _n[e]}})}));var Pn,Nn,Tn=Boolean(_n)?kn:null;!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.DISCONNECTED=2]="DISCONNECTED",e[e.CLOSED=3]="CLOSED",e[e.ANY=4]="ANY"}(Pn||(Pn={})),function(e){e[e.CONNECT=0]="CONNECT",e[e.CONNECTED=1]="CONNECTED",e[e.DISCONNECT=2]="DISCONNECT",e[e.SEND=3]="SEND",e[e.CLOSE=4]="CLOSE"}(Nn||(Nn={}));var Rn,Bn=function(e){Me.Monitoring.Logging.getLogger("coreclients.errPrintln").error("WebSocket Error",e)},Dn=function(){function e(e){var t=this;this._createWSInstance=e,this._log=Me.Monitoring.Logging.getLogger("coreclients.ws"),this._ondisconnect=[],this._onconnecting=[],this._onconnect=[],this._onerror=[Bn],this._onmessage=[],this._read=function(e){try{var t=JSON.parse(e);if(Boolean(t)&&"object"===typeof t&&null!==t)return t}catch(n){}return e},this._write=function(e){return"string"===typeof e?e:JSON.stringify(e)},this._createConnection=function(e){return new Fn(e,t._write)},this._fsm=new Qe("ws",Pn.DISCONNECTED,Pn.CLOSED).with(Pn.ANY).parentOf(Pn.CLOSED,Pn.CONNECTED,Pn.CONNECTING,Pn.DISCONNECTED).from(Pn.CONNECTING).to(Pn.CONNECTED).on(Nn.CONNECTED).from(Pn.CONNECTED,Pn.CONNECTING).to(Pn.DISCONNECTED).on(Nn.DISCONNECT).from(Pn.DISCONNECTED).to(Pn.CONNECTING).on(Nn.CONNECT).from(Pn.ANY).to(Pn.CLOSED).on(Nn.CLOSE).from(Pn.CONNECTED).to(Pn.CONNECTED).on(Nn.SEND).on(Pn.CONNECTED,(function(e){return(0,D.__awaiter)(t,void 0,void 0,(function(){return(0,D.__generator)(this,(function(t){switch(t.label){case 0:return e.from===Pn.CONNECTED?[3,2]:[4,Promise.all(this._onconnect.map((function(t){return Promise.resolve(t(e.args))})))];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})).on(Pn.DISCONNECTED,(function(e){return t._ondisconnect.forEach((function(t){return t(e.args)}))})),this._log.isEnabled(he.LogLevel.TRACE)&&this._fsm.verbose(Pn,Nn)}return e.create=function(t){return void 0===t&&(t=function(e){return new Tn(e)}),new e(t)},e.prototype.reader=function(e){return this._read=e,this},e.prototype.writer=function(e){return this._write=e,this},e.prototype.withConnection=function(e){return this._createConnection=e,this},e.prototype.onConnecting=function(e){return this._onconnecting.push(e),this},e.prototype.onConnect=function(e){return this._onconnect.push(e),this},e.prototype.onDisconnect=function(e){return this._ondisconnect.push(e),this},e.prototype.onMessage=function(e){return this._onmessage.push(e),this},e.prototype.onError=function(e){return this._onerror.push(e),this},e.prototype.connect=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(t){return(0,M.kG)(this.isDisconnected(),"can only connect WS that is currently disconnected, was ".concat(Pn[this._fsm.current])),[2,this._createWebSocket(e,this._fsm)]}))}))},e.prototype.isDisconnected=function(){return this._fsm.is(Pn.DISCONNECTED)},e.prototype.isConnecting=function(){return this._fsm.is(Pn.CONNECTING)},e.prototype.isConnected=function(){return this._fsm.is(Pn.CONNECTED)},e.prototype._createWebSocket=function(e,t){var n=this;return this._log.trace("_createWebSocket(".concat(Pn[t.current],")")),t.event(Nn.CONNECT).then((function(r){return new Promise((function(i,o){if(!r){var a=new Ln({status:"Unknown",message:"Cannot connect",code:ue.WsCodes.UNKNOWN_WS_ERROR,url:e});return t.event(Nn.DISCONNECT,new On(a)),void o(new Error("\n WebSocket [ERROR] FSM cannot be switched to CONNECTING state from ".concat(Pn[t.current],"\n ")))}n._log.debug("Connecting to "+e),n._onconnecting.forEach((function(e){return e()}));var s=n._createWSInstance(e),u=function(e){var t=c.empty();return{scheduleIO:function(n){(0,H.pipe)(t,k.map(window.clearTimeout)),t=(0,H.pipe)(n,k.map((function(t){return window.setTimeout(t,e)})))}}}(1e3);function M(e){var n=t.is(Pn.CONNECTING);t.event(Nn.DISCONNECT,e),n&&o(e.error)}s.onopen=function(a){return(0,D.__awaiter)(n,void 0,void 0,(function(){var n,a,u,c=this;return(0,D.__generator)(this,(function(M){switch(M.label){case 0:this._log.debug("Connection to ".concat(e," opened")),n=new In(t,this._createConnection(s,this._write)),a=void 0,M.label=1;case 1:return M.trys.push([1,3,,4]),[4,t.event(Nn.CONNECTED,n)];case 2:return(r=M.sent())||(a=new Error("WebSocket [ERROR] FSM cannot be switched to CONNECTED state from ".concat(Pn[t.current]))),[3,4];case 3:return u=M.sent(),this._log.warn("WebSocket [ERROR] FSM cannot be switched to CONNECTED state due to error in event handler",u),a=u,[3,4];case 4:return Boolean(a)?(o(a),s.close(ue.WsCodes.BLOCKED_BY_CLIENT,"WebSocket lib initialized"),[2]):(s.onmessage=function(e){var t=c._read(e.data);c._onmessage.forEach((function(e){return e(n,t)}))},i(n),[2])}}))}))},s.onclose=function(r){n._log.debug("Connection to ".concat(e," closed"),{code:r.code,reason:r.reason,fsmState:Pn[t.current]}),u.scheduleIO(k.none);var i=new Ln({status:r.reason,message:"Connection closed: "+r.reason,code:r.code,url:e});M(new On(i))},s.onerror=function(){n._log.debug("Connection to ".concat(e," errored"));var t=new Ln({status:"ws_error",message:"WebSocket error",url:e}),r=new On(t);u.scheduleIO(k.some((function(){try{n._onerror.forEach((function(e){return e(t)}))}catch(xi){n._log.error("OnError handler thrown an error",xi)}M(r)})))}}))}))},e}(),Fn=function(){function e(e,t){this._ws=e,this._serializer=t}return e.prototype.send=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(t){return[2,this._ws.send(this._serializer(e))]}))}))},e.prototype.close=function(e){var t=this,n=void 0===e?{}:e,r=n.code,i=void 0===r?ue.WsCodes.NORMAL_CLOSURE:r,o=n.reason;return new Promise((function(e){t._ws.close(i,o),e()}))},Object.defineProperty(e.prototype,"state",{get:function(){return this._ws.readyState},enumerable:!1,configurable:!0}),e}(),In=function(){function e(e,t){this._fsm=e,this._inner=t,this._log=Me.Monitoring.Logging.getLogger("coreclients.ws.connection")}return Object.defineProperty(e.prototype,"_ws",{get:function(){return this._inner._ws},enumerable:!1,configurable:!0}),e.prototype.send=function(e){var t=this;return this._fsm.event(Nn.SEND).then((function(n){if(!n)throw new Error("WebSocket [ERROR]: Trying to send on invalid connection state: "+Pn[t._fsm.current]);if(t.state!==Rn.State.OPEN)throw new Error("WebSocket [ERROR]: Trying to send on invalid websocket state: "+Rn.State[t.state]);return t._inner.send(e)}))},e.prototype.close=function(e){var t=this,n=void 0===e?{}:e,r=n.code,i=void 0===r?ue.WsCodes.NORMAL_CLOSURE:r,o=n.reason;return this._fsm.event(Nn.CLOSE).then((function(e){return e?(t._log.debug("Closing connection",{code:i,reason:o,fsmState:Pn[t._fsm.current]}),t._inner.close({code:i,reason:o})):(t._log.warn("Tried to close connection which is already closed or closing",{fsmState:Pn[t._fsm.current]}),Promise.resolve())}))},Object.defineProperty(e.prototype,"state",{get:function(){return this._inner.state},enumerable:!1,configurable:!0}),e}();!function(e){!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"}(e.State||(e.State={}))}(Rn||(Rn={}));var xn,On=function(){function e(e){this._error=e}return e.prototype.toString=function(){return this._error.message},Object.defineProperty(e.prototype,"code",{get:function(){return this._error.code},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return this._error},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reason",{get:function(){return"WebSocket [CLOSE]: statusCode="+this._error.code+" reason: "+this._error.status},enumerable:!1,configurable:!0}),e}();!function(e){e.is=function(e){return void 0!==e&&null!==e&&(void 0!==e.code||void 0!==e.reason)}}(xn||(xn={}));var Ln=function(e){function t(t){var n=t.code,r=void 0===n?-1:n,i=t.status,o=t.url,a=t.message,s=t.body,u=e.call(this,a)||this;return u.name="WSError",u.url=o,u.code=function(e,t){if(1005===e&&Boolean(t)){var n=t.toLowerCase();return n.indexOf("user not found")>=0?ue.WsCodes.UNAUTHORIZED:n.indexOf("cannot find document")>=0?ue.WsCodes.NOT_FOUND:n.indexOf("SERVER_SHUTDOWN")>=0?ue.WsCodes.SERVER_SHUTDOWN:e}return e}(r,a),u.body=s,u.status=i,u}return(0,D.__extends)(t,e),t.prototype.toString=function(){return"Websocket Error\n Message: ".concat(this.message,"\n Status: ").concat(this.status,"\n Code: ").concat(this.code,"\n Url: ").concat(this.url)},t}(M.sH);var jn=function(){function e(e,t){this._innerCon=e,this._addTimer=t}return e.prototype.send=function(e){return this._innerCon.send(this._addTimer(e))},e.prototype.close=function(e){return this._innerCon.close(e)},Object.defineProperty(e.prototype,"_ws",{get:function(){return this._innerCon._ws},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._innerCon.state},enumerable:!1,configurable:!0}),e}(),zn=function(){return Math.trunc(window.performance.now())};function Qn(e,t){return new Fn(e,t)}var Gn,Wn=function(){function e(e,t,n,r,i,o){var a=this;void 0===n&&(n=10),void 0===r&&(r=zn),void 0===i&&(i=Hn),void 0===o&&(o=Qn),this._innerWs=e,this._idGenerator=t,this._bufferSize=n,this._clientClock=r,this._timerIdGenerator=i,this._defaultConnection=o,this._log=Me.Monitoring.Logging.getLogger("coreclients.capi.latencyMeasuringWSHandler"),this._timers=[],this._connection=null,this._innerWs=e.onDisconnect((function(){a._timers=[]})).onMessage((function(e,t){a._processTimerResponse(t)})).withConnection((function(e,t){return new jn(a._defaultConnection(e,t),(function(e){return a._addTimerToRequest(e)}))})).onConnect((function(e){a._connection=e}))}return e.prototype.onConnecting=function(e){return this._innerWs.onConnecting(e),this},e.prototype.onConnect=function(e){return this._innerWs.onConnect(e),this},e.prototype.onDisconnect=function(e){return this._innerWs.onDisconnect(e),this},e.prototype.onMessage=function(e){return this._innerWs.onMessage(e),this},e.prototype.connect=function(e){return this._innerWs.connect(e)},e.prototype.isDisconnected=function(){return this._innerWs.isDisconnected()},e.prototype._addTimerToRequest=function(e){if("string"===typeof e)return e;switch(e.action){case"ping":case"submit_ot":return(0,D.__assign)((0,D.__assign)({},e),{timer:{client_clock:this._clientClock(),id:this._timerIdGenerator()}});default:return e}},e.prototype._processTimerResponse=function(e){var t=this;switch(e.action){case"pong":case"finished":return void(e.timer&&(this._timers.push({id:e.timer.id,name:e.timer.name,client_clock:this._clientClock()}),this._timers.length>=this._bufferSize&&setTimeout((function(){return t._flush()}),0)));default:return}},e.prototype._flush=function(){this._timers.length>0&&(null===this._connection?this._log.warn("tried flushing when not connected"):(this._connection.send({id:this._idGenerator.newId(),action:"perfstats",timers:this._timers}),this._timers=[]))},e}(),Un=function(e){function t(t,n,r){var i=e.call(this)||this;return i._url=t,i._ajaxFactory=n,i._fingerprints=r,i._ajax=i._ajaxFactory({requestExtender:W.toHeaderAppender(i._fingerprints)}),i}return(0,D.__extends)(t,e),t.getDefaultUrl=function(e){return"https://irbis".concat(e,"/api/discounts")},t.prototype.applyDiscount=function(e){var t=Q.get(this._url,"apply").pathParam(e);return this._ajax.empty(t)},t.targetTag="discount",t}(G.Base),Xn=4194304;!function(e){var t;!function(e){e[e.NOT_FOUND=404]="NOT_FOUND",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS"}(t=e.HttpCodes||(e.HttpCodes={})),e.CLOSED_ERROR=new Ln({status:"closed",message:"client was closed from client side"});var n=function(e){function n(n,r,i,o){void 0===r&&(r="too_big"),void 0===i&&(i="Document is too big");var a=e.call(this,{code:t.BAD_REQUEST,message:i,url:o,status:r})||this;return a.maxSizeLimit=n,a.name="FileSizeOutOfRangeError",a}return(0,D.__extends)(n,e),n}(j);e.FileSizeOutOfRangeError=n;var r=function(e){function n(n,r,i){void 0===n&&(n="empty_file"),void 0===r&&(r="Document is empty");var o=e.call(this,{code:t.BAD_REQUEST,message:r,url:i,status:n})||this;return o.name="EmptyFileError",o}return(0,D.__extends)(n,e),n}(j);e.EmptyFileError=r;var i=function(e){function n(n,r,i){void 0===n&&(n="not_found"),void 0===r&&(r="Document doesn't exist");var o=e.call(this,{code:t.NOT_FOUND,message:r,url:i,status:n})||this;return o.name="DocumentNotFoundError",o}return(0,D.__extends)(n,e),n}(j);e.DocumentNotFoundError=i;var o=function(e){function n(n,r,i){void 0===n&&(n="error"),void 0===r&&(r="user not found");var o=e.call(this,{code:t.UNAUTHORIZED,message:r,url:i,status:n})||this;return o.name="UnauthorizedError",o}return(0,D.__extends)(n,e),n}(j);e.UnauthorizedError=o;var a=function(e){function n(n,r,i,o){void 0===r&&(r="bad_type"),void 0===i&&(i="Unsupported file type");var a=e.call(this,{code:t.BAD_REQUEST,message:i,url:o,status:r})||this;return a.originalFilename=n,a.name="UnsupportedFileTypeError",a}return(0,D.__extends)(n,e),n}(j);e.UnsupportedFileTypeError=a;var s=function(e){function n(n,r,i){void 0===n&&(n="error"),void 0===r&&(r="Document with tracked changes is not supported");var o=e.call(this,{code:t.BAD_REQUEST,message:r,url:i,status:n})||this;return o.name="TrackedChangesIsUnsupported",o}return(0,D.__extends)(n,e),n}(j);e.TrackedChangesIsUnsupported=s;var u=function(e){function n(n,r,i,o){void 0===r&&(r="error"),void 0===i&&(i="Text extracion failed");var a=e.call(this,{code:t.BAD_REQUEST,message:i,url:o,status:r})||this;return a.originalFilename=n,a.name="TextExtractionError",a}return(0,D.__extends)(n,e),n}(j);e.TextExtractionError=u;var c=function(e){function n(n,r,i){void 0===n&&(n="error"),void 0===r&&(r="Too many requests");var o=e.call(this,{code:t.TOO_MANY_REQUESTS,message:r,url:i,status:n})||this;return o.name="TooManyRequestsError",o}return(0,D.__extends)(n,e),n}(j);e.TooManyRequestsError=c;var m=function(e){function t(t,n,r,i){void 0===n&&(n=0),void 0===r&&(r="connect_error"),void 0===i&&(i="Cannot connect");var o=e.call(this,{code:n,message:i,url:t,status:r})||this;return o.name="ConnectionError",o}return(0,D.__extends)(t,e),t}(j);e.ConnectionError=m;var l=function(e){function t(t,n,r,i){void 0===n&&(n="disconnected"),void 0===r&&(r="Cannot connect to DOX");var o=e.call(this,{status:n,message:r,code:t,url:i})||this;return o.name="WSDisconnectedOnInitError",o}return(0,D.__extends)(t,e),t}(Ln);e.WSDisconnectedOnInitError=l;var d=function(e){function t(t,n,r){void 0===t&&(t="too_big"),void 0===n&&(n="Message is too big, server rejected it");var i=e.call(this,{status:t,message:n,code:ue.WsCodes.TOO_BIG,url:r})||this;return i.name="WSMessageIsTooBigError",i}return(0,D.__extends)(t,e),t}(Ln);e.WSMessageIsTooBigError=d;var h=function(e){function t(t,n,r,i,o){void 0===i&&(i="Disconnected after multiple retries");var a=e.call(this,{status:r,message:i,code:n,url:o})||this;return a.retriesMade=t,a}return(0,D.__extends)(t,e),t}(Ln);e.WSDisconnectedAfterMultipleRetries=h;var f=function(e){function t(t){return e.call(this,{code:ue.WsCodes.GOING_AWAY,status:"closed",message:"timeout",url:t})||this}return(0,D.__extends)(t,e),t}(Ln);e.WSGoingAway=f;var p=function(e){function t(t,n){var r=e.call(this,{status:"closed",message:n,code:t})||this;return r.name="WSNotRetryableError",r}return(0,D.__extends)(t,e),t}(Ln);e.WSNotRetryableError=p,e.doxErrorMapper=function(e,t,a){var u={};try{u=JSON.parse(e)}catch(xi){u=(0,M.j_)(xi)?{info:"unknown",status:xi.message}:{info:"unknown",status:""}}switch(u.info){case"too_big":return new n(Xn,u.status,u.info,t.url);case"empty_file":return new r(u.status,u.info,t.url);case"document not found":return new i(u.status,u.info,t.url);case"user not found":return new o(u.status,u.info,t.url);case"tracked":return new s(u.status,u.info,t.url);case"too many requests":return new c(u.status,u.info,t.url);default:return B.mapToHTTPError(e,t,a)}}}(Gn||(Gn={}));var Jn,Kn=function(){function e(t,n,r,i){var o=this;void 0===i&&(i="web"),this._doxUrl=t,this._ajaxFactory=n,this._fingerprints=r,this._clientType=i,this._headersAppender=X({"X-API-Version":"1","X-Client-Type":function(){return o._clientType}}),this._ajax=this._ajaxFactory({requestExtender:Q.Extender.compose(W.toHeaderAppender(this._fingerprints),this._headersAppender),errorMapper:Gn.doxErrorMapper}),this._processOptions=function(t){var n=t.status,r=t.words,i=t.turnaroundOptions,a=t.clarityTurnaroundOptions,s=t.userInputs,u=t.priceOfferId;return n===e.PlanStatus.Forbidden?o._ajax.throwError(new j({code:403,status:n})):o._ajax.of({status:n,words:r,turnaroundOptions:i.map(e.processOption),clarityTurnaroundOptions:a.map(e.processClarityOption),userInputs:e.processUserInputs(s),priceOfferId:e.PriceOfferId.create(u)})}}return e.prototype.getOptions=function(e){var t=Q.get(this._doxUrl,"documents/".concat(e,"/proofit/turnaroundOptions"));return(0,H.pipe)(this._ajax.json(t),this._ajax.chain(this._processOptions))},e.prototype.createJob=function(t){var n=t.docId,r=t.turnaround,i=e.PlanType[r],o=Q.post(this._doxUrl,"documents/".concat(n,"/proofit/job")).queryParam("turnaround",i);return(0,H.pipe)(this._ajax.json(o),this._ajax.map(e.parseCreateJobResult))},e.targetTag="proofit",e}();!function(e){var t,n,r,i,o,a;function s(e){return-1!==Object.values(t).indexOf(e)?e:t.unknown}function u(e){switch(e){case"Instant":return r.Instant;case"ThreeHours":return r.ThreeHours;case"SixHours":return r.SixHours;case"TwentyFourHours":return r.TwentyFourHours;case"ThreeDays":return r.ThreeDays;default:throw new Error("Unknown plan option ".concat(e))}}!function(e){e.newJob="New",e.building="Building",e.cancelled="Cancelled",e.completed="Completed",e.duplicate="duplicate",e.emptyDocument="emptyDocument",e.paymentError="paymentError",e.complexInternalStructure="complexInternalStructure",e.forbidden="Proofit is forbidden",e.unknown="unknown"}(t=e.JobStatus||(e.JobStatus={})),function(e){e.Success="success",e.Forbidden="Proofit is forbidden"}(n=e.StatisticsStatus||(e.StatisticsStatus={})),function(e){e[e.Instant=0]="Instant",e[e.ThreeHours=1]="ThreeHours",e[e.SixHours=2]="SixHours",e[e.TwentyFourHours=3]="TwentyFourHours",e[e.ThreeDays=4]="ThreeDays"}(e.PlanType||(e.PlanType={})),function(t){t.getPlanName=function(t){switch(t){case e.PlanType.Instant:return"30m";case e.PlanType.ThreeHours:return"3h";case e.PlanType.SixHours:return"6h";case e.PlanType.TwentyFourHours:return"24h";case e.PlanType.ThreeDays:return"3d";default:return(0,M.vE)(t)}}}(r=e.PlanType||(e.PlanType={})),function(e){e.Base="Base",e.Clarity="Clarity"}(i=e.PlanTier||(e.PlanTier={})),function(e){e.eq=N.getStructEq({tier:N.eqString,turnaround:N.eqNumber})}(e.Plan||(e.Plan={})),function(e){e.Success="success",e.Forbidden="Proofit is forbidden"}(o=e.PlanStatus||(e.PlanStatus={})),function(e){e.British="British",e.American="American",e.Canadian="Canadian",e.Australian="Australian"}(e.Dialect||(e.Dialect={})),function(e){e.Single="Single",e.Double="Double"}(e.QuotationType||(e.QuotationType={})),function(e){e.Single="Single",e.Double="Double"}(e.SpaceType||(e.SpaceType={})),function(e){e.create=function(e){return e}}(a=e.PriceOfferId||(e.PriceOfferId={})),e.processOption=function(e){return{enabled:e.enabled,label:e.label,minutesToProcess:e.minutesToProcess,perWord:e.perWord,price:e.price,turnaround:u(e.turnaround),requirePaymentCheck:e.requirePaymentCheck,tier:i.Base,credits:k.fromNullable(e.credits)}},e.processClarityOption=function(t){return(0,D.__assign)((0,D.__assign)({},e.processOption(t)),{tier:i.Clarity})},e.processOptions=function(t){var n=t.data;return n.status===o.Forbidden?{status:o.Forbidden}:{status:o.Success,words:n.words,turnaroundOptions:n.turnaroundOptions.map(e.processOption),clarityTurnaroundOptions:n.clarityTurnaroundOptions.map(e.processClarityOption),userInputs:e.processUserInputs(n.userInputs),priceOfferId:a.create(n.priceOfferId)}},e.processUserInputs=function(e){return{nativeLanguage:k.fromNullable(e.nativeLanguage),dialect:k.fromNullable(e.dialect),quotationType:k.fromNullable(e.quotationType),spaceType:k.fromNullable(e.spaceType)}},e.processStatistics=function(e){var t=Me.Monitoring.Logging.getLogger("coreclients.remote",he.LogLevel.DEBUG),r=e.data;switch(r.status){case n.Success:return{status:n.Success,lastCompletedJobDate:k.fromEither(de.Local.parseDate(r.lastCompletedJobDate))};case n.Forbidden:default:return t.debug("Proofit Statistics Status: "+r.status),{status:n.Forbidden}}},e.stringToJobStatus=s,e.parsePlanOption=u,e.parseResult=function(e){return(0,H.pipe)([de.Local.parseDate(e.submitted),de.Local.parseDate(e.due)],A.map2((function(t,n){return{submitted:t,corrections:Boolean(e.corrections)?e.corrections:0,due:n,price:Boolean(e.price)?e.price:0,name:Boolean(e.name)?e.name:"",completed:k.fromEither(de.Local.parseDate(e.completed)),id:Boolean(e.id)?e.id:0,status:s(e.status),is_dox_applied:e.is_dox_applied}})))},e.fromRaw=(0,m.flow)(k.fromNullable,k.chain((0,m.flow)(e.parseResult,k.fromEither))),e.isErrorJobStatus=function(e){return-1!==[t.duplicate,t.emptyDocument,t.paymentError,t.complexInternalStructure,t.forbidden,t.unknown].indexOf(e)},e.parseCreateJobResult=function(t){var n=t.data,r=s(n.status);return e.isErrorJobStatus(r)?{status:r}:{jobId:n.jobId,status:r,token:n.token}},e.isProofitEqual=function(e,t){if(e||t){if(!e&&t||e&&!t)return!1;var n=e,r=t;return n.id===r.id&&n.status===r.status&&k.getEq(de.Local.Eq).equals(n.completed,r.completed)}return!0};var c={corrections:null,price:null,submitted:"2018-08-09 12:06:29",due:"2018-08-10 12:06:29",name:"proofit-document-1474459282219.docx",completed:null,id:15696089,status:t.newJob,is_dox_applied:!0};e.mockResult=function(e){return(0,D.__assign)((0,D.__assign)({},c),e)}}(Kn||(Kn={})),function(e){e.update=function(e,t){return{checks:e.checks,extraSettings:i.merge(e.extraSettings,t.extraSettings),genre:(0,H.pipe)(k.fromNullable(t.genre),c.orElse(e.genre)),context:(0,H.pipe)(k.fromNullable(t.context),c.orElse(e.context))}},e.contextOrGenre=function(e){return(0,H.pipe)(e.context,c.orElse((0,H.pipe)(e.genre,k.map(je))),k.getOrElse((function(){return Fe.unset})))},e.empty={checks:k.none,genre:k.none,context:k.none,extraSettings:k.none};var t,n,r=function(){function t(e){this._settings=e}return t.fromJSON=function(n){return new t(function(t){return t?(0,H.pipe)(A.tryCatchError((function(){return{checks:k.fromNullable(s(t.apps)),genre:k.fromNullable(t.genre),context:Fe.parse(t.context),extraSettings:(e=t.extraSettings,e?(0,H.pipe)(o.decode(e),k.fromEither):k.none)};var e})),_.getOrElse((function(){return e.empty}))):e.empty}(n))},Object.defineProperty(t.prototype,"genre",{get:function(){var e=this;return(0,H.pipe)(this._settings.genre,k.alt((function(){return(0,H.pipe)(e._settings.context,k.chain((function(e){return e.domain})),k.map(Le))})))},enumerable:!1,configurable:!0}),t.prototype.changeGenre=function(e){var t={genre:k.some(e)};return(0,H.pipe)(this._settings.context,k.fold(P.Q1,(function(){t.context=k.some(Fe.fromDomain(Oe(e)))}))),this._update(t)},Object.defineProperty(t.prototype,"checks",{get:function(){return this._settings.checks},enumerable:!1,configurable:!0}),t.prototype.changeChecks=function(e){var t={checks:k.some(e)};return this._update(t)},Object.defineProperty(t.prototype,"context",{get:function(){var e=this;return(0,H.pipe)(this._settings.context,k.alt((function(){return(0,H.pipe)(e._settings.genre,k.map(je))})))},enumerable:!1,configurable:!0}),t.prototype.changeContext=function(e){var t={context:k.some(e)};return(0,H.pipe)(this._settings.genre,k.fold(P.Q1,(function(){t.genre=(0,H.pipe)(e.domain,k.map(Le))}))),this._update(t)},Object.defineProperty(t.prototype,"extraSettings",{get:function(){return this._settings.extraSettings},enumerable:!1,configurable:!0}),t.prototype.changeExtra=function(e){var t={extraSettings:k.some(e)};return this._update(t)},t.prototype.toJSON=function(){return function(e){var t=e.checks,n=e.genre,r=e.context,i=e.extraSettings;return{apps:(0,H.pipe)(t,k.map(a),k.toUndefined),genre:(0,H.pipe)(n,k.toUndefined),context:(0,H.pipe)(r,k.map(Fe.serialize),k.toUndefined),extraSettings:(0,H.pipe)(i,k.map(o.encode),k.toUndefined)}}(this._settings)},t.prototype._update=function(e){return new t((0,D.__assign)((0,D.__assign)({},this._settings),e))},t}();e.Holder=r,function(e){!function(e){e.draft_ai="draft_ai"}(e.Kind||(e.Kind={}))}(t=e.Template||(e.Template={})),function(e){var t,n;!function(e){e.students="students"}(t=e.Kind||(e.Kind={})),function(e){!function(e){e.excellent="excellent",e.okay="okay",e.notGreat="notGreat"}(e.TextGrade||(e.TextGrade={})),function(e){e.eq=N.fromEquals((function(e,t){return Array.isArray(e)&&Array.isArray(t)&&e[0]===t[0]&&e[1]===t[1]||e===t}))}(e.Grade||(e.Grade={}))}(n=e.Students||(e.Students={})),e.outcomesType=U.interface({kind:U.literal(t.students),grade:Re.option(U.union([U.tuple([U.number,U.number]),Re.createStringEnum(n.TextGrade,"textGrades")])),askedTimestamp:Re.option(U.number),rejected:U.boolean})}(n=e.Outcomes||(e.Outcomes={}));var i,o=U.interface({checkedPlagiarism:Re.withDefault(U.boolean,!1),template:Re.option(U.interface({kind:Re.createStringEnum(t.Kind,"templateName"),state:U.unknown})),outcomes:Re.option(n.outcomesType)});function a(e){return e?{ContextualSpelling:{active:e.contextualSpelling},Enhancement:{active:e.enhancement},Grammar:{active:e.grammar},Plagiarism:{active:e.plagiarism},Punctuation:{active:e.punctuation},SentenceStructure:{active:e.sentenceStructure},Style:{active:e.style}}:null}function s(e){return e&&function(e){if(!Boolean(e))return!1;return![e.ContextualSpelling,e.Enhancement,e.Grammar,e.Plagiarism,e.Punctuation,e.SentenceStructure,e.Style].map((function(e){return Boolean(e)&&"object"===typeof e&&"boolean"===typeof e.active})).some((function(e){return!e}))}(e)?{contextualSpelling:e.ContextualSpelling.active,grammar:e.Grammar.active,sentenceStructure:e.SentenceStructure.active,punctuation:e.Punctuation.active,style:e.Style.active,enhancement:e.Enhancement.active,plagiarism:e.Plagiarism.active}:null}!function(e){e.empty={checkedPlagiarism:!1,template:k.none,outcomes:k.none},e.merge=function(e,t){return(0,H.pipe)(e,k.map((function(e){return t?h.update(e,t):e})),c.orElse(k.fromNullable(t)))}}(i=e.Extra||(e.Extra={})),e.fromCheckingSettings=a,e.toCheckingSettings=s}(Jn||(Jn={}));var Yn,Zn=function(){function e(e){if(this._delta={},!Boolean(e)||!Boolean(e.id))throw new Error("document is undefined or doesn't have ID");this._original=Object.assign({},e,{id:String(e.id)}),this._settings=Jn.Holder.fromJSON(e.extra_params),this._proofit=Kn.fromRaw(e.proofit)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._original.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return Boolean(this._delta.title)?this._delta.title:Boolean(this._original.title)?this._original.title:""},set:function(e){this._delta.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstContent",{get:function(){return Boolean(this._original.first_content)?this._original.first_content:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return Boolean(this._original.content)?this._original.content:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"revision",{get:function(){return Boolean(this._original.vsn)?this._original.vsn:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"originalFilename",{get:function(){return this._original.orig_filename},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createdAt",{get:function(){return(0,H.pipe)(de.Local.parseDate(this._original.created_at),_.getOrElse((function(){return null})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updatedAt",{get:function(){return(0,H.pipe)(de.Local.parseDate(this._original.updated_at),_.getOrElse((function(){return null})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return Boolean(this._delta.errors)?this._delta.errors:Boolean(this._original.errors)?this._original.errors:0},set:function(e){this._delta.errors=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return Boolean(this._original.size)?this._original.size:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settings",{get:function(){return this._getSettingsHolder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"genre",{get:function(){return k.toNullable(this.settings.genre)},enumerable:!1,configurable:!0}),e.prototype.setGenre=function(e){this._deltaSettings=this._getSettingsHolder.changeGenre(e)},Object.defineProperty(e.prototype,"checks",{get:function(){return k.toNullable(this.settings.checks)},enumerable:!1,configurable:!0}),e.prototype.setChecks=function(e){this._deltaSettings=this._getSettingsHolder.changeChecks(e)},Object.defineProperty(e.prototype,"context",{get:function(){return this.settings.context},enumerable:!1,configurable:!0}),e.prototype.setContext=function(e){this._deltaSettings=this._getSettingsHolder.changeContext(e)},Object.defineProperty(e.prototype,"proofit",{get:function(){return k.toNullable(this._proofit)},enumerable:!1,configurable:!0}),e.prototype.resetProofit=function(){this._proofit=k.none},e.prototype._isDirty=function(){var e;return Object.getOwnPropertyNames(null!==(e=this._delta)&&void 0!==e?e:{}).length>0||void 0!==this._deltaSettings},e.prototype._popChanges=function(){var e=this._getDeltaRawDocument(this._delta,this._deltaSettings);return e.id=this._original.id.toString(),e},e.prototype._getDeltaRawDocument=function(e,t){if(t){var n=t.toJSON();return h.update(e,{extra_params:n})}return Object.assign({},e)},e.prototype._applyChanges=function(e){this._original=Object.assign({},e,{id:String(e.id)}),e.extra_params&&(this._settings=Jn.Holder.fromJSON(e.extra_params)),e.proofit&&(this._proofit=Kn.fromRaw(e.proofit)),this._deltaSettings=void 0,this._delta={}},Object.defineProperty(e.prototype,"_getSettingsHolder",{get:function(){return void 0!==this._deltaSettings?this._deltaSettings:this._settings},enumerable:!1,configurable:!0}),e}();!function(e){var t;!function(e){e.rtf="rtf",e.plain="plain"}(t=e.UploadFileMode||(e.UploadFileMode={}));var n=function(){function e(e){this._httpRequest=e}return e.text=function(e,t){return this.textFull((0,D.__assign)((0,D.__assign)({},Boolean(e)?{doc:{ops:[{insert:e}]}}:{}),{title:t}))},e.textFull=function(t){return new e(Q.create().json(Object.keys(t).length>0?t:void 0))},e.file=function(n,r){var i=Q.create();if(!Boolean(n))throw new TypeError("File was not provided");if(!n.name)throw new TypeError("Empty filename passed to file() function");if(!n.size)throw new TypeError("File size wasn't provided");if(n.size>Xn)throw new Gn.FileSizeOutOfRangeError(Xn);var o=(Boolean(n.name.split("\\").pop())?n.name.split("\\").pop():"").split("/").pop();if(!Boolean(o))throw new Gn.UnsupportedFileTypeError(n.name);if(!o.match(e.supportedExtensionsRE))throw new Gn.UnsupportedFileTypeError(o);return i.multipartFormData("source_file",n),i.queryParam("enableRTF",r===t.rtf?"true":"false"),new e(i)},e.prototype._getHttpRequestBuilder=function(){return this._httpRequest},e.supportedExtensions=["doc","docx","odt","rtf","txt","htm","html"],e.supportedExtensionsRE=new RegExp("\\.("+e.supportedExtensions.join("|")+")$","i"),e}();e.Create=n;var r=function(){function e(e){this._str=e}return e.contains=function(t){return new e(t)},e.all=function(){return new e("")},e.prototype.toSearchString=function(){return this._str},e}();e.Search=r}(Yn||(Yn={}));var Vn,$n,qn=function(){function e(e,t,n){var r=this,i=n.handler,o=n.maxReconnectDelay,a=n.baseReconnectDelay,s=n.reconnectHandler,u=void 0===s?ue.getDefaultReconnect(ue.ClientType.dox):s;this._ws=t,this._log=Me.Monitoring.Logging.getLogger("coreclients.remote.connection"),this._isIdle=!1,this.isIdle=function(){return r._isIdle},this.isDisconnected=function(){return r._ws.isDisconnected()},this._handler=i,this._ws.onMessage((function(e,t){r._client.isStable(t)&&c.reset()})).onConnecting((function(){r._isIdle=!1})).onConnect((function(){r._handler.connectHandler&&r._handler.connectHandler()})).onDisconnect((function(e){if(!r._client.isClosed()){var t={canGoIdle:r._client.inSync,isStable:r._client.isStable()};r._log.debug("calling reconnect handler",t),(0,H.pipe)(u(e,c,t),(function(t){return r._handler.disconnectHandler&&r._handler.disconnectHandler(e,c.retryStatus,t),t}),_.fold((function(t){r._log.warn("Error reconnecting",t),r._client.close(e.code,e.reason)}),(function(e){"idle"===e.kind&&(r._isIdle=!0)})))}}));var c=new ue.ReconnectSchedulerImpl((function(){return r.connect(r._client.getWsUrl())}),[ue.defaultRetryPolicy(Boolean(a)?a:3*de.MS_IN_SEC,Boolean(o)?o:de.MS_IN_MIN)]);this._client=e(this,this._ws)}return e.prototype.create=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t,n=this;return(0,D.__generator)(this,(function(r){switch(r.label){case 0:return t=new Promise((function(e,t){n._client.init(e,t)})),[4,this.connect(e)];case 1:return r.sent(),[2,t]}}))}))},e.prototype.connect=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t,n;return(0,D.__generator)(this,(function(r){switch(r.label){case 0:(0,M.kG)(!this._client.isClosed(),"cannot connect when closed"),this._log.debug("connect: connecting to ".concat(e)),this._isIdle=!1,r.label=1;case 1:return r.trys.push([1,3,,4]),t=this,[4,this._ws.connect(e)];case 2:return t._conn=r.sent(),[3,4];case 3:throw n=r.sent(),this._log.warn("could not connect",n),new Gn.ConnectionError(e);case 4:return[2,this._conn]}}))}))},e.prototype.close=function(e,t){return void 0===e&&(e=ue.WsCodes.NORMAL_CLOSURE),(0,D.__awaiter)(this,void 0,void 0,(function(){var n;return(0,D.__generator)(this,(function(r){switch(r.label){case 0:return n=Boolean(t)?t:"DOX WS Close called",this._log.debug("close: closing client",{closeReason:n}),[4,this._client.close(e,t)];case 1:return r.sent(),this._conn?(this._log.debug("close: closing connection",{closeReason:n}),[4,this._conn.close({code:e,reason:n})]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},Object.defineProperty(e.prototype,"client",{get:function(){return this._client},enumerable:!1,configurable:!0}),e}();!function(e){e.paypal="paypal",e.creditCard="creditCard"}(Vn||(Vn={})),function(e){var t=function(e){this.id=e};e.Base=t;var n=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.id=t,s.cl=n,s.rev=r,s.doc_len=i,s.deltas=o,s.revAfterApply=a,s.op="patch",s}return(0,D.__extends)(t,e),t}(t);e.PatchMessage=n;var r=function(e){function t(t,n){var r=e.call(this,t)||this;return r.id=t,r.vsn=n,r.op="vsn",r}return(0,D.__extends)(t,e),t}(t);e.VersionMessage=r;var i=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.id=t,o.title=n,o.errors=r,o.extra_params=i,o.op="update_document_metadata",o}return(0,D.__extends)(t,e),t}(t);e.UpdateDocumentMetadata=i;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.id=t,n.op="proofit_turnaround_options",n}return(0,D.__extends)(t,e),t}(t);e.ProofitOptionsMessage=o;var a=function(e){function t(t,n,r,i,o,a){void 0===a&&(a=!1);var s=e.call(this,t)||this;return s.id=t,s.turnaround=n,s.clarity=r,s.userInputs=i,s.priceOfferId=o,s.payWithCredits=a,s.op="proofit_create_job",s}return(0,D.__extends)(t,e),t}(t);e.ProofitPlaceOrderMessage=a;var s=function(e){function t(t,n,r,i,o,a,s,u){void 0===a&&(a=!1);var c=e.call(this,t)||this;return c.id=t,c.turnaround=n,c.clarity=r,c.userInputs=i,c.priceOfferId=o,c.payWithCredits=a,c.nonce=s,c.billingZip=u,c.op="proofit_create_job",c}return(0,D.__extends)(t,e),t}(t);e.ProofitPlacePaymentOrderMessage=s;var u=function(e){function t(t){var n=e.call(this,t)||this;return n.id=t,n.op="proofit_statistics",n}return(0,D.__extends)(t,e),t}(t);e.ProofitStatisticsMessage=u}($n||($n={}));var er;!function(e){e.isChange=function(e){return"change"===e.kind},e.isCmd=function(e){return"cmd"===e.kind},e.isMeta=function(e){return"meta"===e.kind}}(er||(er={}));var tr,nr,rr=function(){function e(e,t,n){void 0===n&&(n=[]),this._acceptHandler=e,this._dropHandler=t,this._changes=n,this._staging=!1,this._queuedId=0}return e.prototype.pushChanges=function(e){var t=this,n=this.isEmpty||this._staging&&1===this._changes.length?k.none:(0,H.pipe)(this._tail(),k.filter(er.isChange));return(0,H.pipe)(n,k.fold((function(){return t._enqueueChanges(E.split(e,5e3))}),(function(n){var r=n.change.compose(e),i=E.split(r,5e3),o=i[0],a=i.slice(1);if(t._replaceChange(t._changes.length-1,o),o.isEmpty){var s=t._changes.pop();setTimeout((function(){return t._acceptHandler(s)}),0)}return[n.id].concat(t._enqueueChanges(a))})))},e.prototype.pushMeta=function(e){var t=this,n=this.isEmpty||this._staging&&1===this._changes.length?k.none:(0,H.pipe)(this._tail(),k.filter(er.isMeta));return(0,H.pipe)(n,k.fold((function(){var n=t._queuedId++;return t._changes.push({kind:"meta",meta:e,id:n}),n}),(function(t){return Object.assign(t.meta,e),t.id})))},e.prototype.pushCommand=function(e){var t=this._queuedId++;return this._changes.push({kind:"cmd",cmd:e,id:t}),t},Object.defineProperty(e.prototype,"isStaging",{get:function(){return this._staging},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._changes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._changes.length},enumerable:!1,configurable:!0}),e.prototype.poll=function(){var e=this;(0,M.kG)(!this._staging,"Should not be in staging mode");var t=k.fromNullable(this._changes[0]);return(0,H.pipe)(t,k.fold(P.Q1,(function(){return e._staging=!0}))),t},e.prototype.pop=function(){(0,M.kG)(!this._staging,"Should not be in staging mode");var e=k.fromNullable(this._changes.shift());return(0,H.pipe)(e,k.fold(P.Q1,this._acceptHandler)),e},e.prototype.unstage=function(){(0,M.kG)(this._staging,"Should be in staging mode"),(0,M.kG)(void 0!==this._changes[0],"Staging change should exist"),this._staging=!1},e.prototype.ack=function(){this.unstage(),this.pop()},e.prototype.transformChangeAgainstQueue=function(e){var t=this;return this._changes.reduce((function(e,n,r){if(er.isChange(n)){var i=n.change,o=i.transform(e,!1);return t._replaceChange(r,o),e.transform(i)}return e}),e)},e.prototype.drop=function(e,t){if(!this.isEmpty){var n=void 0===t?[this._changes,[]]:T.partition(this._changes,(function(e){return e.kind===t})),r=n[0],i=n[1];this._changes=i,r.length>0&&this._dropHandler({messages:r,reason:e})}},e.prototype.toJSON=function(){return{changes:this._changes}},e.prototype._tail=function(){return k.fromNullable(this._changes[this._changes.length-1])},e.prototype._enqueueChanges=function(e){var t=this;return e.map((function(e){var n=t._queuedId++;return t._changes.push({kind:"change",change:e,id:n}),n}))},e.prototype._replaceChange=function(e,t){var n=this._changes[e];(0,M.kG)(er.isChange(n),"queued change should exist"),n.change=t},e}();!function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.IDLE=1]="IDLE",e[e.CONNECTING=2]="CONNECTING",e[e.INITIALIZING=3]="INITIALIZING",e[e.CONNECTED=4]="CONNECTED",e[e.READY=5]="READY",e[e.WAIT_ACK=6]="WAIT_ACK",e[e.CLOSED=7]="CLOSED"}(tr||(tr={})),function(e){e[e.CONNECT=0]="CONNECT",e[e.CONNECTED=1]="CONNECTED",e[e.SCHEDULE_RECONNECT=2]="SCHEDULE_RECONNECT",e[e.DISCONNECT=3]="DISCONNECT",e[e.IDLE_DISCONNECT=4]="IDLE_DISCONNECT",e[e.CLOSE=5]="CLOSE",e[e.INITIALIZE=6]="INITIALIZE",e[e.INITIALIZED=7]="INITIALIZED",e[e.SEND=8]="SEND",e[e.ACK=9]="ACK",e[e.RESET=10]="RESET"}(nr||(nr={}));var ir,or=function(){function e(e,t){var n=this;this._originalUrl=e,this._log=Me.Monitoring.Logging.getLogger("coreclients.remote",he.LogLevel.DEBUG),this._msgCount=0,t.onConnecting((function(){return n._handleConnecting()})).onConnect((function(e){return n._handleConnect(e)})).onDisconnect((function(e){return n._msgCount=0,n._handleDisconnect(e)})).onMessage((function(e,t){n._msgCount++,n._handleMessage(t)})),this._fsm=new Qe("remote",tr.DISCONNECTED,tr.CLOSED).from(tr.DISCONNECTED,tr.IDLE).to(tr.CONNECTING).on(nr.CONNECT).from(tr.CONNECTING).to(tr.CONNECTED).on(nr.CONNECTED).from(tr.CONNECTED).to(tr.INITIALIZING).on(nr.INITIALIZE).from(tr.INITIALIZING).to(tr.READY).on(nr.INITIALIZED).from(tr.CONNECTED,tr.CONNECTING,tr.INITIALIZING,tr.READY).to(tr.DISCONNECTED).on(nr.DISCONNECT).from(tr.CONNECTED,tr.CONNECTING,tr.INITIALIZING,tr.READY,tr.DISCONNECTED).to(tr.CLOSED).on(nr.CLOSE),this._log.isEnabled(he.LogLevel.TRACE)&&this._fsm.verbose(tr,nr)}return e.prototype.getWsUrl=function(){return this._originalUrl},e.prototype.init=function(e,t){this._log.debug("init"),this._initHandler=e,this._initFailHandler=t},e.prototype.close=function(e,t){var n=this;return this._log.debug("close(".concat(tr[this._fsm.current],")"),{code:e,reason:t}),this._fsm.event(nr.CLOSE,{code:e,reason:t}).then((function(e){e&&clearTimeout(n._timeout)}))},e.prototype.isClosed=function(){return this._fsm.is(tr.CLOSED)},e.prototype._handleConnecting=function(){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(e){switch(e.label){case 0:return this._log.debug("Connecting"),[4,this._fsm.event(nr.CONNECT)];case 1:return e.sent()||this._log.error("Can not enter CONNECTING state",{fsmState:tr[this._fsm.current]}),[2]}}))}))},e.prototype._handleConnect=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(t){switch(t.label){case 0:return this._log.debug("Connected"),[4,this._fsm.event(nr.CONNECTED,e)];case 1:return t.sent()?(this._conn=e,[3,4]):[3,2];case 2:return this._log.error("Can not enter CONNECTED state",{fsmState:tr[this._fsm.current]}),[4,e.close({reason:"Can not enter CONNECTED state",code:ue.WsCodes.NORMAL_CLOSURE})];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},e.prototype._handleDisconnect=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t;return(0,D.__generator)(this,(function(n){switch(n.label){case 0:return this._log.debug("Disconnected",e.reason),this._disconnectHandler(e),t=this.isClosed()?he.LogLevel.WARN:he.LogLevel.ERROR,[4,this._fsm.event(nr.DISCONNECT,e)];case 1:return n.sent()||this._log.log(t,"Can not enter DISCONNECTED state",{reason:e,fsmState:tr[this._fsm.current]}),[2]}}))}))},e.prototype._canSend=function(){return!this._fsm.is(tr.DISCONNECTED,tr.CONNECTING,tr.CLOSED)},e}(),ar=function(e){function t(t,n,r,i,o,a){void 0===i&&(i=ir.Queue.create({})),void 0===o&&(o=500),void 0===a&&(a=15e3);var s=e.call(this,t,n)||this;return s._changesQueue=i,s._sendDelay=o,s._requestTimeout=a,s._nextId=1,s._revision=-1,s._clientId=-1,s._forceSend=!1,s._proofitPlansRequester=new ot(s._requestTimeout,"DOX.ProofitPlans"),s._proofitStatisticsRequester=new ot(s._requestTimeout,"DOX.ProofitStatistics"),s._proofitCreateJobRequester=new ot(s._requestTimeout,"DOX.ProofitCreateJob"),s.getProofitPlans=s._startRequestWatch(s._proofitPlansRequester,s._sendInbandCommand((function(e){return new $n.ProofitOptionsMessage(e)}))),s.getProofitStatistics=s._startRequestWatch(s._proofitStatisticsRequester,s._sendInbandCommand((function(e){return new $n.ProofitStatisticsMessage(e)}))),s._disconnectHandler=function(){s._changesQueue.isStaging&&(s._log.warn("Got disconnect while trying send changes"),s._changesQueue.unstage())},s._resolvePendingFlushPromise=function(e){return(0,P.Q1)()},s._handler=new ir.DefaultHandler(r),s._fsm.from(tr.READY).to(tr.WAIT_ACK).on(nr.SEND).from(tr.WAIT_ACK).to(tr.READY).on(nr.ACK,nr.RESET).from(tr.WAIT_ACK).to(tr.DISCONNECTED).on(nr.DISCONNECT).from(tr.WAIT_ACK).to(tr.CLOSED).on(nr.CLOSE).on(tr.READY,(function(e){return s._trySendAfterTimeout()})).on(tr.CLOSED,(function(e){var t=Boolean(e.args)?e.args:null,n=t?new Ln({code:t.code,status:Gn.CLOSED_ERROR.status,message:Boolean(t.reason)?t.reason:Gn.CLOSED_ERROR.message}):Gn.CLOSED_ERROR;s._failInit(n),s._changesQueue.drop("close")})).on(tr.DISCONNECTED,(function(){s._changesQueue.drop("disconnect","cmd")})),(0,P.iR)("doxReset",(function(e){if(void 0===e)throw new Error("provide text!");s._handleResetMessage({op:"reset",id:s._nextId++,doc:(new C).insert(e),vsn:s._revision+10,clientId:s._clientId})})),(0,P.iR)("doxState",s),(0,P.iR)("closeDoxSocket",(function(e,t){void 0===e&&(e=1e3),s._conn._ws.close(e,t)})),s}return(0,D.__extends)(t,e),t.getWsDocumentUrl=function(e,t){var n=void 0===t?"/documents/ws":"/documents/".concat(t,"/ws");return"".concat(e).concat(n)},t.prototype._startRequestWatch=function(e,t){return(0,H.pipe)(t,Ee.fold((function(e){return Ee.left(e)}),(function(t){return function(){return e.watchRequest(t)}})))},Object.defineProperty(t.prototype,"isInitialRevision",{get:function(){return 1===this._revision},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fsmState",{get:function(){return tr[this._fsm.current]},enumerable:!1,configurable:!0}),t.prototype.placeProofitOrder=function(e,t){var n=Kn.PlanType[e.turnaround],r=e.tier===Kn.PlanTier.Clarity,i={dialect:k.toUndefined(e.userInputs.dialect),quotationType:k.toUndefined(e.userInputs.quotationType),spaceType:k.toUndefined(e.userInputs.spaceType)},o=e.priceOfferId,a=e.payWithCredits,s=(0,H.pipe)(t,k.fold((function(){return function(e){return new $n.ProofitPlaceOrderMessage(e,n,r,i,o,a)}}),(function(e){if(e.kind===Vn.creditCard){var t=e;return function(e){return new $n.ProofitPlacePaymentOrderMessage(e,n,r,i,o,a,t.nonce,t.postalCode)}}if(e.kind===Vn.paypal){var s=e;return function(e){return new $n.ProofitPlacePaymentOrderMessage(e,n,r,i,o,a,s.nonce)}}return(0,M.vE)(e)})));return this._startRequestWatch(this._proofitCreateJobRequester,this._sendInbandCommand(s))},t.prototype.pushChanges=function(e){var t=this;return Ee.fromIOEither((function(){return t._pushChanges(e)}))},t.prototype.updateMetadata=function(e){var t=this;return Ee.fromIOEither((function(){return t._updateMetadata(e)}))},t.prototype.getWsUrl=function(){return this._originalUrl+(-1===this._revision?"":"?sinceVersion=".concat(this._revision))},t.prototype._handleMessage=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t;return(0,D.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this._messageHandler(e)];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),this._log.warn("Fail on processing incoming message",t),this._failInit(t),this._conn.close({code:ue.WsCodes.CLIENT_MALFUNCTION,reason:"Unexpected failure on: ".concat((0,M.j_)(t)?t.message:"")}),[3,3];case 3:return[2]}}))}))},t.prototype._messageHandler=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(t){switch(t.label){case 0:switch(this._log.isEnabled(he.LogLevel.TRACE)&&this._log.trace("Message <<<",{message:JSON.stringify(e)}),e.op){case"init":return[3,1];case"patch":return[3,3];case"reset":return[3,9];case"vsn":return[3,11];case"mongodb_change":return[3,12];case"document_metadata_changed":return[3,13];case"proofit_turnaround_options":return[3,14];case"proofit_create_job":return[3,15];case"proofit_statistics":return[3,16]}return[3,17];case 1:return[4,this._handleInitMessage(e)];case 2:return t.sent(),[3,18];case 3:return this._fsm.is(tr.READY)||this._fsm.is(tr.WAIT_ACK)&&this._clientId===e.cl?[4,this._handlePatchMessage(e)]:[3,5];case 4:return t.sent(),[3,8];case 5:return this._fsm.is(tr.WAIT_ACK)?(this._log.warn("got change while waiting ack for other change"),[4,this._handlePatchMessage(e)]):[3,7];case 6:return t.sent(),[3,8];case 7:this._log.warn("got unexpected patch message",{fsmState:tr[this._fsm.current]}),t.label=8;case 8:return[3,18];case 9:return[4,this._handleResetMessage(e)];case 10:return t.sent(),[3,18];case 11:case 12:return[3,18];case 13:return this._handleMetaChangeMessage(e),[3,18];case 14:return this._proofitPlansRequester.onValue(e.id,Kn.processOptions(e)),[3,18];case 15:return this._proofitCreateJobRequester.onValue(e.id,Kn.parseCreateJobResult(e)),[3,18];case 16:return this._proofitStatisticsRequester.onValue(e.id,Kn.processStatistics(e)),[3,18];case 17:e.error||(this._log.warn("Unexpected message",{message:e}),this._failInit(e)),t.label=18;case 18:return[2]}}))}))},t.prototype._handleInitMessage=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,o;return(0,D.__generator)(this,(function(a){switch(a.label){case 0:return[4,this._fsm.event(nr.INITIALIZE)];case 1:return a.sent()?(t=void 0!==e.deltas?e.deltas:[]).length>0?(this._log.debug("Got changes on init. Skipping reset"),n=T.flatMap(t.map((function(e){return e.deltas}))),r=t[0].doc_len,i=t[0].rev,[4,this._handlePatchMessage(new $n.PatchMessage(-1,-1,i,r,n,e.vsn),e.doc_len)]):[3,3]:[3,5];case 2:a.sent(),a.label=3;case 3:return o=new C(e.doc),this._initHandler?(this._log.trace("calling _initHandler"),this._initHandler({initialDelta:v.unsafeRes(o),remoteDocument:this,meta:ir.Meta.parse(e)}),this._initHandler=null,this._initFailHandler=null,this._clear(e)):0===t.length&&e.vsn!==this._revision?(this._log.debug("Remote has unknown revision, goto reset"),this._handleResetMessage({id:-1,op:"reset",clientId:e.clientId,vsn:e.vsn,doc:o})):this._clear(e),this._log.trace("Init complete, going to INITIALIZED"),[4,this._fsm.event(nr.INITIALIZED)];case 4:return a.sent(),[3,5];case 5:return[2]}}))}))},Object.defineProperty(t.prototype,"inSync",{get:function(){return this._changesQueue.isEmpty&&!this._changesQueue.isStaging},enumerable:!1,configurable:!0}),t.prototype.isStable=function(e){return void 0!==e&&void 0===e.error&&this._msgCount>5},t.prototype._handlePatchMessage=function(e,t){return(0,D.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return(0,D.__generator)(this,(function(s){switch(s.label){case 0:return(n=e.cl===this._clientId)?(this._log.trace("got patch from same client"),[4,this._fsm.event(nr.ACK)]):[3,2];case 1:return s.sent()?(this._log.trace("got ack for patch"),this._changesQueue.ack()):this._log.debug("got patch message from same client, but we are in unexpected state",{state:tr[this._fsm.current]}),[3,3];case 2:this._log.trace("got patch from other client"),Ze(this._revision,e.rev,"incoming patch should be on known revision"),this._handler.changeHandler(this,v.flush()),r=g.squash(e.deltas),i=v.delta(new C(r),e.doc_len),void 0!==t&&Ze(t,i.length+i.prevLen,"validated doc_len should match"),this._log.isEnabled(he.LogLevel.TRACE)&&!this._changesQueue.isEmpty&&this._log.trace("received incoming change, while has outgoing changes",JSON.stringify(i)),o=this._changesQueue.transformChangeAgainstQueue(i),i.prevLen!==o.prevLen&&(this._log.debug("incoming delta changed prev_len after transform on queue",{was:i.prevLen,now:o.prevLen}),this._log.trace("incoming delta transformed to",o)),this._handler.changeHandler(this,o),s.label=3;case 3:this._revision=n?e.rev:void 0===e.revAfterApply?e.rev+1:e.revAfterApply,s.label=4;case 4:return s.trys.push([4,6,,7]),[4,this._conn.send(new $n.VersionMessage(this._nextId++,e.rev))];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),this._log.debug("fail onsend vsn ack",a),[3,7];case 7:return[2]}}))}))},t.prototype._handleResetMessage=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t;return(0,D.__generator)(this,(function(n){switch(n.label){case 0:return this._log.warn("Got RESET message. currently in ".concat(tr[this._fsm.current])),(t=this._fsm.is(tr.READY))?[3,2]:[4,this._fsm.event(nr.RESET)];case 1:t=n.sent(),n.label=2;case 2:return t?(this._changesQueue.isStaging&&(this._log.debug("We got reset while trying send changed"),this._changesQueue.unstage()),this._changesQueue.drop("got reset"),this._clear(e),this._handler.changeHandler(this,v.unsafeRes(new C(e.doc)))):this._log.warn("Can not enter reset state, currently in ".concat(tr[this._fsm.current])),[2]}}))}))},t.prototype._handleMetaChangeMessage=function(e){this._changesQueue.drop("got incoming meta","meta");var t=ir.Meta.parse(e);this._handler.metadataChangeHandler(this,t)},t.prototype._failInit=function(e){this._initFailHandler&&(this._log.trace("_failInit(".concat(tr[this._fsm.current],")")),this._initFailHandler(e),this._initHandler=null,this._initFailHandler=null)},t.prototype._clear=function(e){var t=e.vsn,n=e.clientId;this._log.trace("_clear: resetting client id ".concat(this._clientId," -> ").concat(n,", revision ").concat(this._revision," -> ").concat(t)),this._nextId=1,this._clientId=n,this._revision=t},t.prototype.flush=function(){var e=this;if(this._log.trace("flush(".concat(tr[this._fsm.current],")")),this._changesQueue.isEmpty)return this._resolvePendingFlushPromise(),Promise.resolve();if(!this._flushPromise){var t,n=function(){e._flushPromise=void 0,e._forceSend=!1,e._resolvePendingFlushPromise=P.Q1,t&&clearTimeout(t)};this._flushPromise=new Promise((function(n,r){e._forceSend=!0,e._resolvePendingFlushPromise=n,t=window.setTimeout((function(){return r(new Ve("flush takes too long"))}),4e3)})).then(n,(function(e){throw n(),e})),Boolean(this._timeout)&&(clearTimeout(this._timeout),this._timeout=void 0,this._trySendAfterTimeout())}return this._flushPromise},t.prototype._trySendAfterTimeout=function(){var e=this;Boolean(this._timeout)||(this._timeout=window.setTimeout((function(){e._timeout=void 0,e._fsm.is(tr.READY)?e._changesQueue.isEmpty||e._changesQueue.isStaging?(e._changesQueue.isEmpty&&e._resolvePendingFlushPromise(),e._trySendAfterTimeout()):e._send().catch((function(t){return e._log.warn("unexpected error onsend",t)})):e._log.trace("_trySendAfterTimeout: not in READY, stopping send loop")}),this._changesQueue.size>1||this._forceSend?this._changesQueue.isStaging?250:0:this._sendDelay))},t.prototype._send=function(){return(0,D.__awaiter)(this,void 0,void 0,(function(){var e,t=this;return(0,D.__generator)(this,(function(n){switch(n.label){case 0:return[4,this._fsm.event(nr.SEND)];case 1:return n.sent()?(e=this._changesQueue.poll(),[4,(0,H.pipe)(e,k.map((function(e){return(0,D.__awaiter)(t,void 0,void 0,(function(){var t,n,r;return(0,D.__generator)(this,(function(i){switch(i.label){case 0:t=er.isChange(e),n=this._createMessage(e),this._log.isEnabled(he.LogLevel.TRACE)&&this._log.trace("Message >>>",{message:JSON.stringify(n)}),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,this._conn.send(n)];case 2:return i.sent(),t?[3,4]:[4,this._fsm.event(nr.ACK)];case 3:i.sent()?this._changesQueue.ack():this._log.debug("can not do ack for non change msg because we are in unexpected state",{state:tr[this._fsm.current]}),i.label=4;case 4:return[3,6];case 5:return r=i.sent(),this._log.error("Got error on ws send: ".concat(JSON.stringify({error:r,connectionState:this._conn.state,fsmState:tr[this._fsm.current],queueSize:this._changesQueue.size,messageKind:e.kind},void 0,2))),[3,6];case 6:return[2]}}))}))})),k.getOrElse((function(){return Promise.resolve()})))]):[3,3];case 2:return n.sent(),[3,4];case 3:this._log.warn("we can not send"),n.label=4;case 4:return[2]}}))}))},t.prototype._updateMetadata=function(e){return this._log.trace("_updateMetadata"),this._canSend()?_.right(this._changesQueue.pushMeta(e)):(this._log.warn("updateMetadata: cannot send, rejecting changes"),_.left(new qe("Cannot send commands as WS connection is down")))},t.prototype._pushChanges=function(e){return this._log.trace("pushChanges: ".concat(e.kind)),v.isDelta(e)?this._canSend()?_.right(this._changesQueue.pushChanges(e)):(this._log.warn("pushChanges: cannot send, rejecting changes"),_.left(new qe("Cannot send commands as WS connection is down"))):v.isReset(e)?_.left(new Error("Invalid change. Reset changes are not supported by dox")):_.right([])},t.prototype._sendInbandCommand=function(e){var t=this;return Ee.fromIOEither((function(){var n=e(t._nextId++);if(t._log.trace("_sendInbandCommand:",n.op),!t._canSend())return t._log.warn("_sendInbandCommand: cannot send, rejecting command",n.op),_.left(new qe("Cannot send commands as WS connection is down"));var r=t._changesQueue.isEmpty;return t._changesQueue.pushCommand(n),r&&t._fsm.is(tr.READY)&&(t._log.trace("Q.isEmpty, sending command immidiately",n),t._send()),_.right(n.id)}))},t.prototype._createMessage=function(e){switch(e.kind){case"change":return this._createPatchMessage(e.change);case"meta":return this._createUpdateMetaMessage(e.meta);case"cmd":return e.cmd;default:return(0,M.vE)(e)}},t.prototype._createPatchMessage=function(e){return new $n.PatchMessage(this._nextId++,this._clientId,this._revision,e.prevLen,[e.delta])},t.prototype._createUpdateMetaMessage=function(e){var t=e.title,n=e.errors,r=e.settings;return new $n.UpdateDocumentMetadata(this._nextId++,t,n,void 0!==r?r.toJSON():void 0)},t}(or);!function(e){!function(e){e.parse=function(e){var t=e.title,n=e.errors,r=e.extra_params,i=e.proofit,o={title:t,errors:n,settings:Jn.Holder.fromJSON(r),proofit:Kn.fromRaw(i)};return"init"===e.op?(0,D.__assign)((0,D.__assign)({},o),{isDemoDocument:Boolean(e.demo),createdAt:(0,H.pipe)(de.Local.parseDate(e.created_at),_.getOrElse((function(){return null}))),originalFilename:e.orig_filename}):o}}(e.Meta||(e.Meta={}));var t=function(e){this._handler=e,this.changeHandler=this._handler.changeHandler||P.Q1,this.metadataChangeHandler=this._handler.metadataChangeHandler||P.Q1,this.connectHandler=this._handler.connectHandler||P.Q1,this.disconnectHandler=this._handler.disconnectHandler||P.Q1};e.DefaultHandler=t,function(e){var t=function(e){this._handler=e,this.acceptedMsgHandler=this._handler.acceptedMsgHandler||function(){},this.droppedMsgsHandler=this._handler.droppedMsgsHandler||function(){}};e.DefaultHandler=t,e.create=function(e){var n=new t(e),r=n.acceptedMsgHandler,i=n.droppedMsgsHandler;return new rr(r,i)}}(e.Queue||(e.Queue={}))}(ir||(ir={}));var sr,ur=function(){function e(e,t){var n=this;this._connection=e,this._doc=t,this._log=Me.Monitoring.Logging.getLogger("coreclients.remote.autoconnect"),this.getProofitPlans=(0,H.pipe)(Ee.rightIO((function(){return n._checkConnected()})),Ee.chain((function(){return n._doc.getProofitPlans}))),this.getProofitStatistics=(0,H.pipe)(Ee.rightIO((function(){return n._checkConnected()})),Ee.chain((function(){return n._doc.getProofitStatistics}))),this.flush=function(){return n._doc.flush()},this.getWsUrl=function(){return n._doc.getWsUrl()},this.init=function(e,t){return n._doc.init((function(t){return e((0,D.__assign)((0,D.__assign)({},t),{remoteDocument:n}))}),t)},this.isStable=function(e){return n._doc.isStable(e)},this.close=function(e,t){return n._doc.close(e,t)},this.isClosed=function(){return n._doc.isClosed()}}return Object.defineProperty(e.prototype,"isInitialRevision",{get:function(){return this._doc.isInitialRevision},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSync",{get:function(){return this._doc.inSync},enumerable:!1,configurable:!0}),e.prototype.pushChanges=function(e){return this._checkConnected(),this._doc.pushChanges(e)},e.prototype.updateMetadata=function(e){return this._checkConnected(),this._doc.updateMetadata(e)},e.prototype.placeProofitOrder=function(e,t){return this._doc.placeProofitOrder(e,t)},e.prototype._checkConnected=function(){this._connection.isIdle()?(this._log.debug("connection is idle, triggering new connection"),this._connection.connect(this.getWsUrl())):this._log.trace("already connected or cannot connect, skipping")},e}(),cr=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i._disconnectHandler=P.Q1,i._handler=new sr.DefaultHandler(r),i._fsm.on(tr.CLOSED,(function(e){var t=Boolean(e.args)?e.args:Gn.CLOSED_ERROR;i._initFailHandler&&(i._initFailHandler(t),i._initFailHandler=null)})),(0,P.iR)("closeDoxListSocket",(function(e,t){void 0===e&&(e=1e3),i._conn._ws.close(e,t)})),i}return(0,D.__extends)(t,e),t.prototype._handleConnect=function(t){return(0,D.__awaiter)(this,void 0,void 0,(function(){return(0,D.__generator)(this,(function(n){switch(n.label){case 0:return[4,e.prototype._handleConnect.call(this,t)];case 1:return n.sent(),this._initHandler&&(this._log.debug("calling init handler"),this._initHandler(this),this._initHandler=null,this._initFailHandler=null),[2]}}))}))},t.prototype.isStable=function(){return!0},Object.defineProperty(t.prototype,"inSync",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype._handleMessage=function(e){return(0,D.__awaiter)(this,void 0,void 0,(function(){var t;return(0,D.__generator)(this,(function(n){switch(this._log.trace("<<< ",{message:e}),e.op){case"document_metadata_changed":this._handleMetaChangeMessage(e);break;case"mongodb_change":break;default:t=e,this._log.warn("Never",{message:t})}return[2]}))}))},t.prototype._handleMetaChangeMessage=function(e){var t=ir.Meta.parse(e);this._handler.metadataChangeHandler(String(e.id),t)},t}(or);!function(e){var t=function(e){this._handler=e,this.metadataChangeHandler=this._handler.metadataChangeHandler||P.Q1,this.connectHandler=this._handler.connectHandler||P.Q1,this.disconnectHandler=this._handler.disconnectHandler||P.Q1};e.DefaultHandler=t}(sr||(sr={}));var Mr,mr=function(){function e(e){this._wsBaseUrl=this._getWsBaseUrl(e)}return e.prototype._getWsBaseUrl=function(e){var t=new RegExp("(http(s?)|ws(s?))://([^/]+)/?.*$").exec(e);if(null===t)throw new Error("Cannot parse ws url");var n=t[3],r=t[4];return"ws".concat(n,"://").concat(r)},e.prototype.getDocsListWsUrl=function(){return"".concat(this._wsBaseUrl,"/documents/ws")},e.prototype.getDocWsUrl=function(e){return"".concat(this._wsBaseUrl,"/documents/").concat(e,"/ws")},e}(),lr=function(){function e(e,t,n,r){var i=this;void 0===r&&(r="web"),this._url=e,this._ajaxFactory=t,this._fingerprints=n,this._clientType=r,this._headersAppender=X({"X-API-Version":"2","X-Client-Type":function(){return i._clientType}}),this._ajax=this._ajaxFactory({requestExtender:Q.Extender.compose(W.toHeaderAppender(this._fingerprints),this._headersAppender),errorMapper:Gn.doxErrorMapper})}return Object.defineProperty(e.prototype,"clientType",{set:function(e){this._clientType=e},enumerable:!1,configurable:!0}),e.prototype.listDocuments=function(t,n,r,i,o,a){return void 0===t&&(t=e.unlimited),void 0===n&&(n=e.OrderBy.Any),void 0===r&&(r=!1),void 0===i&&(i=e.DocumentFilter.all),this._queryDocuments(Yn.Search.all(),t,n,r,i,o,a)},e.prototype.searchDocument=function(t,n,r,i){return void 0===n&&(n=e.unlimited),void 0===r&&(r=e.OrderBy.Any),void 0===i&&(i=e.DocumentFilter.all),this._queryDocuments(t,n,r,!1,i)},e.prototype.listDeleted=function(t,n,r,i){return void 0===t&&(t=e.unlimited),void 0===n&&(n=e.OrderBy.Any),this._queryDocuments(Yn.Search.all(),t,n,!1,e.DocumentFilter.trash,r,i)},e.prototype.getDocumentsCount=function(t){void 0===t&&(t=e.DocumentFilter.all);var n=Q.get(this._url,"/documents").queryParam("filterDocs",t).queryParam("onlyCnt","true");return this._ajax.json(n)},e.prototype.createDocument=function(e){var t=e._getHttpRequestBuilder().url(this._url,"/documents").method(z.Method.POST);return(0,H.pipe)(this._ajax.json(t),this._ajax.map((function(e){return new Zn(e)})))},e.prototype.downloadOriginal=function(e,t){void 0===t&&(t=!1);var n=Q.join(this._url,"/documents",encodeURIComponent(e),"download")+(t?"":"?no_tracking");return this._ajax.file(Q.get(n))},e.prototype.downloadInFormat=function(e,t,n){void 0===n&&(n=!1);var r=Q.get(this._url,"/documents",encodeURIComponent(e),"download").queryParam("format",t);return n||(r=r.queryParam("no_tracking","true")),"docx"===t&&(r=r.queryParam("enableRTF","true")),this._ajax.file(r)},e.prototype.url=function(){return this._url},e.prototype.downloadProofread=function(e,t){void 0===t&&(t=!1);var n=Q.get(this._url).pathParam("documents").pathParam(e).pathParam("proofread"),r=t?n.queryParam("includeDeleted","true"):n;return this._ajax.file(r)},e.prototype.downloadAll=function(){var e=Q.post(this._url).pathParam("documents").pathParam("downloadAll");return this._ajax.file(e)},e.prototype.deleteDocumentById=function(e){var t=Q.del(this._url,"/documents").pathParam(e);return this._ajax.empty(t)},e.prototype.restoreDocumentById=function(e){var t=Q.post(this._url,"/documents",encodeURIComponent(e),"restore");return this._ajax.empty(t)},e.prototype.forceDelete=function(e){var t=Q.del(this._url,"/documents").pathParam(e).queryParam("forceDelete","true");return this._ajax.empty(t)},e.prototype.emptyBin=function(){var e=Q.del(this._url,"/documents/deleted");return this._ajax.empty(e)},e.prototype.generateReport=function(e,t,n){var r=n.headerTemplate,i=n.footerTemplate,o=n.format,a=n.width,s=n.height,u=n.marginTop,c=n.marginRight,M=n.marginBottom,m=n.marginLeft,l=Q.join(this._url,"/documents",encodeURIComponent(e),"report");return this._ajax.file(Q.post(l).json({html:t,header_template:r,footer_template:i,format:o,width:a,height:s,margin_top:u,margin_right:c,margin_bottom:M,margin_left:m}))},e.prototype.extractPlainText=function(e){var t=Q.post(this._url,"/docproc/extract").multipartFormData("source_file",e);return(0,H.pipe)(this._ajax.json(t),this._ajax.filterOrElse((function(e){return"error"!==e.status}),(function(){return new Gn.TextExtractionError(e.name)})),this._ajax.map((function(e){return e.text})))},e.prototype._queryDocuments=function(t,n,r,i,o,a,s){void 0===n&&(n=e.unlimited),void 0===r&&(r=e.OrderBy.Any),void 0===i&&(i=!1),void 0===o&&(o=e.DocumentFilter.all);var u=Q.get(this._url,"/documents").queryParam("search",t.toSearchString()).queryParam("limit",String(n)).queryParam("firstCall",String(i)).queryParam("filterDocs",o);return Boolean(a)&&u.queryParam("updatedAtLessThan",String(a)),Boolean(s)&&u.queryParam("updatedAtMoreThan",String(s)),(0,H.pipe)(this._ajax.json(u),this._ajax.map((function(e){return e.map((function(e){return new Zn(e)}))})))},e.targetTag="dox",e.unlimited=0,e}();!function(e){!function(e){e[e.Updated=0]="Updated",e[e.Created=1]="Created",e[e.Any=2]="Any"}(e.OrderBy||(e.OrderBy={})),function(e){e.all="not_deleted",e.trash="deleted",e.proofread="not_deleted,proofreading_completed"}(e.DocumentFilter||(e.DocumentFilter={}))}(lr||(lr={})),function(e){e.is=function(){for(var e=[],t=0;t-1}))}),(function(n){return new j({code:-1,message:"Unexpected Content-Type",status:"Expected: ".concat(e.join(),"\nActual: ").concat(t(n))})}))}function r(e,t){return function(n){return F.task.of(n.header(e,t))}}function i(){for(var e=[],t=0;t=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function M(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function m(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof E?Promise.resolve(n.value.v).then(u,c):M(o[0][2],n)}catch(r){M(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function M(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:E(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&l(t,e,n);return C(t,e),t}function _(e){return e&&e.__esModule?e:{default:e}}function H(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}},84759:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(34163),i=n(63042),o=function(){function e(e,t,n,r){this.name=e,this.level=t,this.context=n,this.logColor=r,(0,i.Ol)(e)}return e.prototype.isEnabled=function(e){return e>=this.level},e.prototype.handler=function(e,t){var n=this;return{trace:function(r){throw n.trace(e,r,t),r},debug:function(r){throw n.debug(e,r,t),r},info:function(r){throw n.info(e,r,t),r},warn:function(r){throw n.warn(e,r,t),r},error:function(r){throw n.error(e,r,t),r},fatal:function(r){throw n.fatal(e,r,t),r}}},e.prototype.trace=function(e,t,n){this.log(r.LogLevel.TRACE,e,t,n)},e.prototype.debug=function(e,t,n){this.log(r.LogLevel.DEBUG,e,t,n)},e.prototype.info=function(e,t,n){this.log(r.LogLevel.INFO,e,t,n)},e.prototype.warn=function(e,t,n){this.log(r.LogLevel.WARN,e,t,n)},e.prototype.error=function(e,t,n){this.log(r.LogLevel.ERROR,e,t,n)},e.prototype.fatal=function(e,t,n){this.log(r.LogLevel.FATAL,e,t,n)},e.prototype.log=function(e,t,n,r){this.isEnabled(e)&&(Boolean(n)&&Boolean(r)||i.jI.isErrorLike(n)?this.logImpl(e,t,n,r):this.logImpl(e,t,void 0,null!==r&&void 0!==r?r:n))},e}()},9742:function(e,t,n){"use strict";n.d(t,{AW:function(){return M},L9:function(){return u},M5:function(){return c},Mc:function(){return l},P5:function(){return d}});var r=n(29388),i=n(34163),o=n(43476),a=n(63042),s=n(47356),u=function(){function e(e,t,n,r,i){void 0===i&&(i=!0),this._appName=e,this._appVersion=t,this._env=n,this._fetch=r,this._wrapExtra=i}return e._parseException=function(t){if(t){var n=e.toObject(t),i=n.name,o=void 0===i?"UnknownError":i,a=n.message,s=void 0===a?"Unknown error message":a,u=n.stack,c=(0,r.__rest)(n,["name","message","stack"]);return{exceptionPart:{exception:{name:o,message:s,stack:u}},exceptionDetailsPart:Object.keys(c).length>0?{exceptionDetails:c}:{}}}return{exceptionPart:{},exceptionDetailsPart:{}}},e.prototype.append=function(e){return this._fetch(this._prepareData(e))},e.toObject=function(e){return null==e||e instanceof Object&&!Array.isArray(e)?"function"===typeof(null===e||void 0===e?void 0:e.toJSON)?e.toJSON():e:{details:e}},e.prototype._prepareData=function(t){var n=Boolean(t.context)?{context:t.context}:{},r=e._parseException(t.exception),o=r.exceptionPart,s=r.exceptionDetailsPart,u=e.toObject(t.extra),c=JSON.stringify(this._wrapExtra?Object.assign({},s,u):s),M=Object.assign({message:t.message,logger:t.logger,level:i.LogLevel[t.level],application:this._appName,version:this._appVersion,env:this._env},a.i5.fromAny(n),o,"{}"!==c&&{details:c},!this._wrapExtra&&u&&{extra:u});return JSON.stringify(M,null,"")},e}(),c=function(e){function t(t,n,r,i,o,a){return void 0===a&&(a=!0),e.call(this,n,r,i,(function(e){return o(t,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:e}).then((function(){}))}),a)||this}return(0,r.__extends)(t,e),t}(u),M=function(e){function t(t,n,r,i,o,a){void 0===a&&(a=!0);var s="".concat(t,"/log?json=");return e.call(this,n,r,i,(function(e){return o(s+encodeURIComponent(e),{mode:"no-cors",method:"get",cache:"no-cache"}).then((function(){}))}),a)||this}return(0,r.__extends)(t,e),t}(u);function m(e){return o.MetricsConfig.getRootMetric().getCounter(e)}var l=function(){function e(e){var t=this;this._sink=e,this._counters=new Map;var n,r=(n="logging.levels",o.MetricsConfig.getRootMetric().getMetric(n));Object.keys(i.LogLevel).map((function(e){return i.LogLevel[e]})).filter((function(e){return"number"===typeof e})).forEach((function(e){return t._counters.set(e,r.getCounter(i.LogLevel[e]))}))}return e.prototype.append=function(e){var t=this._counters.get(e.level);return t&&t.increment(),this._sink.append(e)},e}(),d=function(){function e(e){this._sink=e,this._throttled=[],this._shortRateReporter={name:"short",indicator:new a.pS.RateLimitIndicator(new a.pS(30,2e3),1e4),counter:m("logRates.short")},this._longRateReporter={name:"long",indicator:new a.pS.RateLimitIndicator(new a.pS(120,24e4),3e4),counter:m("logRates.long")},this._counting=m("logRates.either"),this._countingStarted=0,this._droppingLimiter=new a.pS(2,6e4),this._dropped=0}return e.prototype.append=function(t){var n,r=this._shortRateReporter.indicator.hit(),i=this._longRateReporter.indicator.hit();if((r.wasTriggered||i.wasTriggered)&&(r.wasTriggered&&r.aboveThreshold&&this._shortRateReporter.counter.increment(),i.wasTriggered&&i.aboveThreshold&&this._longRateReporter.counter.increment(),r.aboveThreshold||i.aboveThreshold?this._counts||(this._counting.increment(),this._counts=new a.z6(50),this._countingStarted=Date.now(),this._sink.append(this._createTriggeredEvent(t,"Logging rate is above threshold",{short:r,long:i})).catch(console.warn)):(this._counts=void 0,this._throttled=[],this._sink.append(this._createTriggeredEvent(t,"Logging rate is back to normal",{dropped:this._dropped})).catch(console.warn))),this._counts){var o=this._eventToString(t),s=null!==(n=this._counts.set(o,(function(e){return(null!==e&&void 0!==e?e:0)+1})))&&void 0!==n?n:0;return s/((Date.now()-this._countingStarted)/1e3)>e.DROP_RATE&&s>e.DROP_COUNT&&!this._droppingLimiter.hit()?(this._throttled.some((function(e){return e===t.message}))||(this._throttled.push(t.message),this._sink.append(this._createTriggeredEvent(t,"Started throttling logs",{throttledLogs:t.message})).catch(console.warn)),this._drop(),Promise.reject("Log message discarded due to rate limiting: "+t.message)):this._sink.append(t)}return this._sink.append(t)},e.prototype._drop=function(){++this._dropped},e.prototype._createTriggeredEvent=function(e,t,n){return new s.g(i.LogLevel.ERROR,t,"editor.logging.rate",Date.now(),e.exception,n,e.context)},e.prototype._eventToString=function(e){return e.level+e.logger+e.message},e.DROP_RATE=.5,e.DROP_COUNT=15,e}()},47356:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(34163),i=function(){function e(e,t,n,r,i,o,a,s){this.level=e,this.message=t,this.logger=n,this.timestamp=r,this.exception=i,this.extra=o,this.context=a,this.logColor=s}return e.prototype.dropContext=function(){return new e(this.level,this.message,this.logger,this.timestamp,this.exception,this.extra,this.logColor)},e.prototype.addContext=function(t){return new e(this.level,this.message,this.logger,this.timestamp,this.exception,this.extra,t,this.logColor)},e.prototype.changeLogger=function(t){return new e(this.level,this.message,t,this.timestamp,this.exception,this.extra,this.context)},e}();!function(e){e.show=function(e){return"[".concat(e.logger,"]: ").concat(r.LogLevel[e.level]," : ").concat(e.message," ").concat(Boolean(e.extra)?JSON.stringify(e.extra):""," ").concat(e.exception?JSON.stringify(e.exception):"")}}(i||(i={}))},43090:function(e,t,n){"use strict";n.d(t,{$T:function(){return d},cA:function(){return M},fl:function(){return l},kw:function(){return m}});var r=n(29388),i=n(19936),o=n(34163),a=n(84759),s=n(47356),u=n(63304),c=n(86457),M=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,i||new c.k,o)||this;return a.appender=r,a.logColor=o,a}return(0,r.__extends)(t,e),t.prototype.getLogger=function(e,n,r){return new t(this.name+"."+e,null!==n&&void 0!==n?n:this.level,this.appender,new c.k(this.context),r)},t.prototype.logImpl=function(e,t,n,r){var i=new s.g(e,t,this.name,Date.now(),n,r,this.context.get());try{this.appender(i)}catch(n){console.trace("Failed processing log event",n);try{m.printToConsole(i)}catch(o){console.error("No luck. Can't print the event",o)}}},t}(a.r),m=function(e){function t(n,r,i){return e.call(this,n,r,(function(e){return e.level>=r&&t.printToConsole(e)}),i)||this}return(0,r.__extends)(t,e),t.printToConsole=function(e){console.log;(e.level<=o.LogLevel.TRACE||e.level<=o.LogLevel.DEBUG?"function"===typeof console.debug?console.debug:console.log:e.level<=o.LogLevel.INFO?console.log:e.level<=o.LogLevel.WARN?console.warn:console.error).apply(console,(e.logColor?(0,r.__spreadArray)((0,r.__spreadArray)([],t._getStyledLoggerName(e),!0),["".concat(o.LogLevel[e.level]," : ").concat(e.message),e.exception,e.extra],!1):["[".concat(e.logger,"]: ").concat(o.LogLevel[e.level]," : ").concat(e.message),e.exception,e.extra]).filter((function(e){return Boolean(e)})))},t._getStyledLoggerName=function(e){var t=(0,i.pipe)(o.LogColor.HSL.getContrastTextColor(e.logColor),o.LogColor.HSL.toString),n=o.LogColor.HSL.toString(e.logColor);return["%c".concat(e.logger),"color:".concat(t,";padding:4px;background:").concat(n,";border-radius:4px")]},t}(M),l=function(){function e(e){var t=this;this.sink=function(e){t._buffer.push(e.dropContext())},this._buffer=new u.d(e,!0)}return Object.defineProperty(e.prototype,"logs",{get:function(){return this._buffer.toArray()},enumerable:!1,configurable:!0}),e}(),d=function(){function e(e,t,n,r){var i=this;this._crashLogger=n,this._eventFactory=r,this._crashLogged=!1,this.sink=function(e){i._buffer.push(e.dropContext()),i._trigger(e)&&i._sendCrashLog(e)},this._buffer=new u.d(e,!0),this._trigger="function"===typeof t?t:function(e){return e.level>=t}}return Object.defineProperty(e.prototype,"logs",{get:function(){return this._buffer.toArray()},enumerable:!1,configurable:!0}),e.prototype._sendCrashLog=function(e){if(!this._crashLogged||this._buffer.size>this._buffer.capacity/2){var t=void 0;try{t=JSON.stringify(this.logs,void 0,0)}catch(n){t=n}this._crashLogger(this._eventFactory(e.level,"CrashLog",Date.now(),void 0,{events:t,first:!this._crashLogged,trigger:{message:e.message,logger:e.logger}}).addContext(e.context)),this._crashLogged=!0,this._buffer.clear()}},e}()},63304:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var r=function(){function e(e,t){if(void 0===t&&(t=!1),this.capacity=e,this.allowOverflow=t,this._start=0,this._end=0,this._isFull=!1,this.toJSON=this.toArray,e<=0)throw new Error("Invalid capacity "+e);this._buffer=new Array(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._isFull?this._buffer.length:(this._end-this._start+this._buffer.length)%this._buffer.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFull",{get:function(){return this._isFull},enumerable:!1,configurable:!0}),e.prototype.push=function(e){if(this.isFull){if(!this.allowOverflow)throw new Error("Buffer is full");++this._start,this._start===this.capacity&&(this._start=0)}this._buffer[this._end++]=e,this._end===this.capacity&&(this._end=0),this._start===this._end&&(this._isFull=!0)},e.prototype.pop=function(){if(!this.isEmpty){var e=this._buffer[this._start];return this._buffer[this._start]=void 0,this._start++,this._start===this.capacity&&(this._start=0),this._isFull=!1,e}},Object.defineProperty(e.prototype,"first",{get:function(){return this.isEmpty?void 0:this._buffer[this._start]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.isEmpty?void 0:this._buffer[0===this._end?this.capacity-1:this._end-1]},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this._buffer=new Array(this.capacity),this._start=this._end=0,this._isFull=!1},e.prototype.toArray=function(){var e;if(this.isEmpty)e=new Array(0);else if(this._start=this.levelGetter()},t.prototype.logImpl=function(e,t,n,r){var i=new M.g(e,t,this.name,Date.now(),n,r,this.context.get(),this.logColor);this.logger(i)},t}(u.r),y=function(e){return function(t){return t.level>=e}},g=function(e){return function(t){return t.level>=e()}};function E(e){return function(t){return function(n){return t(n.changeLogger(e))}}}function v(e){return function(t){return t.logger===e}}function b(e,t){return function(n){return function(r){return(t(r)?e:n)(r)}}}function w(e){return function(t){return function(n){return t(n.changeLogger(n.logger?e+"."+n.logger:e))}}}function S(e){return b(d,(0,s.not)(e))}function C(e){return S(y(e))}function A(e){return S(g(e))}function _(e){return function(t){return function(n){return t(n.addContext(e.get()))}}}function H(e){return function(t){return function(n){try{return t(n).catch((function(t){return e(new M.g(o.LogLevel.WARN,"Error while logging message.","Fallback",0,void 0,t))}))}catch(r){console.trace("Failed processing log event",r);try{return e(n)}catch(r){return console.error("No luck. Can't print the event",r),Promise.resolve()}}}}}function k(e){return function(t){return e(t)(t)}}function P(e,t){return function(n){return function(r){var i=n(r);if(!("function"===typeof e?e:y(e))(r)){var o=M.g.show(r);throw new Error("Post invariant failed: ".concat(Boolean(t)?t:"test condition returned false",", event was: ").concat(o))}return i}}}function N(){return function(e){var t=new c.Mc({append:function(t){return e(t)}});return function(e){return t.append(e)}}}function T(){return function(e){var t=new c.P5({append:function(t){return e(t)}});return function(e){return t.append(e)}}}function R(e,t){return function(n){var r=new m.$T(e,t,n,f);return function(e){return Promise.resolve(r.sink(e))}}}function B(e,t,n){return function(r){return new p(e,r,null!=n?(0,s.constant)(n):function(){return o.LogLevel.TRACE},t)}}function D(e,t,n){return function(r){return new p(e,r,t,n)}}var F=function(e){return Promise.resolve(m.kw.printToConsole(e))};function I(e,t){var n=new m.fl(e);return t((function(){return n.logs})),function(e){return Promise.resolve(n.sink(e))}}function x(e){var t=e.url,n=e.appName,r=e.appVersion,i=e.env,o=e.fetch,a=e.wrapExtra,s=void 0===a||a,u=new c.M5(t,n,r,i,o,s);return function(e){return u.append(e)}}var O,L=n(59108),j=n(43476),z=n(63042),Q=n(63304),G=o.LogLevel;!function(e){var t=function(){function e(){}return e.configureLogLevelGetter=function(t){e._getLogLevel=t},Object.defineProperty(e,"root",{get:function(){return L.LoggingConfig.getRootLogger()},enumerable:!1,configurable:!0}),e.getLogger=function(t,n,r){var i=e._getLogLevel(t,n),o=e.root.getLogger(t,e._getLogLevel(t,n),r);return n!==i&&o.debug('Logger "'.concat(t,'" initialized with level "').concat(null!=i&&G[i],'" instead of "').concat(null!=n&&G[n],'"')),o},e._getLogLevel=function(e,t){return t},e}();e.Logging=t;var n=function(){function e(){}return Object.defineProperty(e,"root",{get:function(){return j.MetricsConfig.getRootMetric()},enumerable:!1,configurable:!0}),e}();e.TimeSeries=n}(O||(O={}))},34163:function(e,t,n){"use strict";n.r(t),n.d(t,{LogColor:function(){return i},LogLevel:function(){return r}});var r,i,o=n(29388);!function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL",e[e.OFF=6]="OFF"}(r||(r={})),function(e){e.fromString=function(t){switch(t){case"TRACE":return e.TRACE;case"DEBUG":return e.DEBUG;case"INFO":return e.INFO;case"WARN":return e.WARN;case"ERROR":return e.ERROR;case"FATAL":return e.FATAL;case"OFF":return e.OFF;default:throw new TypeError("Unrecognized log level string '".concat(t,"'"))}}}(r||(r={})),function(e){function t(e){return function(t){var n=0;if(null==t||0===t.length)return e;for(var r=0;r50?0:100}},e.toString=function(e){return"hsl(".concat(e.hue,", ").concat(e.saturation,"%, ").concat(e.lightness,"%)")}}(e.HSL||(e.HSL={})),function(e){e.base={hue:43,saturation:74,lightness:66},e.getColor=t(e.base)}(e.Model||(e.Model={})),function(e){e.base={hue:12,saturation:76,lightness:61},e.getColor=t(e.base)}(e.ViewModel||(e.ViewModel={})),function(e){e.base={hue:173,saturation:58,lightness:39},e.getColor=t(e.base)}(e.Manager||(e.Manager={}))}(i||(i={}))},59108:function(e,t,n){"use strict";n.r(t),n.d(t,{AbstractLogger:function(){return r.r},ConsoleLogger:function(){return M.kw},CountingFelogWrapper:function(){return i.Mc},CrashLogWrapper:function(){return M.$T},FelogClientBase:function(){return i.L9},GetFelogClient:function(){return i.AW},LogEvent:function(){return o.g},LogQueue:function(){return c},LoggingConfig:function(){return l},PostFelogClient:function(){return i.M5},RateLimitingFelogWrapper:function(){return i.P5},RingBuffer:function(){return s.d},SimpleLogger:function(){return M.cA},TreeContext:function(){return m.k}});var r=n(84759),i=n(9742),o=n(47356),a=n(34163),s=n(63304),u=function(e){var t=this;this.event=e,this.promise=new Promise((function(e,n){t.resolve=e})).then((function(){}))},c=function(){function e(e,t,n){void 0===t&&(t=300),void 0===n&&(n=1e4),this._sink=e,this._retryInterval=n,this._currentItem=null,this._skippedCounter=null,this._buffer=new s.d(t,!1)}return e.prototype.append=function(e){if(this._buffer.isFull)return this._incSkippedCounter(),Promise.reject(new Error("Outgoing message buffer is full"));var t=new u(e);return this._buffer.push(t),this._doAppend(),t.promise},e.prototype._incSkippedCounter=function(){this._skippedCounter||(this._skippedCounter=new o.g(a.LogLevel.WARN,"Messages was skipped due to buffer overflow","logging_impl.LogQueue",Date.now(),void 0,{count:0})),this._skippedCounter.extra.count++},e.prototype._doAppend=function(){var e=this;if(!this._buffer.isEmpty&&!this._currentItem){var t=this._buffer.first,n=this._sink.append(t.event);this._currentItem=t,n.then((function(){t.resolve();var n=e._buffer.pop();if(n!==t&&n===e._currentItem)throw new Error("Illegal state");e._currentItem=null,e._skippedCounter&&(e.append(e._skippedCounter),e._skippedCounter=null),e._doAppend()})).catch((function(n){e._retryAppend(t)}))}},e.prototype._retryAppend=function(e){var t=this;setTimeout((function(){var n,r=null!==(n=e.event.extra)&&void 0!==n?n:{};null==r.appendRetries&&(r=e.event.extra=Object.assign({appendRetries:1},i.L9.toObject(r))),++r.appendRetries,t._currentItem=null,t._doAppend()}),this._retryInterval)},e}(),M=n(43090),m=n(86457),l=function(){function e(){}return e.getRootLogger=function(){return null==e._rootLogger&&(e._rootLogger=e._createDefaultRootLogger(),e._rootLogger.warn("Using DEFAULT root logger")),e._rootLogger},e.configure=function(t){e._rootLogger=t,e._rootLogger.debug("ROOT logger changed",t)},e._createDefaultRootLogger=function(){return new M.kw("DEFAULT",a.LogLevel.DEBUG)},e}()},43476:function(e,t,n){"use strict";n.r(t),n.d(t,{AbstractMetricsStorage:function(){return o},MetricsConfig:function(){return u},MetricsPrinter:function(){return a},MetricsStorage:function(){return s}});var r=n(29388),i=n(63042),o=function(){function e(e,t,n){this.name=e,this.timersSink=t,this.countersSink=n,(0,i.Ol)(e)}return e.prototype.getMetric=function(e){return this._createChild(e)},e.prototype.getTimer=function(e){return this._createChild(e)},e.prototype.getCounter=function(e){return this._createChild(e)},Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.name.lastIndexOf("."),n=this.name.substring(0,-1===t?0:t);return""===n?void 0:new e(n,this.timersSink,this.countersSink)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var t=this.name.indexOf("."),n=this.name.substring(0,-1===t?0:t);return""===n?this:new e(n,this.timersSink,this.countersSink)},enumerable:!1,configurable:!0}),e.prototype._createName=function(e){return this.name+"."+e},e.prototype.start=function(){var e=Date.now(),t=this;return{stop:function(){t.recordTime(Date.now()-e)}}},e.prototype.recordTime=function(e){this.timersSink(this.name,e)},e.prototype.timing=function(e){var t=this.start();try{return e()}finally{try{t.stop()}catch(n){}}},e.prototype.increment=function(e){void 0===e&&(e=1),this.countersSink(this.name,e)},e.prototype.decrement=function(e){void 0===e&&(e=1),this.increment(-e)},e.prototype._createChild=function(t){return new e(this._createName(t),this.timersSink,this.countersSink)},e}(),a=function(e){function t(t){return e.call(this,"MP",(function(e,n){return t("TIMER: "+e+" = "+n)}),(function(e,n){return t("COUNTER: "+e+" = "+n)}))||this}return(0,r.__extends)(t,e),t}(o),s=function(e){function t(t,n,r,i){void 0===i&&(i=7500);var o=e.call(this,t,(function(e,t){return o._reportTimer(e,t)}),(function(e,t){return o._reportCounter(e,t)}))||this;return o._fetch=r,o._sendTimeout=i,o._countersBuffer={},o._timersBuffer=new Array,o._sendTimer=void 0,o._sendData=function(){var e=[o._timersBuffer.join("&"),Object.keys(o._countersBuffer).map((function(e){return e+"="+o._countersBuffer[e]})).join("&")].filter((function(e){return e.length})).join("&"),t=o._baseUrl+e;o._timersBuffer.length=0,o._countersBuffer={},o._sendTimer=void 0;var n=0;!function e(){o._fetch(t,{mode:"no-cors",cache:"no-cache"}).catch((function(r){n++<3?setTimeout(e,5e3*n):console.error("Cannot send timesereies data",r,t)}))}()},o._baseUrl=n+"/ts?",o}return(0,r.__extends)(t,e),t.createRoot=function(e,n,r){return new t(e,n,r)},t.prototype._reportTimer=function(e,t){this._timersBuffer.push("t."+e+"="+t),this._startSending()},t.prototype._reportCounter=function(e,t){var n="c."+e;this._countersBuffer[n]=(this._countersBuffer[n]||0)+t,this._startSending()},t.prototype._startSending=function(){Boolean(this._sendTimer)||(this._sendTimer=setTimeout(this._sendData,this._sendTimeout))},t}(o),u=function(){function e(){}return e.getRootMetric=function(){return null==e._metricsRoot&&(console.warn("[WARNING] Using default timeseries implementation."),e._metricsRoot=new a(console.log)),e._metricsRoot},e.configure=function(t){e._metricsRoot=t},e}()},63042:function(e,t,n){"use strict";n.d(t,{Ol:function(){return s},i5:function(){return i},jI:function(){return r},pS:function(){return m},z6:function(){return u}});var r,i,o=n(29388);!function(e){e.isErrorLike=function(e){var t=e;return null!=t&&(void 0!==t.message&&void 0!==t.name||void 0!==t.stack)}}(r||(r={})),function(e){function t(e,i){if(null===e||void 0===e||"number"===typeof e||"string"===typeof e||"boolean"===typeof e)return e;if("object"===typeof e){if(e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e.toString();if(e instanceof Set)return Array.from(e,(function(e){return t(e,i)}));if(e instanceof Map)return Array.from(e).reduce((function(e,n){var r,a=n[0],s=n[1];return(0,o.__assign)((0,o.__assign)({},e),((r={})[a]=t(s,i),r))}),{});if(-1===i.indexOf(e)){i.push(e);var a=n(e,i,r.isErrorLike(e));return Object.keys(a).length>0?a:e}}}function n(e,n,r){if(!Boolean(e))return{};var i={};return(r?Object.getOwnPropertyNames:Object.keys)(e).forEach((function(r){var o=e[r];i[r]=t(o,n)})),i}e.fromAny=function(e){return n(e,[e],r.isErrorLike(e))}}(i||(i={}));var a=/^(?!\.[\w])[\w.]*\w$/;function s(e){if(""===e)throw new Error("Empty name");if(!a.test(e))throw new Error("Invalid name: ".concat(e,". ")+"Should be hierarchical dot separated string and may contain only word characters)")}var u=function(){function e(e){this.capacity=e,this.size=0,this._keymap={}}return e.prototype.put=function(e,t){var n={key:e,value:t};if(this._keymap[e]=n,this._tail?(this._tail.newer=n,n.older=this._tail):this._head=n,this._tail=n,this.size===this.capacity)return this.shift().value;++this.size},e.prototype.get=function(e){var t=this._getImpl(e);return t&&t.value},e.prototype.peek=function(e){var t=this._keymap[e];return null===t||void 0===t?void 0:t.value},e.prototype.set=function(e,t){var n=this._getImpl(e),r=t(n&&n.value);return null!=r?n?n.value=r:this.put(e,r):n&&this.remove(e),r},e.prototype.getRef=function(e){return this._getImpl(e)},e.prototype.remove=function(e){var t=this._keymap[e];if(null!=t)return delete this._keymap[e],t.newer&&t.older?(t.older.newer=t.newer,t.newer.older=t.older):t.newer?(t.newer.older=void 0,this._head=t.newer):t.older?(t.older.newer=void 0,this._tail=t.older):this._head=this._tail=void 0,--this.size,t.value},e.prototype.forEach=function(e){for(var t in this._keymap)e(t,this._keymap[t].value)},e.prototype.shift=function(){var e=this._head;return this._head&&(this._head.newer?(this._head=this._head.newer,this._head.older=void 0):this._head=void 0,e.newer=e.older=void 0,delete this._keymap[e.key]),e},e.prototype._getImpl=function(e){var t=this._keymap[e];if(null!=t)return t===this._tail||(t.newer&&(t===this._head&&(this._head=t.newer),t.newer.older=t.older),t.older&&(t.older.newer=t.newer),t.newer=void 0,t.older=this._tail,this._tail&&(this._tail.newer=t),this._tail=t),t},e}(),c=function(e){void 0===e&&(e="(nomessage)"),Error.call(this,e),this.stack=(new Error).stack,this.message=e,this.name=this.constructor.name};c.prototype=Object.create(Error.prototype);var M=function(e){function t(t){return e.call(this,t)||this}return(0,o.__extends)(t,e),t}(c),m=function(){function e(e,t){if(this.messageCount=e,this.timeframe=t,e<1)throw new M("messagesCount should be > 1");if(t<=0)throw new M("timeframe should be > 0");this._allowance=e,this._lastChecked=Date.now()}return e.prototype.hit=function(){var e=Date.now(),t=e-this._lastChecked;return this._lastChecked=e,this._allowance+=t*(this.messageCount/this.timeframe),this._allowance>this.messageCount&&(this._allowance=this.messageCount),!(this._allowance<1)&&(this._allowance-=1,!0)},e.prototype.toString=function(){return"[ messageCount: ".concat(this.messageCount,", timeframe: ").concat(this.timeframe,", allowance: ").concat(Math.trunc(1e3*this._allowance)/1e3,", _lastCheck: ").concat(this._lastChecked,"]")},e}();!function(e){var t=function(){function e(e,t){if(this._limiter=e,this._cooldownTime=t,this._lastLimiting=0,this._aboveThreshold=!1,t<0)throw new M("cooldownTime should be non-negative")}return e.prototype.hit=function(){var e=this._limiter.hit(),t=!1;return e?this._aboveThreshold&&Date.now()-this._cooldownTime>this._lastLimiting&&(this._aboveThreshold=!1,t=!0):(this._lastLimiting=Date.now(),this._aboveThreshold||(this._aboveThreshold=!0,t=!0)),{allow:e,aboveThreshold:this._aboveThreshold,wasTriggered:t}},e}();e.RateLimitIndicator=t}(m||(m={}))},66682:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractLogger=void 0;var r=n(87510),i=n(55202),o=function(){function e(e,t,n,r){this.name=e,this.level=t,this.context=n,this.logColor=r,(0,i.validateName)(e)}return e.prototype.isEnabled=function(e){return e>=this.level},e.prototype.handler=function(e,t){var n=this;return{trace:function(r){throw n.trace(e,r,t),r},debug:function(r){throw n.debug(e,r,t),r},info:function(r){throw n.info(e,r,t),r},warn:function(r){throw n.warn(e,r,t),r},error:function(r){throw n.error(e,r,t),r},fatal:function(r){throw n.fatal(e,r,t),r}}},e.prototype.trace=function(e,t,n){this.log(r.LogLevel.TRACE,e,t,n)},e.prototype.debug=function(e,t,n){this.log(r.LogLevel.DEBUG,e,t,n)},e.prototype.info=function(e,t,n){this.log(r.LogLevel.INFO,e,t,n)},e.prototype.warn=function(e,t,n){this.log(r.LogLevel.WARN,e,t,n)},e.prototype.error=function(e,t,n){this.log(r.LogLevel.ERROR,e,t,n)},e.prototype.fatal=function(e,t,n){this.log(r.LogLevel.FATAL,e,t,n)},e.prototype.log=function(e,t,n,r){this.isEnabled(e)&&(Boolean(n)&&Boolean(r)||i.ErrorLike.isErrorLike(n)?this.logImpl(e,t,n,r):this.logImpl(e,t,void 0,null!==r&&void 0!==r?r:n))},e}();t.AbstractLogger=o},32227:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RateLimitingFelogWrapper=t.CountingFelogWrapper=t.GetFelogClient=t.PostFelogClient=t.FelogClientBase=void 0;var r=n(29388),i=n(87510),o=n(41603),a=n(55202),s=n(23164),u=function(){function e(e,t,n,r,i){void 0===i&&(i=!0),this._appName=e,this._appVersion=t,this._env=n,this._fetch=r,this._wrapExtra=i}return e._parseException=function(t){if(t){var n=e.toObject(t),i=n.name,o=void 0===i?"UnknownError":i,a=n.message,s=void 0===a?"Unknown error message":a,u=n.stack,c=(0,r.__rest)(n,["name","message","stack"]);return{exceptionPart:{exception:{name:o,message:s,stack:u}},exceptionDetailsPart:Object.keys(c).length>0?{exceptionDetails:c}:{}}}return{exceptionPart:{},exceptionDetailsPart:{}}},e.prototype.append=function(e){return this._fetch(this._prepareData(e))},e.toObject=function(e){return null==e||e instanceof Object&&!Array.isArray(e)?"function"===typeof(null===e||void 0===e?void 0:e.toJSON)?e.toJSON():e:{details:e}},e.prototype._prepareData=function(t){var n=Boolean(t.context)?{context:t.context}:{},r=e._parseException(t.exception),o=r.exceptionPart,s=r.exceptionDetailsPart,u=e.toObject(t.extra),c=JSON.stringify(this._wrapExtra?Object.assign({},s,u):s),M=Object.assign({message:t.message,logger:t.logger,level:i.LogLevel[t.level],application:this._appName,version:this._appVersion,env:this._env},a.EventProps.fromAny(n),o,"{}"!==c&&{details:c},!this._wrapExtra&&u&&{extra:u});return JSON.stringify(M,null,"")},e}();t.FelogClientBase=u;var c=function(e){function t(t,n,r,i,o,a){return void 0===a&&(a=!0),e.call(this,n,r,i,(function(e){return o(t,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:e}).then((function(){}))}),a)||this}return(0,r.__extends)(t,e),t}(u);t.PostFelogClient=c;var M=function(e){function t(t,n,r,i,o,a){void 0===a&&(a=!0);var s="".concat(t,"/log?json=");return e.call(this,n,r,i,(function(e){return o(s+encodeURIComponent(e),{mode:"no-cors",method:"get",cache:"no-cache"}).then((function(){}))}),a)||this}return(0,r.__extends)(t,e),t}(u);function m(e){return o.MetricsConfig.getRootMetric().getCounter(e)}t.GetFelogClient=M;var l=function(){function e(e){var t=this;this._sink=e,this._counters=new Map;var n,r=(n="logging.levels",o.MetricsConfig.getRootMetric().getMetric(n));Object.keys(i.LogLevel).map((function(e){return i.LogLevel[e]})).filter((function(e){return"number"===typeof e})).forEach((function(e){return t._counters.set(e,r.getCounter(i.LogLevel[e]))}))}return e.prototype.append=function(e){var t=this._counters.get(e.level);return t&&t.increment(),this._sink.append(e)},e}();t.CountingFelogWrapper=l;var d=function(){function e(e){this._sink=e,this._throttled=[],this._shortRateReporter={name:"short",indicator:new a.RateLimiter.RateLimitIndicator(new a.RateLimiter(30,2e3),1e4),counter:m("logRates.short")},this._longRateReporter={name:"long",indicator:new a.RateLimiter.RateLimitIndicator(new a.RateLimiter(120,24e4),3e4),counter:m("logRates.long")},this._counting=m("logRates.either"),this._countingStarted=0,this._droppingLimiter=new a.RateLimiter(2,6e4),this._dropped=0}return e.prototype.append=function(t){var n,r=this._shortRateReporter.indicator.hit(),i=this._longRateReporter.indicator.hit();if((r.wasTriggered||i.wasTriggered)&&(r.wasTriggered&&r.aboveThreshold&&this._shortRateReporter.counter.increment(),i.wasTriggered&&i.aboveThreshold&&this._longRateReporter.counter.increment(),r.aboveThreshold||i.aboveThreshold?this._counts||(this._counting.increment(),this._counts=new a.LRUCache(50),this._countingStarted=Date.now(),this._sink.append(this._createTriggeredEvent(t,"Logging rate is above threshold",{short:r,long:i})).catch(console.warn)):(this._counts=void 0,this._throttled=[],this._sink.append(this._createTriggeredEvent(t,"Logging rate is back to normal",{dropped:this._dropped})).catch(console.warn))),this._counts){var o=this._eventToString(t),s=null!==(n=this._counts.set(o,(function(e){return(null!==e&&void 0!==e?e:0)+1})))&&void 0!==n?n:0;return s/((Date.now()-this._countingStarted)/1e3)>e.DROP_RATE&&s>e.DROP_COUNT&&!this._droppingLimiter.hit()?(this._throttled.some((function(e){return e===t.message}))||(this._throttled.push(t.message),this._sink.append(this._createTriggeredEvent(t,"Started throttling logs",{throttledLogs:t.message})).catch(console.warn)),this._drop(),Promise.reject("Log message discarded due to rate limiting: "+t.message)):this._sink.append(t)}return this._sink.append(t)},e.prototype._drop=function(){++this._dropped},e.prototype._createTriggeredEvent=function(e,t,n){return new s.LogEvent(i.LogLevel.ERROR,t,"editor.logging.rate",Date.now(),e.exception,n,e.context)},e.prototype._eventToString=function(e){return e.level+e.logger+e.message},e.DROP_RATE=.5,e.DROP_COUNT=15,e}();t.RateLimitingFelogWrapper=d},23164:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogEvent=void 0;var r=n(87510),i=function(){function e(e,t,n,r,i,o,a,s){this.level=e,this.message=t,this.logger=n,this.timestamp=r,this.exception=i,this.extra=o,this.context=a,this.logColor=s}return e.prototype.dropContext=function(){return new e(this.level,this.message,this.logger,this.timestamp,this.exception,this.extra,this.logColor)},e.prototype.addContext=function(t){return new e(this.level,this.message,this.logger,this.timestamp,this.exception,this.extra,t,this.logColor)},e.prototype.changeLogger=function(t){return new e(this.level,this.message,t,this.timestamp,this.exception,this.extra,this.context)},e}();t.LogEvent=i,function(e){e.show=function(e){return"[".concat(e.logger,"]: ").concat(r.LogLevel[e.level]," : ").concat(e.message," ").concat(Boolean(e.extra)?JSON.stringify(e.extra):""," ").concat(e.exception?JSON.stringify(e.exception):"")}}(i=t.LogEvent||(t.LogEvent={})),t.LogEvent=i},50373:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogQueue=void 0;var r=n(87510),i=n(32227),o=n(23164),a=n(36775),s=function(e){var t=this;this.event=e,this.promise=new Promise((function(e,n){t.resolve=e})).then((function(){}))},u=function(){function e(e,t,n){void 0===t&&(t=300),void 0===n&&(n=1e4),this._sink=e,this._retryInterval=n,this._currentItem=null,this._skippedCounter=null,this._buffer=new a.RingBuffer(t,!1)}return e.prototype.append=function(e){if(this._buffer.isFull)return this._incSkippedCounter(),Promise.reject(new Error("Outgoing message buffer is full"));var t=new s(e);return this._buffer.push(t),this._doAppend(),t.promise},e.prototype._incSkippedCounter=function(){this._skippedCounter||(this._skippedCounter=new o.LogEvent(r.LogLevel.WARN,"Messages was skipped due to buffer overflow","logging_impl.LogQueue",Date.now(),void 0,{count:0})),this._skippedCounter.extra.count++},e.prototype._doAppend=function(){var e=this;if(!this._buffer.isEmpty&&!this._currentItem){var t=this._buffer.first,n=this._sink.append(t.event);this._currentItem=t,n.then((function(){t.resolve();var n=e._buffer.pop();if(n!==t&&n===e._currentItem)throw new Error("Illegal state");e._currentItem=null,e._skippedCounter&&(e.append(e._skippedCounter),e._skippedCounter=null),e._doAppend()})).catch((function(n){e._retryAppend(t)}))}},e.prototype._retryAppend=function(e){var t=this;setTimeout((function(){var n,r=null!==(n=e.event.extra)&&void 0!==n?n:{};null==r.appendRetries&&(r=e.event.extra=Object.assign({appendRetries:1},i.FelogClientBase.toObject(r))),++r.appendRetries,t._currentItem=null,t._doAppend()}),this._retryInterval)},e}();t.LogQueue=u},2951:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CrashLogWrapper=t.BufferedLogger=t.ConsoleLogger=t.SimpleLogger=void 0;var r=n(29388),i=n(19936),o=n(87510),a=n(66682),s=n(23164),u=n(36775),c=n(44591),M=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,i||new c.TreeContext,o)||this;return a.appender=r,a.logColor=o,a}return(0,r.__extends)(t,e),t.prototype.getLogger=function(e,n,r){return new t(this.name+"."+e,null!==n&&void 0!==n?n:this.level,this.appender,new c.TreeContext(this.context),r)},t.prototype.logImpl=function(e,t,n,r){var i=new s.LogEvent(e,t,this.name,Date.now(),n,r,this.context.get());try{this.appender(i)}catch(n){console.trace("Failed processing log event",n);try{m.printToConsole(i)}catch(o){console.error("No luck. Can't print the event",o)}}},t}(a.AbstractLogger);t.SimpleLogger=M;var m=function(e){function t(n,r,i){return e.call(this,n,r,(function(e){return e.level>=r&&t.printToConsole(e)}),i)||this}return(0,r.__extends)(t,e),t.printToConsole=function(e){console.log;(e.level<=o.LogLevel.TRACE||e.level<=o.LogLevel.DEBUG?"function"===typeof console.debug?console.debug:console.log:e.level<=o.LogLevel.INFO?console.log:e.level<=o.LogLevel.WARN?console.warn:console.error).apply(console,(e.logColor?(0,r.__spreadArray)((0,r.__spreadArray)([],t._getStyledLoggerName(e),!0),["".concat(o.LogLevel[e.level]," : ").concat(e.message),e.exception,e.extra],!1):["[".concat(e.logger,"]: ").concat(o.LogLevel[e.level]," : ").concat(e.message),e.exception,e.extra]).filter((function(e){return Boolean(e)})))},t._getStyledLoggerName=function(e){var t=(0,i.pipe)(o.LogColor.HSL.getContrastTextColor(e.logColor),o.LogColor.HSL.toString),n=o.LogColor.HSL.toString(e.logColor);return["%c".concat(e.logger),"color:".concat(t,";padding:4px;background:").concat(n,";border-radius:4px")]},t}(M);t.ConsoleLogger=m;var l=function(){function e(e){var t=this;this.sink=function(e){t._buffer.push(e.dropContext())},this._buffer=new u.RingBuffer(e,!0)}return Object.defineProperty(e.prototype,"logs",{get:function(){return this._buffer.toArray()},enumerable:!1,configurable:!0}),e}();t.BufferedLogger=l;var d=function(){function e(e,t,n,r){var i=this;this._crashLogger=n,this._eventFactory=r,this._crashLogged=!1,this.sink=function(e){i._buffer.push(e.dropContext()),i._trigger(e)&&i._sendCrashLog(e)},this._buffer=new u.RingBuffer(e,!0),this._trigger="function"===typeof t?t:function(e){return e.level>=t}}return Object.defineProperty(e.prototype,"logs",{get:function(){return this._buffer.toArray()},enumerable:!1,configurable:!0}),e.prototype._sendCrashLog=function(e){if(!this._crashLogged||this._buffer.size>this._buffer.capacity/2){var t=void 0;try{t=JSON.stringify(this.logs,void 0,0)}catch(n){t=n}this._crashLogger(this._eventFactory(e.level,"CrashLog",Date.now(),void 0,{events:t,first:!this._crashLogged,trigger:{message:e.message,logger:e.logger}}).addContext(e.context)),this._crashLogged=!0,this._buffer.clear()}},e}();t.CrashLogWrapper=d},36775:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RingBuffer=void 0;var n=function(){function e(e,t){if(void 0===t&&(t=!1),this.capacity=e,this.allowOverflow=t,this._start=0,this._end=0,this._isFull=!1,this.toJSON=this.toArray,e<=0)throw new Error("Invalid capacity "+e);this._buffer=new Array(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._isFull?this._buffer.length:(this._end-this._start+this._buffer.length)%this._buffer.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFull",{get:function(){return this._isFull},enumerable:!1,configurable:!0}),e.prototype.push=function(e){if(this.isFull){if(!this.allowOverflow)throw new Error("Buffer is full");++this._start,this._start===this.capacity&&(this._start=0)}this._buffer[this._end++]=e,this._end===this.capacity&&(this._end=0),this._start===this._end&&(this._isFull=!0)},e.prototype.pop=function(){if(!this.isEmpty){var e=this._buffer[this._start];return this._buffer[this._start]=void 0,this._start++,this._start===this.capacity&&(this._start=0),this._isFull=!1,e}},Object.defineProperty(e.prototype,"first",{get:function(){return this.isEmpty?void 0:this._buffer[this._start]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.isEmpty?void 0:this._buffer[0===this._end?this.capacity-1:this._end-1]},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this._buffer=new Array(this.capacity),this._start=this._end=0,this._isFull=!1},e.prototype.toArray=function(){var e;if(this.isEmpty)e=new Array(0);else if(this._start50?0:100}},e.toString=function(e){return"hsl(".concat(e.hue,", ").concat(e.saturation,"%, ").concat(e.lightness,"%)")}}(e.HSL||(e.HSL={})),function(e){e.base={hue:43,saturation:74,lightness:66},e.getColor=t(e.base)}(e.Model||(e.Model={})),function(e){e.base={hue:12,saturation:76,lightness:61},e.getColor=t(e.base)}(e.ViewModel||(e.ViewModel={})),function(e){e.base={hue:173,saturation:58,lightness:39},e.getColor=t(e.base)}(e.Manager||(e.Manager={}))}(t.LogColor||(t.LogColor={}))},18829:function(e,t,n){"use strict";t.kw=t.cA=t.gr=void 0;var r=n(66682);var i=n(32227);var o=n(23164);Object.defineProperty(t,"gr",{enumerable:!0,get:function(){return o.LogEvent}});var a=n(50373);var s=n(2951);Object.defineProperty(t,"kw",{enumerable:!0,get:function(){return s.ConsoleLogger}}),Object.defineProperty(t,"cA",{enumerable:!0,get:function(){return s.SimpleLogger}});var u=n(36775);var c=n(44591);var M=n(87510);(function(){function e(){}e.getRootLogger=function(){return null==e._rootLogger&&(e._rootLogger=e._createDefaultRootLogger(),e._rootLogger.warn("Using DEFAULT root logger")),e._rootLogger},e.configure=function(t){e._rootLogger=t,e._rootLogger.debug("ROOT logger changed",t)},e._createDefaultRootLogger=function(){return new s.ConsoleLogger("DEFAULT",M.LogLevel.DEBUG)}})()},41603:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsConfig=t.MetricsStorage=t.MetricsPrinter=t.AbstractMetricsStorage=void 0;var r=n(29388),i=n(55202),o=function(){function e(e,t,n){this.name=e,this.timersSink=t,this.countersSink=n,(0,i.validateName)(e)}return e.prototype.getMetric=function(e){return this._createChild(e)},e.prototype.getTimer=function(e){return this._createChild(e)},e.prototype.getCounter=function(e){return this._createChild(e)},Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.name.lastIndexOf("."),n=this.name.substring(0,-1===t?0:t);return""===n?void 0:new e(n,this.timersSink,this.countersSink)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var t=this.name.indexOf("."),n=this.name.substring(0,-1===t?0:t);return""===n?this:new e(n,this.timersSink,this.countersSink)},enumerable:!1,configurable:!0}),e.prototype._createName=function(e){return this.name+"."+e},e.prototype.start=function(){var e=Date.now(),t=this;return{stop:function(){t.recordTime(Date.now()-e)}}},e.prototype.recordTime=function(e){this.timersSink(this.name,e)},e.prototype.timing=function(e){var t=this.start();try{return e()}finally{try{t.stop()}catch(n){}}},e.prototype.increment=function(e){void 0===e&&(e=1),this.countersSink(this.name,e)},e.prototype.decrement=function(e){void 0===e&&(e=1),this.increment(-e)},e.prototype._createChild=function(t){return new e(this._createName(t),this.timersSink,this.countersSink)},e}();t.AbstractMetricsStorage=o;var a=function(e){function t(t){return e.call(this,"MP",(function(e,n){return t("TIMER: "+e+" = "+n)}),(function(e,n){return t("COUNTER: "+e+" = "+n)}))||this}return(0,r.__extends)(t,e),t}(o);t.MetricsPrinter=a;var s=function(e){function t(t,n,r,i){void 0===i&&(i=7500);var o=e.call(this,t,(function(e,t){return o._reportTimer(e,t)}),(function(e,t){return o._reportCounter(e,t)}))||this;return o._fetch=r,o._sendTimeout=i,o._countersBuffer={},o._timersBuffer=new Array,o._sendTimer=void 0,o._sendData=function(){var e=[o._timersBuffer.join("&"),Object.keys(o._countersBuffer).map((function(e){return e+"="+o._countersBuffer[e]})).join("&")].filter((function(e){return e.length})).join("&"),t=o._baseUrl+e;o._timersBuffer.length=0,o._countersBuffer={},o._sendTimer=void 0;var n=0;!function e(){o._fetch(t,{mode:"no-cors",cache:"no-cache"}).catch((function(r){n++<3?setTimeout(e,5e3*n):console.error("Cannot send timesereies data",r,t)}))}()},o._baseUrl=n+"/ts?",o}return(0,r.__extends)(t,e),t.createRoot=function(e,n,r){return new t(e,n,r)},t.prototype._reportTimer=function(e,t){this._timersBuffer.push("t."+e+"="+t),this._startSending()},t.prototype._reportCounter=function(e,t){var n="c."+e;this._countersBuffer[n]=(this._countersBuffer[n]||0)+t,this._startSending()},t.prototype._startSending=function(){Boolean(this._sendTimer)||(this._sendTimer=setTimeout(this._sendData,this._sendTimeout))},t}(o);t.MetricsStorage=s;var u=function(){function e(){}return e.getRootMetric=function(){return null==e._metricsRoot&&(console.warn("[WARNING] Using default timeseries implementation."),e._metricsRoot=new a(console.log)),e._metricsRoot},e.configure=function(t){e._metricsRoot=t},e}();t.MetricsConfig=u},55202:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RateLimiter=t.CustomError=t.LRUCache=t.validateName=t.EventProps=t.ErrorLike=void 0;var r,i=n(29388);!function(e){e.isErrorLike=function(e){var t=e;return null!=t&&(void 0!==t.message&&void 0!==t.name||void 0!==t.stack)}}(r=t.ErrorLike||(t.ErrorLike={})),function(e){function t(e,o){if(null===e||void 0===e||"number"===typeof e||"string"===typeof e||"boolean"===typeof e)return e;if("object"===typeof e){if(e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e.toString();if(e instanceof Set)return Array.from(e,(function(e){return t(e,o)}));if(e instanceof Map)return Array.from(e).reduce((function(e,n){var r,a=n[0],s=n[1];return(0,i.__assign)((0,i.__assign)({},e),((r={})[a]=t(s,o),r))}),{});if(-1===o.indexOf(e)){o.push(e);var a=n(e,o,r.isErrorLike(e));return Object.keys(a).length>0?a:e}}}function n(e,n,r){if(!Boolean(e))return{};var i={};return(r?Object.getOwnPropertyNames:Object.keys)(e).forEach((function(r){var o=e[r];i[r]=t(o,n)})),i}e.fromAny=function(e){return n(e,[e],r.isErrorLike(e))}}(t.EventProps||(t.EventProps={}));var o=/^(?!\.[\w])[\w.]*\w$/;t.validateName=function(e){if(""===e)throw new Error("Empty name");if(!o.test(e))throw new Error("Invalid name: ".concat(e,". ")+"Should be hierarchical dot separated string and may contain only word characters)")};var a=function(){function e(e){this.capacity=e,this.size=0,this._keymap={}}return e.prototype.put=function(e,t){var n={key:e,value:t};if(this._keymap[e]=n,this._tail?(this._tail.newer=n,n.older=this._tail):this._head=n,this._tail=n,this.size===this.capacity)return this.shift().value;++this.size},e.prototype.get=function(e){var t=this._getImpl(e);return t&&t.value},e.prototype.peek=function(e){var t=this._keymap[e];return null===t||void 0===t?void 0:t.value},e.prototype.set=function(e,t){var n=this._getImpl(e),r=t(n&&n.value);return null!=r?n?n.value=r:this.put(e,r):n&&this.remove(e),r},e.prototype.getRef=function(e){return this._getImpl(e)},e.prototype.remove=function(e){var t=this._keymap[e];if(null!=t)return delete this._keymap[e],t.newer&&t.older?(t.older.newer=t.newer,t.newer.older=t.older):t.newer?(t.newer.older=void 0,this._head=t.newer):t.older?(t.older.newer=void 0,this._tail=t.older):this._head=this._tail=void 0,--this.size,t.value},e.prototype.forEach=function(e){for(var t in this._keymap)e(t,this._keymap[t].value)},e.prototype.shift=function(){var e=this._head;return this._head&&(this._head.newer?(this._head=this._head.newer,this._head.older=void 0):this._head=void 0,e.newer=e.older=void 0,delete this._keymap[e.key]),e},e.prototype._getImpl=function(e){var t=this._keymap[e];if(null!=t)return t===this._tail||(t.newer&&(t===this._head&&(this._head=t.newer),t.newer.older=t.older),t.older&&(t.older.newer=t.newer),t.newer=void 0,t.older=this._tail,this._tail&&(this._tail.newer=t),this._tail=t),t},e}();t.LRUCache=a,t.CustomError=function(e){void 0===e&&(e="(nomessage)"),Error.call(this,e),this.stack=(new Error).stack,this.message=e,this.name=this.constructor.name},t.CustomError.prototype=Object.create(Error.prototype);var s=function(e){function t(t){return e.call(this,t)||this}return(0,i.__extends)(t,e),t}(t.CustomError),u=function(){function e(e,t){if(this.messageCount=e,this.timeframe=t,e<1)throw new s("messagesCount should be > 1");if(t<=0)throw new s("timeframe should be > 0");this._allowance=e,this._lastChecked=Date.now()}return e.prototype.hit=function(){var e=Date.now(),t=e-this._lastChecked;return this._lastChecked=e,this._allowance+=t*(this.messageCount/this.timeframe),this._allowance>this.messageCount&&(this._allowance=this.messageCount),!(this._allowance<1)&&(this._allowance-=1,!0)},e.prototype.toString=function(){return"[ messageCount: ".concat(this.messageCount,", timeframe: ").concat(this.timeframe,", allowance: ").concat(Math.trunc(1e3*this._allowance)/1e3,", _lastCheck: ").concat(this._lastChecked,"]")},e}();t.RateLimiter=u,function(e){var t=function(){function e(e,t){if(this._limiter=e,this._cooldownTime=t,this._lastLimiting=0,this._aboveThreshold=!1,t<0)throw new s("cooldownTime should be non-negative")}return e.prototype.hit=function(){var e=this._limiter.hit(),t=!1;return e?this._aboveThreshold&&Date.now()-this._cooldownTime>this._lastLimiting&&(this._aboveThreshold=!1,t=!0):(this._lastLimiting=Date.now(),this._aboveThreshold||(this._aboveThreshold=!0,t=!0)),{allow:e,aboveThreshold:this._aboveThreshold,wasTriggered:t}},e}();e.RateLimitIndicator=t}(u=t.RateLimiter||(t.RateLimiter={})),t.RateLimiter=u},42108:function(e){var t=function(){"use strict";function e(t,r,i,o){"object"===typeof r&&(i=r.depth,o=r.prototype,r.filter,r=r.circular);var a=[],s=[],u="undefined"!=typeof Buffer;return"undefined"==typeof r&&(r=!0),"undefined"==typeof i&&(i=1/0),function t(i,c){if(null===i)return null;if(0==c)return i;var M,m;if("object"!=typeof i)return i;if(e.__isArray(i))M=[];else if(e.__isRegExp(i))M=new RegExp(i.source,n(i)),i.lastIndex&&(M.lastIndex=i.lastIndex);else if(e.__isDate(i))M=new Date(i.getTime());else{if(u&&Buffer.isBuffer(i))return M=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(M),M;"undefined"==typeof o?(m=Object.getPrototypeOf(i),M=Object.create(m)):(M=Object.create(o),m=o)}if(r){var l=a.indexOf(i);if(-1!=l)return s[l];a.push(i),s.push(M)}for(var d in i){var h;m&&(h=Object.getOwnPropertyDescriptor(m,d)),h&&null==h.set||(M[d]=t(i[d],c-1))}return M}(t,i)}function t(e){return Object.prototype.toString.call(e)}function n(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=function(e){return"object"===typeof e&&"[object Date]"===t(e)},e.__isArray=function(e){return"object"===typeof e&&"[object Array]"===t(e)},e.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===t(e)},e.__getRegExpFlags=n,e}();e.exports&&(e.exports=t)},44330:function(e,t,n){"use strict";n.r(t),n.d(t,{BlobProvider:function(){return ll},Canvas:function(){return sl},Document:function(){return Ml},Font:function(){return am},Image:function(){return al},Link:function(){return rl},Note:function(){return ol},PDFDownloadLink:function(){return hl},PDFRenderer:function(){return qm},PDFViewer:function(){return dl},Page:function(){return il},StyleSheet:function(){return aM},Text:function(){return nl},View:function(){return tl},createInstance:function(){return Zm},default:function(){return fl},pdf:function(){return ul},version:function(){return el}});var r=n(85354),i=n.n(r),o=n(37316),a=n.n(o),s=n(67154),u=n.n(s),c=n(72791),M=n(87757),m=n.n(M),l=n(48926),d=n.n(l),h=n(43631),f=n.n(h),p=n(258),y=n.n(p),g=n(45296),E=n(93913),v=n.n(E),b=n(41064),w=n.n(b),S=n(37502),C=n.n(S),A=n(28013),_=n.n(A),H=n(97706),k=n(24058),P=n.n(k),N=n(62041),T=n(56475),R=n(71866),B=new N(new Uint8Array(R.data)),D=Math.log2||function(e){return Math.log(e)/Math.LN2},F=function(e){return D(e)+1|0},I=F(T.categories.length-1),x=F(T.combiningClasses.length-1),O=F(T.scripts.length-1),L=F(T.eaw.length-1),j=x+O+L+10,z=O+L+10,Q=L+10,G=(1<>j&G]},K={getCategory:J,getCombiningClass:function(e){var t=B.get(e);return T.combiningClasses[t>>z&W]},getScript:function(e){var t=B.get(e);return T.scripts[t>>Q&U]},getEastAsianWidth:function(e){var t=B.get(e);return T.eaw[t>>10&X]},getNumericValue:function(e){var t=B.get(e),n=1023&t;if(0===n)return null;if(n<=50)return n-1;if(n<480)return((n>>4)-12)/(1+(15&n));if(n<768){t=(n>>5)-14;for(var r=2+(31&n);r>0;)t*=10,r--;return t}t=(n>>2)-191;for(var i=1+(3&n);i>0;)t*=60,i--;return t},isAlphabetic:function(e){var t=J(e);return"Lu"===t||"Ll"===t||"Lt"===t||"Lm"===t||"Lo"===t||"Nl"===t},isDigit:function(e){return"Nd"===J(e)},isPunctuation:function(e){var t=J(e);return"Pc"===t||"Pd"===t||"Pe"===t||"Pf"===t||"Pi"===t||"Po"===t||"Ps"===t},isLowerCase:function(e){return"Ll"===J(e)},isUpperCase:function(e){return"Lu"===J(e)},isTitleCase:function(e){return"Lt"===J(e)},isWhiteSpace:function(e){var t=J(e);return"Zs"===t||"Zl"===t||"Zp"===t},isBaseForm:function(e){var t=J(e);return"Nd"===t||"No"===t||"Nl"===t||"Lu"===t||"Ll"===t||"Lt"===t||"Lm"===t||"Lo"===t||"Me"===t||"Mc"===t},isMark:function(e){var t=J(e);return"Mn"===t||"Me"===t||"Mc"===t}},Y=n(62041),Z=n.n(Y),V=n(97072),$=n.n(V),q=n(42108),ee=n.n(q),te=n(13768),ne=n.n(te),re={logErrors:!1},ie=[];function oe(e,t,n){if(n.get){var r=n.get;n.get=function(){var e=r.call(this);return Object.defineProperty(this,t,{value:e}),e}}else if("function"===typeof n.value){var i=n.value;return{get:function(){var e=new Map;function n(){for(var t=arguments.length,n=Array(t),r=0;r0?n[0]:"value";if(e.has(o))return e.get(o);var a=i.apply(this,n);return e.set(o,a),a}return Object.defineProperty(this,t,{value:n}),n}}}}re.registerFormat=function(e){ie.push(e)},re.openSync=function(e,t){throw new Error("fontkit.openSync unavailable for browser build")},re.open=function(e,t,n){throw new Error("fontkit.open unavailable for browser build")},re.create=function(e,t){for(var n=0;n>1},searchRange:_().uint16,entrySelector:_().uint16,rangeShift:_().uint16,endCode:new(_().LazyArray)(_().uint16,"segCount"),reservedPad:new(_().Reserved)(_().uint16),startCode:new(_().LazyArray)(_().uint16,"segCount"),idDelta:new(_().LazyArray)(_().int16,"segCount"),idRangeOffset:new(_().LazyArray)(_().uint16,"segCount"),glyphIndexArray:new(_().LazyArray)(_().uint16,(function(e){return(e.length-e._currentOffset)/2}))},6:{length:_().uint16,language:_().uint16,firstCode:_().uint16,entryCount:_().uint16,glyphIndices:new(_().LazyArray)(_().uint16,"entryCount")},8:{reserved:new(_().Reserved)(_().uint16),length:_().uint32,language:_().uint16,is32:new(_().LazyArray)(_().uint8,8192),nGroups:_().uint32,groups:new(_().LazyArray)(se,"nGroups")},10:{reserved:new(_().Reserved)(_().uint16),length:_().uint32,language:_().uint32,firstCode:_().uint32,entryCount:_().uint32,glyphIndices:new(_().LazyArray)(_().uint16,"numChars")},12:{reserved:new(_().Reserved)(_().uint16),length:_().uint32,language:_().uint32,nGroups:_().uint32,groups:new(_().LazyArray)(se,"nGroups")},13:{reserved:new(_().Reserved)(_().uint16),length:_().uint32,language:_().uint32,nGroups:_().uint32,groups:new(_().LazyArray)(se,"nGroups")},14:{length:_().uint32,numRecords:_().uint32,varSelectors:new(_().LazyArray)(le,"numRecords")}}),he=new(_().Struct)({platformID:_().uint16,encodingID:_().uint16,table:new(_().Pointer)(_().uint32,de,{type:"parent",lazy:!0})}),fe=new(_().Struct)({version:_().uint16,numSubtables:_().uint16,tables:new(_().Array)(he,"numSubtables")}),pe=new(_().Struct)({version:_().int32,revision:_().int32,checkSumAdjustment:_().uint32,magicNumber:_().uint32,flags:_().uint16,unitsPerEm:_().uint16,created:new(_().Array)(_().int32,2),modified:new(_().Array)(_().int32,2),xMin:_().int16,yMin:_().int16,xMax:_().int16,yMax:_().int16,macStyle:new(_().Bitfield)(_().uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:_().uint16,fontDirectionHint:_().int16,indexToLocFormat:_().int16,glyphDataFormat:_().int16}),ye=new(_().Struct)({version:_().int32,ascent:_().int16,descent:_().int16,lineGap:_().int16,advanceWidthMax:_().uint16,minLeftSideBearing:_().int16,minRightSideBearing:_().int16,xMaxExtent:_().int16,caretSlopeRise:_().int16,caretSlopeRun:_().int16,caretOffset:_().int16,reserved:new(_().Reserved)(_().int16,4),metricDataFormat:_().int16,numberOfMetrics:_().uint16}),ge=new(_().Struct)({advance:_().uint16,bearing:_().int16}),Ee=new(_().Struct)({metrics:new(_().LazyArray)(ge,(function(e){return e.parent.hhea.numberOfMetrics})),bearings:new(_().LazyArray)(_().int16,(function(e){return e.parent.maxp.numGlyphs-e.parent.hhea.numberOfMetrics}))}),ve=new(_().Struct)({version:_().int32,numGlyphs:_().uint16,maxPoints:_().uint16,maxContours:_().uint16,maxComponentPoints:_().uint16,maxComponentContours:_().uint16,maxZones:_().uint16,maxTwilightPoints:_().uint16,maxStorage:_().uint16,maxFunctionDefs:_().uint16,maxInstructionDefs:_().uint16,maxStackElements:_().uint16,maxSizeOfInstructions:_().uint16,maxComponentElements:_().uint16,maxComponentDepth:_().uint16});function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return 1===e&&Se[n]?Se[n]:we[e][t]}var we=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],Se={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},Ce=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],Ae=new(_().Struct)({platformID:_().uint16,encodingID:_().uint16,languageID:_().uint16,nameID:_().uint16,length:_().uint16,string:new(_().Pointer)(_().uint16,new(_().String)("length",(function(e){return be(e.platformID,e.encodingID,e.languageID)})),{type:"parent",relativeTo:"parent.stringOffset",allowNull:!1})}),_e=new(_().Struct)({length:_().uint16,tag:new(_().Pointer)(_().uint16,new(_().String)("length","utf16be"),{type:"parent",relativeTo:"stringOffset"})}),He=new(_().VersionedStruct)(_().uint16,{0:{count:_().uint16,stringOffset:_().uint16,records:new(_().Array)(Ae,"count")},1:{count:_().uint16,stringOffset:_().uint16,records:new(_().Array)(Ae,"count"),langTagCount:_().uint16,langTags:new(_().Array)(_e,"langTagCount")}}),ke=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];He.process=function(e){var t={},n=this.records,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o,s=Ce[a.platformID][a.languageID];null==s&&null!=this.langTags&&a.languageID>=32768&&(s=this.langTags[a.languageID-32768].tag),null==s&&(s=a.platformID+"-"+a.languageID);var u=a.nameID>=256?"fontFeatures":ke[a.nameID]||a.nameID;null==t[u]&&(t[u]={});var c=t[u];a.nameID>=256&&(c=c[a.nameID]||(c[a.nameID]={})),"string"!==typeof a.string&&"string"===typeof c[s]||(c[s]=a.string)}this.records=t},He.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var e=[];for(var t in this.records){var n=this.records[t];"fontFeatures"!==t&&(e.push({platformID:3,encodingID:1,languageID:1033,nameID:ke.indexOf(t),length:Buffer.byteLength(n.en,"utf16le"),string:n.en}),"postscriptName"===t&&e.push({platformID:1,encodingID:0,languageID:0,nameID:ke.indexOf(t),length:n.en.length,string:n.en}))}this.records=e,this.count=e.length,this.stringOffset=He.size(this,null,!1)}};var Pe=new(_().VersionedStruct)(_().uint16,{header:{xAvgCharWidth:_().int16,usWeightClass:_().uint16,usWidthClass:_().uint16,fsType:new(_().Bitfield)(_().uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:_().int16,ySubscriptYSize:_().int16,ySubscriptXOffset:_().int16,ySubscriptYOffset:_().int16,ySuperscriptXSize:_().int16,ySuperscriptYSize:_().int16,ySuperscriptXOffset:_().int16,ySuperscriptYOffset:_().int16,yStrikeoutSize:_().int16,yStrikeoutPosition:_().int16,sFamilyClass:_().int16,panose:new(_().Array)(_().uint8,10),ulCharRange:new(_().Array)(_().uint32,4),vendorID:new(_().String)(4),fsSelection:new(_().Bitfield)(_().uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:_().uint16,usLastCharIndex:_().uint16},0:{},1:{typoAscender:_().int16,typoDescender:_().int16,typoLineGap:_().int16,winAscent:_().uint16,winDescent:_().uint16,codePageRange:new(_().Array)(_().uint32,2)},2:{typoAscender:_().int16,typoDescender:_().int16,typoLineGap:_().int16,winAscent:_().uint16,winDescent:_().uint16,codePageRange:new(_().Array)(_().uint32,2),xHeight:_().int16,capHeight:_().int16,defaultChar:_().uint16,breakChar:_().uint16,maxContent:_().uint16},5:{typoAscender:_().int16,typoDescender:_().int16,typoLineGap:_().int16,winAscent:_().uint16,winDescent:_().uint16,codePageRange:new(_().Array)(_().uint32,2),xHeight:_().int16,capHeight:_().int16,defaultChar:_().uint16,breakChar:_().uint16,maxContent:_().uint16,usLowerOpticalPointSize:_().uint16,usUpperOpticalPointSize:_().uint16}}),Ne=Pe.versions;Ne[3]=Ne[4]=Ne[2];var Te=new(_().VersionedStruct)(_().fixed32,{header:{italicAngle:_().fixed32,underlinePosition:_().int16,underlineThickness:_().int16,isFixedPitch:_().uint32,minMemType42:_().uint32,maxMemType42:_().uint32,minMemType1:_().uint32,maxMemType1:_().uint32},1:{},2:{numberOfGlyphs:_().uint16,glyphNameIndex:new(_().Array)(_().uint16,"numberOfGlyphs"),names:new(_().Array)(new(_().String)(_().uint8))},2.5:{numberOfGlyphs:_().uint16,offsets:new(_().Array)(_().uint8,"numberOfGlyphs")},3:{},4:{map:new(_().Array)(_().uint32,(function(e){return e.parent.maxp.numGlyphs}))}}),Re=new(_().Struct)({controlValues:new(_().Array)(_().int16)}),Be=new(_().Struct)({instructions:new(_().Array)(_().uint8)}),De=new(_().VersionedStruct)("head.indexToLocFormat",{0:{offsets:new(_().Array)(_().uint16)},1:{offsets:new(_().Array)(_().uint32)}});De.process=function(){if(0===this.version)for(var e=0;e65535?1:0,0===this.version))for(var e=0;e>>=1};var Fe=new(_().Struct)({controlValueProgram:new(_().Array)(_().uint8)}),Ie=new(_().Array)(new(_().Buffer)),xe="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Le=function(){function e(e,t){for(var n=0;n=2?e.readUInt32BE():e.readUInt16BE();if(0===n)return[];var r=e.readUInt8(),i=void 0;if(1===r)i=_().uint8;else if(2===r)i=_().uint16;else if(3===r)i=_().uint24;else{if(4!==r)throw new Error("Bad offset size in CFFIndex: "+r+" "+e.pos);i=_().uint32}for(var o=[],a=e.pos+(n+1)*r-1,s=i.decode(e),u=0;u=a.length)break;c=a[u++]}else{if((u=a.next()).done)break;c=u.value}var M=c,m=r.size(M,n);i.push(m),o+=m}var l=void 0;if(o<=255)l=_().uint8;else if(o<=65535)l=_().uint16;else if(o<=16777215)l=_().uint24;else{if(!(o<=4294967295))throw new Error("Bad offset in CFFIndex");l=_().uint32}e.writeUInt8(l.size()),o=1,l.encode(e,o);var d=i,h=Array.isArray(d),f=0;for(d=h?d:d[Symbol.iterator]();;){var p;if(h){if(f>=d.length)break;p=d[f++]}else{if((f=d.next()).done)break;p=f.value}o+=p,l.encode(e,o)}var y=t,g=Array.isArray(y),E=0;for(y=g?y:y[Symbol.iterator]();;){var v;if(g){if(E>=y.length)break;v=y[E++]}else{if((E=y.next()).done)break;v=E.value}var b=v;r.encode(e,b,n)}}},e}(),Ge=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],We={".":10,E:11,"E-":12,"-":14},Ue=function(){function e(){Oe(this,e)}return e.decode=function(e,t){if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.readUInt8()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.readUInt8()-108;if(28===t)return e.readInt16BE();if(29===t)return e.readInt32BE();if(30===t){for(var n="";;){var r=e.readUInt8(),i=r>>4;if(15===i)break;n+=Ge[i];var o=15&r;if(15===o)break;n+=Ge[o]}return parseFloat(n)}return null},e.size=function(e){if(e.forceLarge&&(e=32768),(0|e)!==e){var t=""+e;return 1+Math.ceil((t.length+1)/2)}return-107<=e&&e<=107?1:108<=e&&e<=1131||-1131<=e&&e<=-108?2:-32768<=e&&e<=32767?3:5},e.encode=function(e,t){var n=Number(t);if(t.forceLarge)return e.writeUInt8(29),e.writeInt32BE(n);if((0|n)===n)return-107<=n&&n<=107?e.writeUInt8(n+139):108<=n&&n<=1131?(n-=108,e.writeUInt8(247+(n>>8)),e.writeUInt8(255&n)):-1131<=n&&n<=-108?(n=-n-108,e.writeUInt8(251+(n>>8)),e.writeUInt8(255&n)):-32768<=n&&n<=32767?(e.writeUInt8(28),e.writeInt16BE(n)):(e.writeUInt8(29),e.writeInt32BE(n));e.writeUInt8(30);for(var r=""+n,i=0;i0&&void 0!==arguments[0]?arguments[0]:[];Oe(this,e),this.ops=t,this.fields={};var n=t,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o,s=Array.isArray(a[0])?a[0][0]<<8|a[0][1]:a[0];this.fields[s]=a}}return e.prototype.decodeOperands=function(e,t,n,r){var i=this;if(Array.isArray(e))return r.map((function(r,o){return i.decodeOperands(e[o],t,n,[r])}));if(null!=e.decode)return e.decode(t,n,r);switch(e){case"number":case"offset":case"sid":return r[0];case"boolean":return!!r[0];default:return r}},e.prototype.encodeOperands=function(e,t,n,r){var i=this;return Array.isArray(e)?r.map((function(r,o){return i.encodeOperands(e[o],t,n,r)[0]})):null!=e.encode?e.encode(t,r,n):"number"===typeof r?[r]:"boolean"===typeof r?[+r]:Array.isArray(r)?r:[r]},e.prototype.decode=function(e,t){var n=e.pos+t.length,r={},i=[];for(var o in Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos}}),this.fields){var a=this.fields[o];r[a[1]]=a[3]}for(;e.pos2&&void 0!==arguments[2])||arguments[2],r={parent:t,val:e,pointerSize:0,startOffset:t.startOffset||0},i=0;for(var o in this.fields){var a=this.fields[o],s=e[a[1]];if(null!=s&&!P()(s,a[3])){var u=this.encodeOperands(a[2],null,r,s),c=u,M=Array.isArray(c),m=0;for(c=M?c:c[Symbol.iterator]();;){var l;if(M){if(m>=c.length)break;l=c[m++]}else{if((m=c.next()).done)break;l=m.value}var d=l;i+=Ue.size(d)}var h=Array.isArray(a[0])?a[0]:[a[0]];i+=h.length}}return n&&(i+=r.pointerSize),i},e.prototype.encode=function(e,t,n){var r={pointers:[],startOffset:e.pos,parent:n,val:t,pointerSize:0};r.pointerOffset=e.pos+this.size(t,r,!1);var i=this.ops,o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s,c=t[u[1]];if(null!=c&&!P()(c,u[3])){var M=this.encodeOperands(u[2],e,r,c),m=Array.isArray(M),l=0;for(M=m?M:M[Symbol.iterator]();;){var d;if(m){if(l>=M.length)break;d=M[l++]}else{if((l=M.next()).done)break;d=l.value}var h=d;Ue.encode(e,h)}var f=Array.isArray(u[0])?u[0]:[u[0]],p=Array.isArray(f),y=0;for(f=p?f:f[Symbol.iterator]();;){var g;if(p){if(y>=f.length)break;g=f[y++]}else{if((y=f.next()).done)break;g=y.value}var E=g;e.writeUInt8(E)}}}for(var v=0;v1&&void 0!==arguments[1]?arguments[1]:{};return Oe(this,t),null==r.type&&(r.type="global"),ze(this,e.call(this,null,n,r))}return je(t,e),t.prototype.decode=function(t,n,r){return this.offsetType={decode:function(){return r[0]}},e.prototype.decode.call(this,t,n,r)},t.prototype.encode=function(t,n,r){if(!t)return this.offsetType={size:function(){return 0}},this.size(n,r),[new Ke(0)];var i=null;return this.offsetType={encode:function(e,t){return i=t}},e.prototype.encode.call(this,t,n,r),[new Ke(i)]},t}(_().Pointer),Ke=function(){function e(t){Oe(this,e),this.val=t,this.forceLarge=!0}return e.prototype.valueOf=function(){return this.val},e}(),Ye=new Xe([[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","number",.039625],[[12,10],"BlueShift","number",7],[[12,11],"BlueFuzz","number",1],[10,"StdHW","number",null],[11,"StdVW","number",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","boolean",!1],[[12,17],"LanguageGroup","number",0],[[12,18],"ExpansionFactor","number",.06],[[12,19],"initialRandomSeed","number",0],[20,"defaultWidthX","number",0],[21,"nominalWidthX","number",0],[22,"vsindex","number",0],[23,"blend",function(){function e(){Oe(this,e)}return e.decode=function(e,t,n){for(var r=n.pop();n.length>r;)n.pop()},e}(),null],[19,"Subrs",new Je(new Qe,{type:"local"}),null]]),Ze=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],Ve=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],$e=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],qe=new(_().Struct)({reserved:new(_().Reserved)(_().uint16),reqFeatureIndex:_().uint16,featureCount:_().uint16,featureIndexes:new(_().Array)(_().uint16,"featureCount")}),et=new(_().Struct)({tag:new(_().String)(4),langSys:new(_().Pointer)(_().uint16,qe,{type:"parent"})}),tt=new(_().Struct)({defaultLangSys:new(_().Pointer)(_().uint16,qe),count:_().uint16,langSysRecords:new(_().Array)(et,"count")}),nt=new(_().Struct)({tag:new(_().String)(4),script:new(_().Pointer)(_().uint16,tt,{type:"parent"})}),rt=new(_().Array)(nt,_().uint16),it=new(_().Struct)({featureParams:_().uint16,lookupCount:_().uint16,lookupListIndexes:new(_().Array)(_().uint16,"lookupCount")}),ot=new(_().Struct)({tag:new(_().String)(4),feature:new(_().Pointer)(_().uint16,it,{type:"parent"})}),at=new(_().Array)(ot,_().uint16),st=new(_().Struct)({markAttachmentType:_().uint8,flags:new(_().Bitfield)(_().uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function ut(e){var t=new(_().Struct)({lookupType:_().uint16,flags:st,subTableCount:_().uint16,subTables:new(_().Array)(new(_().Pointer)(_().uint16,e),"subTableCount"),markFilteringSet:new(_().Optional)(_().uint16,(function(e){return e.flags.flags.useMarkFilteringSet}))});return new(_().LazyArray)(new(_().Pointer)(_().uint16,t),_().uint16)}var ct,Mt=new(_().Struct)({start:_().uint16,end:_().uint16,startCoverageIndex:_().uint16}),mt=new(_().VersionedStruct)(_().uint16,{1:{glyphCount:_().uint16,glyphs:new(_().Array)(_().uint16,"glyphCount")},2:{rangeCount:_().uint16,rangeRecords:new(_().Array)(Mt,"rangeCount")}}),lt=new(_().Struct)({start:_().uint16,end:_().uint16,class:_().uint16}),dt=new(_().VersionedStruct)(_().uint16,{1:{startGlyph:_().uint16,glyphCount:_().uint16,classValueArray:new(_().Array)(_().uint16,"glyphCount")},2:{classRangeCount:_().uint16,classRangeRecord:new(_().Array)(lt,"classRangeCount")}}),ht=new(_().Struct)({a:_().uint16,b:_().uint16,deltaFormat:_().uint16}),ft=new(_().Struct)({sequenceIndex:_().uint16,lookupListIndex:_().uint16}),pt=new(_().Struct)({glyphCount:_().uint16,lookupCount:_().uint16,input:new(_().Array)(_().uint16,(function(e){return e.glyphCount-1})),lookupRecords:new(_().Array)(ft,"lookupCount")}),yt=new(_().Array)(new(_().Pointer)(_().uint16,pt),_().uint16),gt=new(_().Struct)({glyphCount:_().uint16,lookupCount:_().uint16,classes:new(_().Array)(_().uint16,(function(e){return e.glyphCount-1})),lookupRecords:new(_().Array)(ft,"lookupCount")}),Et=new(_().Array)(new(_().Pointer)(_().uint16,gt),_().uint16),vt=new(_().VersionedStruct)(_().uint16,{1:{coverage:new(_().Pointer)(_().uint16,mt),ruleSetCount:_().uint16,ruleSets:new(_().Array)(new(_().Pointer)(_().uint16,yt),"ruleSetCount")},2:{coverage:new(_().Pointer)(_().uint16,mt),classDef:new(_().Pointer)(_().uint16,dt),classSetCnt:_().uint16,classSet:new(_().Array)(new(_().Pointer)(_().uint16,Et),"classSetCnt")},3:{glyphCount:_().uint16,lookupCount:_().uint16,coverages:new(_().Array)(new(_().Pointer)(_().uint16,mt),"glyphCount"),lookupRecords:new(_().Array)(ft,"lookupCount")}}),bt=new(_().Struct)({backtrackGlyphCount:_().uint16,backtrack:new(_().Array)(_().uint16,"backtrackGlyphCount"),inputGlyphCount:_().uint16,input:new(_().Array)(_().uint16,(function(e){return e.inputGlyphCount-1})),lookaheadGlyphCount:_().uint16,lookahead:new(_().Array)(_().uint16,"lookaheadGlyphCount"),lookupCount:_().uint16,lookupRecords:new(_().Array)(ft,"lookupCount")}),wt=new(_().Array)(new(_().Pointer)(_().uint16,bt),_().uint16),St=new(_().VersionedStruct)(_().uint16,{1:{coverage:new(_().Pointer)(_().uint16,mt),chainCount:_().uint16,chainRuleSets:new(_().Array)(new(_().Pointer)(_().uint16,wt),"chainCount")},2:{coverage:new(_().Pointer)(_().uint16,mt),backtrackClassDef:new(_().Pointer)(_().uint16,dt),inputClassDef:new(_().Pointer)(_().uint16,dt),lookaheadClassDef:new(_().Pointer)(_().uint16,dt),chainCount:_().uint16,chainClassSet:new(_().Array)(new(_().Pointer)(_().uint16,wt),"chainCount")},3:{backtrackGlyphCount:_().uint16,backtrackCoverage:new(_().Array)(new(_().Pointer)(_().uint16,mt),"backtrackGlyphCount"),inputGlyphCount:_().uint16,inputCoverage:new(_().Array)(new(_().Pointer)(_().uint16,mt),"inputGlyphCount"),lookaheadGlyphCount:_().uint16,lookaheadCoverage:new(_().Array)(new(_().Pointer)(_().uint16,mt),"lookaheadGlyphCount"),lookupCount:_().uint16,lookupRecords:new(_().Array)(ft,"lookupCount")}}),Ct=new(_().Fixed)(16,"BE",14),At=new(_().Struct)({startCoord:Ct,peakCoord:Ct,endCoord:Ct}),_t=new(_().Struct)({axisCount:_().uint16,regionCount:_().uint16,variationRegions:new(_().Array)(new(_().Array)(At,"axisCount"),"regionCount")}),Ht=new(_().Struct)({shortDeltas:new(_().Array)(_().int16,(function(e){return e.parent.shortDeltaCount})),regionDeltas:new(_().Array)(_().int8,(function(e){return e.parent.regionIndexCount-e.parent.shortDeltaCount})),deltas:function(e){return e.shortDeltas.concat(e.regionDeltas)}}),kt=new(_().Struct)({itemCount:_().uint16,shortDeltaCount:_().uint16,regionIndexCount:_().uint16,regionIndexes:new(_().Array)(_().uint16,"regionIndexCount"),deltaSets:new(_().Array)(Ht,"itemCount")}),Pt=new(_().Struct)({format:_().uint16,variationRegionList:new(_().Pointer)(_().uint32,_t),variationDataCount:_().uint16,itemVariationData:new(_().Array)(new(_().Pointer)(_().uint32,kt),"variationDataCount")}),Nt=new(_().VersionedStruct)(_().uint16,{1:(ct={axisIndex:_().uint16},ct.axisIndex=_().uint16,ct.filterRangeMinValue=Ct,ct.filterRangeMaxValue=Ct,ct)}),Tt=new(_().Struct)({conditionCount:_().uint16,conditionTable:new(_().Array)(new(_().Pointer)(_().uint32,Nt),"conditionCount")}),Rt=new(_().Struct)({featureIndex:_().uint16,alternateFeatureTable:new(_().Pointer)(_().uint32,it,{type:"parent"})}),Bt=new(_().Struct)({version:_().fixed32,substitutionCount:_().uint16,substitutions:new(_().Array)(Rt,"substitutionCount")}),Dt=new(_().Struct)({conditionSet:new(_().Pointer)(_().uint32,Tt,{type:"parent"}),featureTableSubstitution:new(_().Pointer)(_().uint32,Bt,{type:"parent"})}),Ft=new(_().Struct)({majorVersion:_().uint16,minorVersion:_().uint16,featureVariationRecordCount:_().uint32,featureVariationRecords:new(_().Array)(Dt,"featureVariationRecordCount")}),It=function(){function e(t,n){Oe(this,e),this.predefinedOps=t,this.type=n}return e.prototype.decode=function(e,t,n){return this.predefinedOps[n[0]]?this.predefinedOps[n[0]]:this.type.decode(e,t,n)},e.prototype.size=function(e,t){return this.type.size(e,t)},e.prototype.encode=function(e,t,n){var r=this.predefinedOps.indexOf(t);return-1!==r?r:this.type.encode(e,t,n)},e}(),xt=function(e){function t(){return Oe(this,t),ze(this,e.call(this,"UInt8"))}return je(t,e),t.prototype.decode=function(e){return 127&_().uint8.decode(e)},t}(_().Number),Ot=new(_().Struct)({first:_().uint16,nLeft:_().uint8}),Lt=new(_().Struct)({first:_().uint16,nLeft:_().uint16}),jt=new It([Ve,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]],new Je(new(_().VersionedStruct)(new xt,{0:{nCodes:_().uint8,codes:new(_().Array)(_().uint8,"nCodes")},1:{nRanges:_().uint8,ranges:new(_().Array)(Ot,"nRanges")}}),{lazy:!0})),zt=function(e){function t(){return Oe(this,t),ze(this,e.apply(this,arguments))}return je(t,e),t.prototype.decode=function(e,t){for(var n=(0,H.resolveLength)(this.length,e,t),r=0,i=[];r=2?null:e=2)return null;if(this.isCIDFont)return null;var t=this.topDict.charset;if(Array.isArray(t))return t[e];if(0===e)return".notdef";switch(e-=1,t.version){case 0:return this.string(t.glyphs[e]);case 1:case 2:for(var n=0;n>1;if(et[i+1].first))return t[i].fd;n=i+1}}default:throw new Error("Unknown FDSelect version: "+this.topDict.FDSelect.version)}},e.prototype.privateDictForGlyph=function(e){if(this.topDict.FDSelect){var t=this.fdForGlyph(e);return this.topDict.FDArray[t]?this.topDict.FDArray[t].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private},Le(e,[{key:"postscriptName",get:function(){return this.version<2?this.nameIndex[0]:null}},{key:"fullName",get:function(){return this.string(this.topDict.FullName)}},{key:"familyName",get:function(){return this.string(this.topDict.FamilyName)}}]),e}(),en=new(_().Struct)({glyphIndex:_().uint16,vertOriginY:_().int16}),tn=new(_().Struct)({majorVersion:_().uint16,minorVersion:_().uint16,defaultVertOriginY:_().int16,numVertOriginYMetrics:_().uint16,metrics:new(_().Array)(en,"numVertOriginYMetrics")}),nn=new(_().Struct)({height:_().uint8,width:_().uint8,horiBearingX:_().int8,horiBearingY:_().int8,horiAdvance:_().uint8,vertBearingX:_().int8,vertBearingY:_().int8,vertAdvance:_().uint8}),rn=new(_().Struct)({height:_().uint8,width:_().uint8,bearingX:_().int8,bearingY:_().int8,advance:_().uint8}),on=new(_().Struct)({glyph:_().uint16,xOffset:_().int8,yOffset:_().int8}),an=function e(){Oe(this,e)},sn=function e(){Oe(this,e)},un=(new(_().VersionedStruct)("version",{1:{metrics:rn,data:an},2:{metrics:rn,data:sn},5:{data:sn},6:{metrics:nn,data:an},7:{metrics:nn,data:sn},8:{metrics:rn,pad:new(_().Reserved)(_().uint8),numComponents:_().uint16,components:new(_().Array)(on,"numComponents")},9:{metrics:nn,pad:new(_().Reserved)(_().uint8),numComponents:_().uint16,components:new(_().Array)(on,"numComponents")},17:{metrics:rn,dataLen:_().uint32,data:new(_().Buffer)("dataLen")},18:{metrics:nn,dataLen:_().uint32,data:new(_().Buffer)("dataLen")},19:{dataLen:_().uint32,data:new(_().Buffer)("dataLen")}}),new(_().Struct)({ascender:_().int8,descender:_().int8,widthMax:_().uint8,caretSlopeNumerator:_().int8,caretSlopeDenominator:_().int8,caretOffset:_().int8,minOriginSB:_().int8,minAdvanceSB:_().int8,maxBeforeBL:_().int8,minAfterBL:_().int8,pad:new(_().Reserved)(_().int8,2)})),cn=new(_().Struct)({glyphCode:_().uint16,offset:_().uint16}),Mn=new(_().VersionedStruct)(_().uint16,{header:{imageFormat:_().uint16,imageDataOffset:_().uint32},1:{offsetArray:new(_().Array)(_().uint32,(function(e){return e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1}))},2:{imageSize:_().uint32,bigMetrics:nn},3:{offsetArray:new(_().Array)(_().uint16,(function(e){return e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1}))},4:{numGlyphs:_().uint32,glyphArray:new(_().Array)(cn,(function(e){return e.numGlyphs+1}))},5:{imageSize:_().uint32,bigMetrics:nn,numGlyphs:_().uint32,glyphCodeArray:new(_().Array)(_().uint16,"numGlyphs")}}),mn=new(_().Struct)({firstGlyphIndex:_().uint16,lastGlyphIndex:_().uint16,subtable:new(_().Pointer)(_().uint32,Mn)}),ln=new(_().Struct)({indexSubTableArray:new(_().Pointer)(_().uint32,new(_().Array)(mn,1),{type:"parent"}),indexTablesSize:_().uint32,numberOfIndexSubTables:_().uint32,colorRef:_().uint32,hori:un,vert:un,startGlyphIndex:_().uint16,endGlyphIndex:_().uint16,ppemX:_().uint8,ppemY:_().uint8,bitDepth:_().uint8,flags:new(_().Bitfield)(_().uint8,["horizontal","vertical"])}),dn=new(_().Struct)({version:_().uint32,numSizes:_().uint32,sizes:new(_().Array)(ln,"numSizes")}),hn=new(_().Struct)({ppem:_().uint16,resolution:_().uint16,imageOffsets:new(_().Array)(new(_().Pointer)(_().uint32,"void"),(function(e){return e.parent.parent.maxp.numGlyphs+1}))}),fn=new(_().Struct)({version:_().uint16,flags:new(_().Bitfield)(_().uint16,["renderOutlines"]),numImgTables:_().uint32,imageTables:new(_().Array)(new(_().Pointer)(_().uint32,hn),"numImgTables")}),pn=new(_().Struct)({gid:_().uint16,paletteIndex:_().uint16}),yn=new(_().Struct)({gid:_().uint16,firstLayerIndex:_().uint16,numLayers:_().uint16}),gn=new(_().Struct)({version:_().uint16,numBaseGlyphRecords:_().uint16,baseGlyphRecord:new(_().Pointer)(_().uint32,new(_().Array)(yn,"numBaseGlyphRecords")),layerRecords:new(_().Pointer)(_().uint32,new(_().Array)(pn,"numLayerRecords"),{lazy:!0}),numLayerRecords:_().uint16}),En=new(_().Struct)({blue:_().uint8,green:_().uint8,red:_().uint8,alpha:_().uint8}),vn=new(_().VersionedStruct)(_().uint16,{header:{numPaletteEntries:_().uint16,numPalettes:_().uint16,numColorRecords:_().uint16,colorRecords:new(_().Pointer)(_().uint32,new(_().Array)(En,"numColorRecords")),colorRecordIndices:new(_().Array)(_().uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new(_().Pointer)(_().uint32,new(_().Array)(_().uint32,"numPalettes")),offsetPaletteLabelArray:new(_().Pointer)(_().uint32,new(_().Array)(_().uint16,"numPalettes")),offsetPaletteEntryLabelArray:new(_().Pointer)(_().uint32,new(_().Array)(_().uint16,"numPaletteEntries"))}}),bn=new(_().VersionedStruct)(_().uint16,{1:{coordinate:_().int16},2:{coordinate:_().int16,referenceGlyph:_().uint16,baseCoordPoint:_().uint16},3:{coordinate:_().int16,deviceTable:new(_().Pointer)(_().uint16,ht)}}),wn=new(_().Struct)({defaultIndex:_().uint16,baseCoordCount:_().uint16,baseCoords:new(_().Array)(new(_().Pointer)(_().uint16,bn),"baseCoordCount")}),Sn=new(_().Struct)({tag:new(_().String)(4),minCoord:new(_().Pointer)(_().uint16,bn,{type:"parent"}),maxCoord:new(_().Pointer)(_().uint16,bn,{type:"parent"})}),Cn=new(_().Struct)({minCoord:new(_().Pointer)(_().uint16,bn),maxCoord:new(_().Pointer)(_().uint16,bn),featMinMaxCount:_().uint16,featMinMaxRecords:new(_().Array)(Sn,"featMinMaxCount")}),An=new(_().Struct)({tag:new(_().String)(4),minMax:new(_().Pointer)(_().uint16,Cn,{type:"parent"})}),_n=new(_().Struct)({baseValues:new(_().Pointer)(_().uint16,wn),defaultMinMax:new(_().Pointer)(_().uint16,Cn),baseLangSysCount:_().uint16,baseLangSysRecords:new(_().Array)(An,"baseLangSysCount")}),Hn=new(_().Struct)({tag:new(_().String)(4),script:new(_().Pointer)(_().uint16,_n,{type:"parent"})}),kn=new(_().Array)(Hn,_().uint16),Pn=new(_().Array)(new(_().String)(4),_().uint16),Nn=new(_().Struct)({baseTagList:new(_().Pointer)(_().uint16,Pn),baseScriptList:new(_().Pointer)(_().uint16,kn)}),Tn=new(_().VersionedStruct)(_().uint32,{header:{horizAxis:new(_().Pointer)(_().uint16,Nn),vertAxis:new(_().Pointer)(_().uint16,Nn)},65536:{},65537:{itemVariationStore:new(_().Pointer)(_().uint32,Pt)}}),Rn=new(_().Array)(_().uint16,_().uint16),Bn=new(_().Struct)({coverage:new(_().Pointer)(_().uint16,mt),glyphCount:_().uint16,attachPoints:new(_().Array)(new(_().Pointer)(_().uint16,Rn),"glyphCount")}),Dn=new(_().VersionedStruct)(_().uint16,{1:{coordinate:_().int16},2:{caretValuePoint:_().uint16},3:{coordinate:_().int16,deviceTable:new(_().Pointer)(_().uint16,ht)}}),Fn=new(_().Array)(new(_().Pointer)(_().uint16,Dn),_().uint16),In=new(_().Struct)({coverage:new(_().Pointer)(_().uint16,mt),ligGlyphCount:_().uint16,ligGlyphs:new(_().Array)(new(_().Pointer)(_().uint16,Fn),"ligGlyphCount")}),xn=new(_().Struct)({markSetTableFormat:_().uint16,markSetCount:_().uint16,coverage:new(_().Array)(new(_().Pointer)(_().uint32,mt),"markSetCount")}),On=new(_().VersionedStruct)(_().uint32,{header:{glyphClassDef:new(_().Pointer)(_().uint16,dt),attachList:new(_().Pointer)(_().uint16,Bn),ligCaretList:new(_().Pointer)(_().uint16,In),markAttachClassDef:new(_().Pointer)(_().uint16,dt)},65536:{},65538:{markGlyphSetsDef:new(_().Pointer)(_().uint16,xn)},65539:{markGlyphSetsDef:new(_().Pointer)(_().uint16,xn),itemVariationStore:new(_().Pointer)(_().uint32,Pt)}}),Ln=new(_().Bitfield)(_().uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),jn={xPlacement:_().int16,yPlacement:_().int16,xAdvance:_().int16,yAdvance:_().int16,xPlaDevice:new(_().Pointer)(_().uint16,ht,{type:"global",relativeTo:"rel"}),yPlaDevice:new(_().Pointer)(_().uint16,ht,{type:"global",relativeTo:"rel"}),xAdvDevice:new(_().Pointer)(_().uint16,ht,{type:"global",relativeTo:"rel"}),yAdvDevice:new(_().Pointer)(_().uint16,ht,{type:"global",relativeTo:"rel"})},zn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"valueFormat";Oe(this,e),this.key=t}return e.prototype.buildStruct=function(e){for(var t=e;!t[this.key]&&t.parent;)t=t.parent;if(t[this.key]){var n={rel:function(){return t._startOffset}},r=t[this.key];for(var i in r)r[i]&&(n[i]=jn[i]);return new(_().Struct)(n)}},e.prototype.size=function(e,t){return this.buildStruct(t).size(e,t)},e.prototype.decode=function(e,t){var n=this.buildStruct(t).decode(e,t);return delete n.rel,n},e}(),Qn=new(_().Struct)({secondGlyph:_().uint16,value1:new zn("valueFormat1"),value2:new zn("valueFormat2")}),Gn=new(_().Array)(Qn,_().uint16),Wn=new(_().Struct)({value1:new zn("valueFormat1"),value2:new zn("valueFormat2")}),Un=new(_().VersionedStruct)(_().uint16,{1:{xCoordinate:_().int16,yCoordinate:_().int16},2:{xCoordinate:_().int16,yCoordinate:_().int16,anchorPoint:_().uint16},3:{xCoordinate:_().int16,yCoordinate:_().int16,xDeviceTable:new(_().Pointer)(_().uint16,ht),yDeviceTable:new(_().Pointer)(_().uint16,ht)}}),Xn=new(_().Struct)({entryAnchor:new(_().Pointer)(_().uint16,Un,{type:"parent"}),exitAnchor:new(_().Pointer)(_().uint16,Un,{type:"parent"})}),Jn=new(_().Struct)({class:_().uint16,markAnchor:new(_().Pointer)(_().uint16,Un,{type:"parent"})}),Kn=new(_().Array)(Jn,_().uint16),Yn=new(_().Array)(new(_().Pointer)(_().uint16,Un),(function(e){return e.parent.classCount})),Zn=new(_().Array)(Yn,_().uint16),Vn=new(_().Array)(new(_().Pointer)(_().uint16,Un),(function(e){return e.parent.parent.classCount})),$n=new(_().Array)(Vn,_().uint16),qn=new(_().Array)(new(_().Pointer)(_().uint16,$n),_().uint16),er=new(_().VersionedStruct)("lookupType",{1:new(_().VersionedStruct)(_().uint16,{1:{coverage:new(_().Pointer)(_().uint16,mt),valueFormat:Ln,value:new zn},2:{coverage:new(_().Pointer)(_().uint16,mt),valueFormat:Ln,valueCount:_().uint16,values:new(_().LazyArray)(new zn,"valueCount")}}),2:new(_().VersionedStruct)(_().uint16,{1:{coverage:new(_().Pointer)(_().uint16,mt),valueFormat1:Ln,valueFormat2:Ln,pairSetCount:_().uint16,pairSets:new(_().LazyArray)(new(_().Pointer)(_().uint16,Gn),"pairSetCount")},2:{coverage:new(_().Pointer)(_().uint16,mt),valueFormat1:Ln,valueFormat2:Ln,classDef1:new(_().Pointer)(_().uint16,dt),classDef2:new(_().Pointer)(_().uint16,dt),class1Count:_().uint16,class2Count:_().uint16,classRecords:new(_().LazyArray)(new(_().LazyArray)(Wn,"class2Count"),"class1Count")}}),3:{format:_().uint16,coverage:new(_().Pointer)(_().uint16,mt),entryExitCount:_().uint16,entryExitRecords:new(_().Array)(Xn,"entryExitCount")},4:{format:_().uint16,markCoverage:new(_().Pointer)(_().uint16,mt),baseCoverage:new(_().Pointer)(_().uint16,mt),classCount:_().uint16,markArray:new(_().Pointer)(_().uint16,Kn),baseArray:new(_().Pointer)(_().uint16,Zn)},5:{format:_().uint16,markCoverage:new(_().Pointer)(_().uint16,mt),ligatureCoverage:new(_().Pointer)(_().uint16,mt),classCount:_().uint16,markArray:new(_().Pointer)(_().uint16,Kn),ligatureArray:new(_().Pointer)(_().uint16,qn)},6:{format:_().uint16,mark1Coverage:new(_().Pointer)(_().uint16,mt),mark2Coverage:new(_().Pointer)(_().uint16,mt),classCount:_().uint16,mark1Array:new(_().Pointer)(_().uint16,Kn),mark2Array:new(_().Pointer)(_().uint16,Zn)},7:vt,8:St,9:{posFormat:_().uint16,lookupType:_().uint16,extension:new(_().Pointer)(_().uint32,void 0)}});er.versions[9].extension.type=er;var tr=new(_().VersionedStruct)(_().uint32,{header:{scriptList:new(_().Pointer)(_().uint16,rt),featureList:new(_().Pointer)(_().uint16,at),lookupList:new(_().Pointer)(_().uint16,new ut(er))},65536:{},65537:{featureVariations:new(_().Pointer)(_().uint32,Ft)}}),nr=new(_().Array)(_().uint16,_().uint16),rr=nr,ir=new(_().Struct)({glyph:_().uint16,compCount:_().uint16,components:new(_().Array)(_().uint16,(function(e){return e.compCount-1}))}),or=new(_().Array)(new(_().Pointer)(_().uint16,ir),_().uint16),ar=new(_().VersionedStruct)("lookupType",{1:new(_().VersionedStruct)(_().uint16,{1:{coverage:new(_().Pointer)(_().uint16,mt),deltaGlyphID:_().int16},2:{coverage:new(_().Pointer)(_().uint16,mt),glyphCount:_().uint16,substitute:new(_().LazyArray)(_().uint16,"glyphCount")}}),2:{substFormat:_().uint16,coverage:new(_().Pointer)(_().uint16,mt),count:_().uint16,sequences:new(_().LazyArray)(new(_().Pointer)(_().uint16,nr),"count")},3:{substFormat:_().uint16,coverage:new(_().Pointer)(_().uint16,mt),count:_().uint16,alternateSet:new(_().LazyArray)(new(_().Pointer)(_().uint16,rr),"count")},4:{substFormat:_().uint16,coverage:new(_().Pointer)(_().uint16,mt),count:_().uint16,ligatureSets:new(_().LazyArray)(new(_().Pointer)(_().uint16,or),"count")},5:vt,6:St,7:{substFormat:_().uint16,lookupType:_().uint16,extension:new(_().Pointer)(_().uint32,void 0)},8:{substFormat:_().uint16,coverage:new(_().Pointer)(_().uint16,mt),backtrackCoverage:new(_().Array)(new(_().Pointer)(_().uint16,mt),"backtrackGlyphCount"),lookaheadGlyphCount:_().uint16,lookaheadCoverage:new(_().Array)(new(_().Pointer)(_().uint16,mt),"lookaheadGlyphCount"),glyphCount:_().uint16,substitutes:new(_().Array)(_().uint16,"glyphCount")}});ar.versions[7].extension.type=ar;var sr=new(_().VersionedStruct)(_().uint32,{header:{scriptList:new(_().Pointer)(_().uint16,rt),featureList:new(_().Pointer)(_().uint16,at),lookupList:new(_().Pointer)(_().uint16,new ut(ar))},65536:{},65537:{featureVariations:new(_().Pointer)(_().uint32,Ft)}}),ur=new(_().Array)(_().uint16,_().uint16),cr=new(_().Struct)({shrinkageEnableGSUB:new(_().Pointer)(_().uint16,ur),shrinkageDisableGSUB:new(_().Pointer)(_().uint16,ur),shrinkageEnableGPOS:new(_().Pointer)(_().uint16,ur),shrinkageDisableGPOS:new(_().Pointer)(_().uint16,ur),shrinkageJstfMax:new(_().Pointer)(_().uint16,new ut(er)),extensionEnableGSUB:new(_().Pointer)(_().uint16,ur),extensionDisableGSUB:new(_().Pointer)(_().uint16,ur),extensionEnableGPOS:new(_().Pointer)(_().uint16,ur),extensionDisableGPOS:new(_().Pointer)(_().uint16,ur),extensionJstfMax:new(_().Pointer)(_().uint16,new ut(er))}),Mr=new(_().Array)(new(_().Pointer)(_().uint16,cr),_().uint16),mr=new(_().Struct)({tag:new(_().String)(4),jstfLangSys:new(_().Pointer)(_().uint16,Mr)}),lr=new(_().Struct)({extenderGlyphs:new(_().Pointer)(_().uint16,new(_().Array)(_().uint16,_().uint16)),defaultLangSys:new(_().Pointer)(_().uint16,Mr),langSysCount:_().uint16,langSysRecords:new(_().Array)(mr,"langSysCount")}),dr=new(_().Struct)({tag:new(_().String)(4),script:new(_().Pointer)(_().uint16,lr,{type:"parent"})}),hr=new(_().Struct)({version:_().uint32,scriptCount:_().uint16,scriptList:new(_().Array)(dr,"scriptCount")}),fr=function(){function e(t){Oe(this,e),this._size=t}return e.prototype.decode=function(e,t){switch(this.size(0,t)){case 1:return e.readUInt8();case 2:return e.readUInt16BE();case 3:return e.readUInt24BE();case 4:return e.readUInt32BE()}},e.prototype.size=function(e,t){return(0,H.resolveLength)(this._size,null,t)},e}(),pr=new(_().Struct)({entry:new fr((function(e){return 1+((48&e.parent.entryFormat)>>4)})),outerIndex:function(e){return e.entry>>1+(15&e.parent.entryFormat)},innerIndex:function(e){return e.entry&(1<<1+(15&e.parent.entryFormat))-1}}),yr=new(_().Struct)({entryFormat:_().uint16,mapCount:_().uint16,mapData:new(_().Array)(pr,"mapCount")}),gr=new(_().Struct)({majorVersion:_().uint16,minorVersion:_().uint16,itemVariationStore:new(_().Pointer)(_().uint32,Pt),advanceWidthMapping:new(_().Pointer)(_().uint32,yr),LSBMapping:new(_().Pointer)(_().uint32,yr),RSBMapping:new(_().Pointer)(_().uint32,yr)}),Er=new(_().Struct)({format:_().uint32,length:_().uint32,offset:_().uint32}),vr=new(_().Struct)({reserved:new(_().Reserved)(_().uint16,2),cbSignature:_().uint32,signature:new(_().Buffer)("cbSignature")}),br=new(_().Struct)({ulVersion:_().uint32,usNumSigs:_().uint16,usFlag:_().uint16,signatures:new(_().Array)(Er,"usNumSigs"),signatureBlocks:new(_().Array)(vr,"usNumSigs")}),wr=new(_().Struct)({rangeMaxPPEM:_().uint16,rangeGaspBehavior:new(_().Bitfield)(_().uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),Sr=new(_().Struct)({version:_().uint16,numRanges:_().uint16,gaspRanges:new(_().Array)(wr,"numRanges")}),Cr=new(_().Struct)({pixelSize:_().uint8,maximumWidth:_().uint8,widths:new(_().Array)(_().uint8,(function(e){return e.parent.parent.maxp.numGlyphs}))}),Ar=new(_().Struct)({version:_().uint16,numRecords:_().int16,sizeDeviceRecord:_().int32,records:new(_().Array)(Cr,"numRecords")}),_r=new(_().Struct)({left:_().uint16,right:_().uint16,value:_().int16}),Hr=new(_().Struct)({firstGlyph:_().uint16,nGlyphs:_().uint16,offsets:new(_().Array)(_().uint16,"nGlyphs"),max:function(e){return e.offsets.length&&Math.max.apply(Math,e.offsets)}}),kr=new(_().Struct)({off:function(e){return e._startOffset-e.parent.parent._startOffset},len:function(e){return((e.parent.leftTable.max-e.off)/e.parent.rowWidth+1)*(e.parent.rowWidth/2)},values:new(_().LazyArray)(_().int16,"len")}),Pr=new(_().VersionedStruct)("format",{0:{nPairs:_().uint16,searchRange:_().uint16,entrySelector:_().uint16,rangeShift:_().uint16,pairs:new(_().Array)(_r,"nPairs")},2:{rowWidth:_().uint16,leftTable:new(_().Pointer)(_().uint16,Hr,{type:"parent"}),rightTable:new(_().Pointer)(_().uint16,Hr,{type:"parent"}),array:new(_().Pointer)(_().uint16,kr,{type:"parent"})},3:{glyphCount:_().uint16,kernValueCount:_().uint8,leftClassCount:_().uint8,rightClassCount:_().uint8,flags:_().uint8,kernValue:new(_().Array)(_().int16,"kernValueCount"),leftClass:new(_().Array)(_().uint8,"glyphCount"),rightClass:new(_().Array)(_().uint8,"glyphCount"),kernIndex:new(_().Array)(_().uint8,(function(e){return e.leftClassCount*e.rightClassCount}))}}),Nr=new(_().VersionedStruct)("version",{0:{subVersion:_().uint16,length:_().uint16,format:_().uint8,coverage:new(_().Bitfield)(_().uint8,["horizontal","minimum","crossStream","override"]),subtable:Pr,padding:new(_().Reserved)(_().uint8,(function(e){return e.length-e._currentOffset}))},1:{length:_().uint32,coverage:new(_().Bitfield)(_().uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:_().uint8,tupleIndex:_().uint16,subtable:Pr,padding:new(_().Reserved)(_().uint8,(function(e){return e.length-e._currentOffset}))}}),Tr=new(_().VersionedStruct)(_().uint16,{0:{nTables:_().uint16,tables:new(_().Array)(Nr,"nTables")},1:{reserved:new(_().Reserved)(_().uint16),nTables:_().uint32,tables:new(_().Array)(Nr,"nTables")}}),Rr=new(_().Struct)({version:_().uint16,numGlyphs:_().uint16,yPels:new(_().Array)(_().uint8,"numGlyphs")}),Br=new(_().Struct)({version:_().uint16,fontNumber:_().uint32,pitch:_().uint16,xHeight:_().uint16,style:_().uint16,typeFamily:_().uint16,capHeight:_().uint16,symbolSet:_().uint16,typeface:new(_().String)(16),characterComplement:new(_().String)(8),fileName:new(_().String)(6),strokeWeight:new(_().String)(1),widthType:new(_().String)(1),serifStyle:_().uint8,reserved:new(_().Reserved)(_().uint8)}),Dr=new(_().Struct)({bCharSet:_().uint8,xRatio:_().uint8,yStartRatio:_().uint8,yEndRatio:_().uint8}),Fr=new(_().Struct)({yPelHeight:_().uint16,yMax:_().int16,yMin:_().int16}),Ir=new(_().Struct)({recs:_().uint16,startsz:_().uint8,endsz:_().uint8,entries:new(_().Array)(Fr,"recs")}),xr=new(_().Struct)({version:_().uint16,numRecs:_().uint16,numRatios:_().uint16,ratioRanges:new(_().Array)(Dr,"numRatios"),offsets:new(_().Array)(_().uint16,"numRatios"),groups:new(_().Array)(Ir,"numRecs")}),Or=new(_().Struct)({version:_().uint16,ascent:_().int16,descent:_().int16,lineGap:_().int16,advanceHeightMax:_().int16,minTopSideBearing:_().int16,minBottomSideBearing:_().int16,yMaxExtent:_().int16,caretSlopeRise:_().int16,caretSlopeRun:_().int16,caretOffset:_().int16,reserved:new(_().Reserved)(_().int16,4),metricDataFormat:_().int16,numberOfMetrics:_().uint16}),Lr=new(_().Struct)({advance:_().uint16,bearing:_().int16}),jr=new(_().Struct)({metrics:new(_().LazyArray)(Lr,(function(e){return e.parent.vhea.numberOfMetrics})),bearings:new(_().LazyArray)(_().int16,(function(e){return e.parent.maxp.numGlyphs-e.parent.vhea.numberOfMetrics}))}),zr=new(_().Fixed)(16,"BE",14),Qr=new(_().Struct)({fromCoord:zr,toCoord:zr}),Gr=new(_().Struct)({pairCount:_().uint16,correspondence:new(_().Array)(Qr,"pairCount")}),Wr=new(_().Struct)({version:_().fixed32,axisCount:_().uint32,segment:new(_().Array)(Gr,"axisCount")}),Ur=function(){function e(t,n,r){Oe(this,e),this.type=t,this.stream=n,this.parent=r,this.base=this.stream.pos,this._items=[]}return e.prototype.getItem=function(e){if(null==this._items[e]){var t=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*e,this._items[e]=this.type.decode(this.stream,this.parent),this.stream.pos=t}return this._items[e]},e.prototype.inspect=function(){return"[UnboundedArray "+this.type.constructor.name+"]"},e}(),Xr=function(e){function t(n){return Oe(this,t),ze(this,e.call(this,n,0))}return je(t,e),t.prototype.decode=function(e,t){return new Ur(this.type,e,t)},t}(_().Array),Jr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_().uint16,t=function(){function e(t){Oe(this,e),this.type=t}return e.prototype.decode=function(e,t){return t=t.parent.parent,this.type.decode(e,t)},e.prototype.size=function(e,t){return t=t.parent.parent,this.type.size(e,t)},e.prototype.encode=function(e,t,n){return n=n.parent.parent,this.type.encode(e,t,n)},e}();e=new t(e);var n=new(_().Struct)({unitSize:_().uint16,nUnits:_().uint16,searchRange:_().uint16,entrySelector:_().uint16,rangeShift:_().uint16}),r=new(_().Struct)({lastGlyph:_().uint16,firstGlyph:_().uint16,value:e}),i=new(_().Struct)({lastGlyph:_().uint16,firstGlyph:_().uint16,values:new(_().Pointer)(_().uint16,new(_().Array)(e,(function(e){return e.lastGlyph-e.firstGlyph+1})),{type:"parent"})}),o=new(_().Struct)({glyph:_().uint16,value:e});return new(_().VersionedStruct)(_().uint16,{0:{values:new Xr(e)},2:{binarySearchHeader:n,segments:new(_().Array)(r,(function(e){return e.binarySearchHeader.nUnits}))},4:{binarySearchHeader:n,segments:new(_().Array)(i,(function(e){return e.binarySearchHeader.nUnits}))},6:{binarySearchHeader:n,segments:new(_().Array)(o,(function(e){return e.binarySearchHeader.nUnits}))},8:{firstGlyph:_().uint16,count:_().uint16,values:new(_().Array)(e,"count")}})};function Kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_().uint16,n=Object.assign({newState:_().uint16,flags:_().uint16},e),r=new(_().Struct)(n),i=new Xr(new(_().Array)(_().uint16,(function(e){return e.nClasses}))),o=new(_().Struct)({nClasses:_().uint32,classTable:new(_().Pointer)(_().uint32,new Jr(t)),stateArray:new(_().Pointer)(_().uint32,i),entryTable:new(_().Pointer)(_().uint32,new Xr(r))});return o}var Yr=new(_().VersionedStruct)("format",{0:{deltas:new(_().Array)(_().int16,32)},1:{deltas:new(_().Array)(_().int16,32),mappingData:new Jr(_().uint16)},2:{standardGlyph:_().uint16,controlPoints:new(_().Array)(_().uint16,32)},3:{standardGlyph:_().uint16,controlPoints:new(_().Array)(_().uint16,32),mappingData:new Jr(_().uint16)}}),Zr=new(_().Struct)({version:_().fixed32,format:_().uint16,defaultBaseline:_().uint16,subtable:Yr}),Vr=new(_().Struct)({setting:_().uint16,nameIndex:_().int16,name:function(e){return e.parent.parent.parent.name.records.fontFeatures[e.nameIndex]}}),$r=new(_().Struct)({feature:_().uint16,nSettings:_().uint16,settingTable:new(_().Pointer)(_().uint32,new(_().Array)(Vr,"nSettings"),{type:"parent"}),featureFlags:new(_().Bitfield)(_().uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:_().uint8,nameIndex:_().int16,name:function(e){return e.parent.parent.name.records.fontFeatures[e.nameIndex]}}),qr=new(_().Struct)({version:_().fixed32,featureNameCount:_().uint16,reserved1:new(_().Reserved)(_().uint16),reserved2:new(_().Reserved)(_().uint32),featureNames:new(_().Array)($r,"featureNameCount")}),ei=new(_().Struct)({axisTag:new(_().String)(4),minValue:_().fixed32,defaultValue:_().fixed32,maxValue:_().fixed32,flags:_().uint16,nameID:_().uint16,name:function(e){return e.parent.parent.name.records.fontFeatures[e.nameID]}}),ti=new(_().Struct)({nameID:_().uint16,name:function(e){return e.parent.parent.name.records.fontFeatures[e.nameID]},flags:_().uint16,coord:new(_().Array)(_().fixed32,(function(e){return e.parent.axisCount})),postscriptNameID:new(_().Optional)(_().uint16,(function(e){return e.parent.instanceSize-e._currentOffset>0}))}),ni=new(_().Struct)({version:_().fixed32,offsetToData:_().uint16,countSizePairs:_().uint16,axisCount:_().uint16,axisSize:_().uint16,instanceCount:_().uint16,instanceSize:_().uint16,axis:new(_().Array)(ei,"axisCount"),instance:new(_().Array)(ti,"instanceCount")}),ri=new(_().Fixed)(16,"BE",14),ii=function(){function e(){Oe(this,e)}return e.decode=function(e,t){return t.flags?e.readUInt32BE():2*e.readUInt16BE()},e}(),oi=new(_().Struct)({version:_().uint16,reserved:new(_().Reserved)(_().uint16),axisCount:_().uint16,globalCoordCount:_().uint16,globalCoords:new(_().Pointer)(_().uint32,new(_().Array)(new(_().Array)(ri,"axisCount"),"globalCoordCount")),glyphCount:_().uint16,flags:_().uint16,offsetToData:_().uint32,offsets:new(_().Array)(new(_().Pointer)(ii,"void",{relativeTo:"offsetToData",allowNull:!1}),(function(e){return e.glyphCount+1}))}),ai=new(_().Struct)({length:_().uint16,coverage:_().uint16,subFeatureFlags:_().uint32,stateTable:new function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(arguments.length>1&&void 0!==arguments[1]||_().uint16,new(_().Struct)({version:function(){return 8},firstGlyph:_().uint16,values:new(_().Array)(_().uint8,_().uint16)})),n=Object.assign({newStateOffset:_().uint16,newState:function(e){return(e.newStateOffset-(e.parent.stateArray.base-e.parent._startOffset))/e.parent.nClasses},flags:_().uint16},e),r=new(_().Struct)(n),i=new Xr(new(_().Array)(_().uint8,(function(e){return e.nClasses}))),o=new(_().Struct)({nClasses:_().uint16,classTable:new(_().Pointer)(_().uint16,t),stateArray:new(_().Pointer)(_().uint16,i),entryTable:new(_().Pointer)(_().uint16,new Xr(r))});return o}}),si=new(_().Struct)({justClass:_().uint32,beforeGrowLimit:_().fixed32,beforeShrinkLimit:_().fixed32,afterGrowLimit:_().fixed32,afterShrinkLimit:_().fixed32,growFlags:_().uint16,shrinkFlags:_().uint16}),ui=new(_().Array)(si,_().uint32),ci=new(_().VersionedStruct)("actionType",{0:{lowerLimit:_().fixed32,upperLimit:_().fixed32,order:_().uint16,glyphs:new(_().Array)(_().uint16,_().uint16)},1:{addGlyph:_().uint16},2:{substThreshold:_().fixed32,addGlyph:_().uint16,substGlyph:_().uint16},3:{},4:{variationAxis:_().uint32,minimumLimit:_().fixed32,noStretchValue:_().fixed32,maximumLimit:_().fixed32},5:{flags:_().uint16,glyph:_().uint16}}),Mi=new(_().Struct)({actionClass:_().uint16,actionType:_().uint16,actionLength:_().uint32,actionData:ci,padding:new(_().Reserved)(_().uint8,(function(e){return e.actionLength-e._currentOffset}))}),mi=new(_().Array)(Mi,_().uint32),li=new(_().Struct)({lookupTable:new Jr(new(_().Pointer)(_().uint16,mi))}),di=new(_().Struct)({classTable:new(_().Pointer)(_().uint16,ai,{type:"parent"}),wdcOffset:_().uint16,postCompensationTable:new(_().Pointer)(_().uint16,li,{type:"parent"}),widthDeltaClusters:new Jr(new(_().Pointer)(_().uint16,ui,{type:"parent",relativeTo:"wdcOffset"}))}),hi=new(_().Struct)({version:_().uint32,format:_().uint16,horizontal:new(_().Pointer)(_().uint16,di),vertical:new(_().Pointer)(_().uint16,di)}),fi={action:_().uint16},pi={markIndex:_().uint16,currentIndex:_().uint16},yi={currentInsertIndex:_().uint16,markedInsertIndex:_().uint16},gi=new(_().Struct)({items:new Xr(new(_().Pointer)(_().uint32,new Jr))}),Ei=new(_().VersionedStruct)("type",{0:{stateTable:new Kr},1:{stateTable:new Kr(pi),substitutionTable:new(_().Pointer)(_().uint32,gi)},2:{stateTable:new Kr(fi),ligatureActions:new(_().Pointer)(_().uint32,new Xr(_().uint32)),components:new(_().Pointer)(_().uint32,new Xr(_().uint16)),ligatureList:new(_().Pointer)(_().uint32,new Xr(_().uint16))},4:{lookupTable:new Jr},5:{stateTable:new Kr(yi),insertionActions:new(_().Pointer)(_().uint32,new Xr(_().uint16))}}),vi=new(_().Struct)({length:_().uint32,coverage:_().uint24,type:_().uint8,subFeatureFlags:_().uint32,table:Ei,padding:new(_().Reserved)(_().uint8,(function(e){return e.length-e._currentOffset}))}),bi=new(_().Struct)({featureType:_().uint16,featureSetting:_().uint16,enableFlags:_().uint32,disableFlags:_().uint32}),wi=new(_().Struct)({defaultFlags:_().uint32,chainLength:_().uint32,nFeatureEntries:_().uint32,nSubtables:_().uint32,features:new(_().Array)(bi,"nFeatureEntries"),subtables:new(_().Array)(vi,"nSubtables")}),Si=new(_().Struct)({version:_().uint16,unused:new(_().Reserved)(_().uint16),nChains:_().uint32,chains:new(_().Array)(wi,"nChains")}),Ci=new(_().Struct)({left:_().int16,top:_().int16,right:_().int16,bottom:_().int16}),Ai=new(_().Struct)({version:_().fixed32,format:_().uint16,lookupTable:new Jr(Ci)}),_i={};_i.cmap=fe,_i.head=pe,_i.hhea=ye,_i.hmtx=Ee,_i.maxp=ve,_i.name=He,_i["OS/2"]=Pe,_i.post=Te,_i.fpgm=Be,_i.loca=De,_i.prep=Fe,_i["cvt "]=Re,_i.glyf=Ie,_i["CFF "]=qt,_i.CFF2=qt,_i.VORG=tn,_i.EBLC=dn,_i.CBLC=_i.EBLC,_i.sbix=fn,_i.COLR=gn,_i.CPAL=vn,_i.BASE=Tn,_i.GDEF=On,_i.GPOS=tr,_i.GSUB=sr,_i.JSTF=hr,_i.HVAR=gr,_i.DSIG=br,_i.gasp=Sr,_i.hdmx=Ar,_i.kern=Tr,_i.LTSH=Rr,_i.PCLT=Br,_i.VDMX=xr,_i.vhea=Or,_i.vmtx=jr,_i.avar=Wr,_i.bsln=Zr,_i.feat=qr,_i.fvar=ni,_i.gvar=oi,_i.just=hi,_i.morx=Si,_i.opbd=Ai;var Hi,ki=new(_().Struct)({tag:new(_().String)(4),checkSum:_().uint32,offset:new(_().Pointer)(_().uint32,"void",{type:"global"}),length:_().uint32}),Pi=new(_().Struct)({tag:new(_().String)(4),numTables:_().uint16,searchRange:_().uint16,entrySelector:_().uint16,rangeShift:_().uint16,tables:new(_().Array)(ki,"numTables")});function Ni(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>1,o=t(e[i]);if(o<0)r=i-1;else{if(!(o>0))return i;n=i+1}}return-1}function Ti(e,t){for(var n=[];e=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;e[o.tag]=o}this.tables=e},Pi.preEncode=function(e){var t=[];for(var n in this.tables){var r=this.tables[n];r&&t.push({tag:n,checkSum:0,offset:new(_().VoidPointer)(_i[n],r),length:_i[n].size(r)})}this.tag="true",this.numTables=t.length,this.tables=t,this.searchRange=16*Math.floor(Math.log(this.numTables)/Math.LN2),this.entrySelector=Math.floor(this.searchRange/Math.LN2),this.rangeShift=16*this.numTables-this.searchRange};try{var Bi=n(74337)}catch(pl){}var Di=(Ri((Hi=function(){function e(t){if(Oe(this,e),this.encoding=null,this.cmap=this.findSubtable(t,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap&&Bi){var n=t.tables,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o,s=be(a.platformID,a.encodingID,a.table.language-1);Bi.encodingExists(s)&&(this.cmap=a.table,this.encoding=s)}}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(t,[[0,5]]),this.uvs&&14!==this.uvs.version&&(this.uvs=null)}return e.prototype.findSubtable=function(e,t){var n=t,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o,s=a[0],u=a[1],c=e.tables,M=Array.isArray(c),m=0;for(c=M?c:c[Symbol.iterator]();;){var l;if(M){if(m>=c.length)break;l=c[m++]}else{if((m=c.next()).done)break;l=m.value}var d=l;if(d.platformID===s&&d.encodingID===u)return d.table}}return null},e.prototype.lookup=function(e,t){if(this.encoding){var n=Bi.encode(String.fromCodePoint(e),this.encoding);e=0;for(var r=0;r>1;if(eo.endCode.get(u))){var c=o.idRangeOffset.get(u),M=void 0;if(0===c)M=e+o.idDelta.get(u);else{var m=c/2+(e-o.startCode.get(u))-(o.segCount-u);0!==(M=o.glyphIndexArray.get(m)||0)&&(M+=o.idDelta.get(u))}return 65535&M}a=u+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return o.glyphIndices.get(e-o.firstCode)||0;case 12:case 13:for(var l=0,d=o.nGroups-1;l<=d;){var h=l+d>>1,f=o.groups.get(h);if(ef.endCharCode))return 12===o.version?f.glyphID+(e-f.startCharCode):f.glyphID;l=h+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+o.version)}},e.prototype.getVariationSelector=function(e,t){if(!this.uvs)return 0;var n=this.uvs.varSelectors.toArray(),r=Ni(n,(function(e){return t-e.varSelector})),i=n[r];return-1!==r&&i.defaultUVS&&(r=Ni(i.defaultUVS,(function(t){return et.startUnicodeValue+t.additionalCount?1:0}))),-1!==r&&i.nonDefaultUVS&&-1!==(r=Ni(i.nonDefaultUVS,(function(t){return e-t.unicodeValue})))?i.nonDefaultUVS[r].glyphID:0},e.prototype.getCharacterSet=function(){var e=this.cmap;switch(e.version){case 0:return Ti(0,e.codeMap.length);case 4:for(var t=[],n=e.endCode.toArray(),r=0;r=s.length)break;M=s[c++]}else{if((c=s.next()).done)break;M=c.value}var m=M;a.push.apply(a,Ti(m.startCharCode,m.endCharCode+1))}return a;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+e.version)}},e.prototype.codePointsForGlyph=function(e){var t=this.cmap;switch(t.version){case 0:for(var n=[],r=0;r<256;r++)t.codeMap.get(r)===e&&n.push(r);return n;case 4:for(var i=[],o=0;o=h.length)break;y=h[p++]}else{if((p=h.next()).done)break;y=p.value}var g=y;e>=g.glyphID&&e<=g.glyphID+(g.endCharCode-g.startCharCode)&&d.push(g.startCharCode+(e-g.glyphID))}return d;case 13:var E=[],v=t.groups.toArray(),b=Array.isArray(v),w=0;for(v=b?v:v[Symbol.iterator]();;){var S;if(b){if(w>=v.length)break;S=v[w++]}else{if((w=v.next()).done)break;S=w.value}var C=S;e===C.glyphID&&E.push.apply(E,Ti(C.startCharCode,C.endCharCode+1))}return E;default:throw new Error("Unknown cmap format "+t.version)}},e}()).prototype,"getCharacterSet",[oe],Object.getOwnPropertyDescriptor(Hi.prototype,"getCharacterSet"),Hi.prototype),Ri(Hi.prototype,"codePointsForGlyph",[oe],Object.getOwnPropertyDescriptor(Hi.prototype,"codePointsForGlyph"),Hi.prototype),Hi),Fi=function(){function e(t){Oe(this,e),this.kern=t.kern}return e.prototype.process=function(e,t){for(var n=0;n=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;if(!s.coverage.crossStream){switch(s.version){case 0:if(!s.coverage.horizontal)continue;break;case 1:if(s.coverage.vertical||s.coverage.variation)continue;break;default:throw new Error("Unsupported kerning table version "+s.version)}var u=0,c=s.subtable;switch(s.format){case 0:var M=Ni(c.pairs,(function(n){return e-n.left||t-n.right}));M>=0&&(u=c.pairs[M].value);break;case 2:var m=0,l=0;m=e>=c.leftTable.firstGlyph&&e=c.rightTable.firstGlyph&&t=c.glyphCount||t>=c.glyphCount)return 0;u=c.kernValue[c.kernIndex[c.leftClass[e]*c.rightClassCount+c.rightClass[t]]];break;default:throw new Error("Unsupported kerning sub-table format "+s.format)}s.coverage.override?n=u:n+=u}}return n},e}(),Ii=function(){function e(t){Oe(this,e),this.font=t}return e.prototype.positionGlyphs=function(e,t){for(var n=0,r=0,i=0;i1&&(o.minX+=(i.codePoints.length-1)*o.width/i.codePoints.length);for(var a=-t[n].xAdvance,s=0,u=this.font.unitsPerEm/16,c=n+1;c<=r;c++){var M=e[c],m=M.cbox,l=t[c],d=this.getCombiningClass(M.codePoints[0]);if("Not_Reordered"!==d){switch(l.xOffset=l.yOffset=0,d){case"Double_Above":case"Double_Below":l.xOffset+=o.minX-m.width/2-m.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":l.xOffset+=o.minX-m.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":l.xOffset+=o.maxX-m.width-m.minX;break;default:l.xOffset+=o.minX+(o.width-m.width)/2-m.minX}switch(d){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==d&&"Attached_Below"!==d||(o.minY+=u),l.yOffset=-o.minY-m.maxY,o.minY+=m.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==d&&"Attached_Above_Right"!==d||(o.maxY+=u),l.yOffset=o.maxY-m.minY,o.maxY+=m.height}l.xAdvance=l.yAdvance=0,l.xOffset+=a,l.yOffset+=s}else a-=l.xAdvance,s-=l.yAdvance}},e.prototype.getCombiningClass=function(e){var t=K.getCombiningClass(e);if(3584===(-256&e))if("Not_Reordered"===t)switch(e){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===e)return"Below_Right";switch(t){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return t},e}(),xi=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1/0;Oe(this,e),this.minX=t,this.minY=n,this.maxX=r,this.maxY=i}return e.prototype.addPoint=function(e,t){Math.abs(e)!==1/0&&(ethis.maxX&&(this.maxX=e)),Math.abs(t)!==1/0&&(tthis.maxY&&(this.maxY=t))},e.prototype.copy=function(){return new e(this.minX,this.minY,this.maxX,this.maxY)},Le(e,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),e}(),Oi={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},Li={};for(var ji in Oi){var zi=Oi[ji];if(Array.isArray(zi)){var Qi=zi,Gi=Array.isArray(Qi),Wi=0;for(Qi=Gi?Qi:Qi[Symbol.iterator]();;){var Ui;if(Gi){if(Wi>=Qi.length)break;Ui=Qi[Wi++]}else{if((Wi=Qi.next()).done)break;Ui=Wi.value}Li[Ui]=ji}}else Li[zi]=ji}var Xi={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function Ji(e){return Xi[e]?"rtl":"ltr"}for(var Ki=function(){function e(t,n,r,i,o){if(Oe(this,e),this.glyphs=t,this.positions=null,this.stringIndices=null,this.script=r,this.language=i||null,this.direction=o||Ji(r),this.features={},Array.isArray(n)){var a=n,s=Array.isArray(a),u=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(u>=a.length)break;c=a[u++]}else{if((u=a.next()).done)break;c=u.value}var M=c;this.features[M]=!0}}else"object"===("undefined"===typeof n?"undefined":xe(n))&&(this.features=n)}return Le(e,[{key:"advanceWidth",get:function(){var e=0,t=this.positions,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}e+=i.xAdvance}return e}},{key:"advanceHeight",get:function(){var e=0,t=this.positions,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}e+=i.yAdvance}return e}},{key:"bbox",get:function(){for(var e=new xi,t=0,n=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,e),this.xAdvance=t,this.yAdvance=n,this.xOffset=r,this.yOffset=i},Zi={allTypographicFeatures:{code:0,exclusive:!1,allTypeFeatures:0},ligatures:{code:1,exclusive:!1,requiredLigatures:0,commonLigatures:2,rareLigatures:4,rebusPictures:8,diphthongLigatures:10,squaredLigatures:12,abbrevSquaredLigatures:14,symbolLigatures:16,contextualLigatures:18,historicalLigatures:20},cursiveConnection:{code:2,exclusive:!0,unconnected:0,partiallyConnected:1,cursive:2},letterCase:{code:3,exclusive:!0},verticalSubstitution:{code:4,exclusive:!1,substituteVerticalForms:0},linguisticRearrangement:{code:5,exclusive:!1,linguisticRearrangement:0},numberSpacing:{code:6,exclusive:!0,monospacedNumbers:0,proportionalNumbers:1,thirdWidthNumbers:2,quarterWidthNumbers:3},smartSwash:{code:8,exclusive:!1,wordInitialSwashes:0,wordFinalSwashes:2,nonFinalSwashes:8},diacritics:{code:9,exclusive:!0,showDiacritics:0,hideDiacritics:1,decomposeDiacritics:2},verticalPosition:{code:10,exclusive:!0,normalPosition:0,superiors:1,inferiors:2,ordinals:3,scientificInferiors:4},fractions:{code:11,exclusive:!0,noFractions:0,verticalFractions:1,diagonalFractions:2},overlappingCharacters:{code:13,exclusive:!1,preventOverlap:0},typographicExtras:{code:14,exclusive:!1,slashedZero:4},mathematicalExtras:{code:15,exclusive:!1,mathematicalGreek:10},ornamentSets:{code:16,exclusive:!0,noOrnaments:0,dingbats:1,piCharacters:2,fleurons:3,decorativeBorders:4,internationalSymbols:5,mathSymbols:6},characterAlternatives:{code:17,exclusive:!0,noAlternates:0},designComplexity:{code:18,exclusive:!0,designLevel1:0,designLevel2:1,designLevel3:2,designLevel4:3,designLevel5:4},styleOptions:{code:19,exclusive:!0,noStyleOptions:0,displayText:1,engravedText:2,illuminatedCaps:3,titlingCaps:4,tallCaps:5},characterShape:{code:20,exclusive:!0,traditionalCharacters:0,simplifiedCharacters:1,JIS1978Characters:2,JIS1983Characters:3,JIS1990Characters:4,traditionalAltOne:5,traditionalAltTwo:6,traditionalAltThree:7,traditionalAltFour:8,traditionalAltFive:9,expertCharacters:10,JIS2004Characters:11,hojoCharacters:12,NLCCharacters:13,traditionalNamesCharacters:14},numberCase:{code:21,exclusive:!0,lowerCaseNumbers:0,upperCaseNumbers:1},textSpacing:{code:22,exclusive:!0,proportionalText:0,monospacedText:1,halfWidthText:2,thirdWidthText:3,quarterWidthText:4,altProportionalText:5,altHalfWidthText:6},transliteration:{code:23,exclusive:!0,noTransliteration:0},annotation:{code:24,exclusive:!0,noAnnotation:0,boxAnnotation:1,roundedBoxAnnotation:2,circleAnnotation:3,invertedCircleAnnotation:4,parenthesisAnnotation:5,periodAnnotation:6,romanNumeralAnnotation:7,diamondAnnotation:8,invertedBoxAnnotation:9,invertedRoundedBoxAnnotation:10},kanaSpacing:{code:25,exclusive:!0,fullWidthKana:0,proportionalKana:1},ideographicSpacing:{code:26,exclusive:!0,fullWidthIdeographs:0,proportionalIdeographs:1,halfWidthIdeographs:2},unicodeDecomposition:{code:27,exclusive:!1,canonicalComposition:0,compatibilityComposition:2,transcodingComposition:4},rubyKana:{code:28,exclusive:!1,rubyKana:2},CJKSymbolAlternatives:{code:29,exclusive:!0,noCJKSymbolAlternatives:0,CJKSymbolAltOne:1,CJKSymbolAltTwo:2,CJKSymbolAltThree:3,CJKSymbolAltFour:4,CJKSymbolAltFive:5},ideographicAlternatives:{code:30,exclusive:!0,noIdeographicAlternatives:0,ideographicAltOne:1,ideographicAltTwo:2,ideographicAltThree:3,ideographicAltFour:4,ideographicAltFive:5},CJKVerticalRomanPlacement:{code:31,exclusive:!0,CJKVerticalRomanCentered:0,CJKVerticalRomanHBaseline:1},italicCJKRoman:{code:32,exclusive:!1,CJKItalicRoman:2},caseSensitiveLayout:{code:33,exclusive:!1,caseSensitiveLayout:0,caseSensitiveSpacing:2},alternateKana:{code:34,exclusive:!1,alternateHorizKana:0,alternateVertKana:2},stylisticAlternatives:{code:35,exclusive:!1,noStylisticAlternates:0,stylisticAltOne:2,stylisticAltTwo:4,stylisticAltThree:6,stylisticAltFour:8,stylisticAltFive:10,stylisticAltSix:12,stylisticAltSeven:14,stylisticAltEight:16,stylisticAltNine:18,stylisticAltTen:20,stylisticAltEleven:22,stylisticAltTwelve:24,stylisticAltThirteen:26,stylisticAltFourteen:28,stylisticAltFifteen:30,stylisticAltSixteen:32,stylisticAltSeventeen:34,stylisticAltEighteen:36,stylisticAltNineteen:38,stylisticAltTwenty:40},contextualAlternates:{code:36,exclusive:!1,contextualAlternates:0,swashAlternates:2,contextualSwashAlternates:4},lowerCase:{code:37,exclusive:!0,defaultLowerCase:0,lowerCaseSmallCaps:1,lowerCasePetiteCaps:2},upperCase:{code:38,exclusive:!0,defaultUpperCase:0,upperCaseSmallCaps:1,upperCasePetiteCaps:2},languageTag:{code:39,exclusive:!0},CJKRomanSpacing:{code:103,exclusive:!0,halfWidthCJKRoman:0,proportionalCJKRoman:1,defaultCJKRoman:2,fullWidthCJKRoman:3}},Vi=function(e,t){return[Zi[e].code,Zi[e][t]]},$i={rlig:Vi("ligatures","requiredLigatures"),clig:Vi("ligatures","contextualLigatures"),dlig:Vi("ligatures","rareLigatures"),hlig:Vi("ligatures","historicalLigatures"),liga:Vi("ligatures","commonLigatures"),hist:Vi("ligatures","historicalLigatures"),smcp:Vi("lowerCase","lowerCaseSmallCaps"),pcap:Vi("lowerCase","lowerCasePetiteCaps"),frac:Vi("fractions","diagonalFractions"),dnom:Vi("fractions","diagonalFractions"),numr:Vi("fractions","diagonalFractions"),afrc:Vi("fractions","verticalFractions"),case:Vi("caseSensitiveLayout","caseSensitiveLayout"),ccmp:Vi("unicodeDecomposition","canonicalComposition"),cpct:Vi("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),valt:Vi("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),swsh:Vi("contextualAlternates","swashAlternates"),cswh:Vi("contextualAlternates","contextualSwashAlternates"),curs:Vi("cursiveConnection","cursive"),c2pc:Vi("upperCase","upperCasePetiteCaps"),c2sc:Vi("upperCase","upperCaseSmallCaps"),init:Vi("smartSwash","wordInitialSwashes"),fin2:Vi("smartSwash","wordFinalSwashes"),medi:Vi("smartSwash","nonFinalSwashes"),med2:Vi("smartSwash","nonFinalSwashes"),fin3:Vi("smartSwash","wordFinalSwashes"),fina:Vi("smartSwash","wordFinalSwashes"),pkna:Vi("kanaSpacing","proportionalKana"),half:Vi("textSpacing","halfWidthText"),halt:Vi("textSpacing","altHalfWidthText"),hkna:Vi("alternateKana","alternateHorizKana"),vkna:Vi("alternateKana","alternateVertKana"),ital:Vi("italicCJKRoman","CJKItalicRoman"),lnum:Vi("numberCase","upperCaseNumbers"),onum:Vi("numberCase","lowerCaseNumbers"),mgrk:Vi("mathematicalExtras","mathematicalGreek"),calt:Vi("contextualAlternates","contextualAlternates"),vrt2:Vi("verticalSubstitution","substituteVerticalForms"),vert:Vi("verticalSubstitution","substituteVerticalForms"),tnum:Vi("numberSpacing","monospacedNumbers"),pnum:Vi("numberSpacing","proportionalNumbers"),sups:Vi("verticalPosition","superiors"),subs:Vi("verticalPosition","inferiors"),ordn:Vi("verticalPosition","ordinals"),pwid:Vi("textSpacing","proportionalText"),hwid:Vi("textSpacing","halfWidthText"),qwid:Vi("textSpacing","quarterWidthText"),twid:Vi("textSpacing","thirdWidthText"),fwid:Vi("textSpacing","proportionalText"),palt:Vi("textSpacing","altProportionalText"),trad:Vi("characterShape","traditionalCharacters"),smpl:Vi("characterShape","simplifiedCharacters"),jp78:Vi("characterShape","JIS1978Characters"),jp83:Vi("characterShape","JIS1983Characters"),jp90:Vi("characterShape","JIS1990Characters"),jp04:Vi("characterShape","JIS2004Characters"),expt:Vi("characterShape","expertCharacters"),hojo:Vi("characterShape","hojoCharacters"),nlck:Vi("characterShape","NLCCharacters"),tnam:Vi("characterShape","traditionalNamesCharacters"),ruby:Vi("rubyKana","rubyKana"),titl:Vi("styleOptions","titlingCaps"),zero:Vi("typographicExtras","slashedZero"),ss01:Vi("stylisticAlternatives","stylisticAltOne"),ss02:Vi("stylisticAlternatives","stylisticAltTwo"),ss03:Vi("stylisticAlternatives","stylisticAltThree"),ss04:Vi("stylisticAlternatives","stylisticAltFour"),ss05:Vi("stylisticAlternatives","stylisticAltFive"),ss06:Vi("stylisticAlternatives","stylisticAltSix"),ss07:Vi("stylisticAlternatives","stylisticAltSeven"),ss08:Vi("stylisticAlternatives","stylisticAltEight"),ss09:Vi("stylisticAlternatives","stylisticAltNine"),ss10:Vi("stylisticAlternatives","stylisticAltTen"),ss11:Vi("stylisticAlternatives","stylisticAltEleven"),ss12:Vi("stylisticAlternatives","stylisticAltTwelve"),ss13:Vi("stylisticAlternatives","stylisticAltThirteen"),ss14:Vi("stylisticAlternatives","stylisticAltFourteen"),ss15:Vi("stylisticAlternatives","stylisticAltFifteen"),ss16:Vi("stylisticAlternatives","stylisticAltSixteen"),ss17:Vi("stylisticAlternatives","stylisticAltSeventeen"),ss18:Vi("stylisticAlternatives","stylisticAltEighteen"),ss19:Vi("stylisticAlternatives","stylisticAltNineteen"),ss20:Vi("stylisticAlternatives","stylisticAltTwenty")},qi=1;qi<=99;qi++)$i["cv"+("00"+qi).slice(-2)]=[Zi.characterAlternatives.code,qi];var eo,to={};for(var no in $i){var ro=$i[no];null==to[ro[0]]&&(to[ro[0]]={}),to[ro[0]][ro[1]]=no}function io(e){var t=e[0],n=e[1];if(isNaN(t))var r=Zi[t]&&Zi[t].code;else r=t;if(isNaN(n))var i=Zi[t]&&Zi[t][n];else i=n;return[r,i]}var oo,ao=(function(e,t,n,r,i){var o={};Object.keys(r).forEach((function(e){o[e]=r[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((eo=function(){function e(t){Oe(this,e),this.table=t}return e.prototype.lookup=function(e){switch(this.table.version){case 0:return this.table.values.getItem(e);case 2:case 4:for(var t=0,n=this.table.binarySearchHeader.nUnits-1;t<=n;){var r=t+n>>1;if(65535===(a=this.table.segments[r]).firstGlyph)return null;if(ea.lastGlyph))return 2===this.table.version?a.value:a.values[e-a.firstGlyph];t=r+1}}return null;case 6:for(var i=0,o=this.table.binarySearchHeader.nUnits-1;i<=o;){var a;r=i+o>>1;if(65535===(a=this.table.segments[r]).glyph)return null;if(ea.glyph))return a.value;i=r+1}}return null;case 8:return this.table.values[e-this.table.firstGlyph];default:throw new Error("Unknown lookup table format: "+this.table.version)}},e.prototype.glyphsForValue=function(e){var t=[];switch(this.table.version){case 2:case 4:var n=this.table.segments,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;if(2===this.table.version&&a.value===e)t.push.apply(t,Ti(a.firstGlyph,a.lastGlyph+1));else for(var s=0;s=u.length)break;m=u[M++]}else{if((M=u.next()).done)break;m=M.value}var l=m;l.value===e&&t.push(l.glyph)}break;case 8:for(var d=0;d=-1;){var a=null,s=1,u=!0;i===e.length||-1===i?s=0:65535===(a=e[i]).id?s=2:null==(s=this.lookupTable.lookup(a.id))&&(s=1);var c=this.stateTable.stateArray.getItem(r)[s],M=this.stateTable.entryTable.getItem(c);0!==s&&2!==s&&(n(a,M,i),u=!(16384&M.flags)),r=M.newState,u&&(i+=o)}return e},e.prototype.traverse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(!n.has(t)){n.add(t);for(var r=this.stateTable,i=r.nClasses,o=r.stateArray,a=r.entryTable,s=o.getItem(t),u=4;u=m.length)break;h=m[d++]}else{if((d=m.next()).done)break;h=d.value}var f=h;e.enter&&e.enter(f,M),0!==M.newState&&this.traverse(e,M.newState,n),e.exit&&e.exit(f,M)}}}},e}();var uo=4194304,co=(function(e,t,n,r,i){var o={};Object.keys(r).forEach((function(e){o[e]=r[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((oo=function(){function e(t){Oe(this,e),this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=t,this.morx=t.morx,this.inputCache=null}return e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.morx.chains,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o,s=a.defaultFlags,u=a.features,c=Array.isArray(u),M=0;for(u=c?u:u[Symbol.iterator]();;){var m;if(c){if(M>=u.length)break;m=u[M++]}else{if((M=u.next()).done)break;m=M.value}var l=m,d=void 0;(d=t[l.featureType])&&d[l.featureSetting]&&(s&=l.disableFlags,s|=l.enableFlags)}var h=a.subtables,f=Array.isArray(h),p=0;for(h=f?h:h[Symbol.iterator]();;){var y;if(f){if(p>=h.length)break;y=h[p++]}else{if((p=h.next()).done)break;y=p.value}var g=y;g.subFeatureFlags&s&&this.processSubtable(g,e)}}for(var E=e.length-1;E>=0;)65535===e[E].id&&e.splice(E,1),E--;return e},e.prototype.processSubtable=function(e,t){if(this.subtable=e,this.glyphs=t,4!==this.subtable.type){this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;var n=this.getStateMachine(e),r=this.getProcessor(),i=!!(this.subtable.coverage&uo);return n.process(this.glyphs,i,r)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},e.prototype.getStateMachine=function(e){return new so(e.table.stateTable)},e.prototype.getProcessor=function(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error("Invalid morx subtable type: "+this.subtable.type)}},e.prototype.processIndicRearragement=function(e,t,n){32768&t.flags&&(this.firstGlyph=n),8192&t.flags&&(this.lastGlyph=n),function(e,t,n,r){switch(t){case 0:return e;case 1:return Mo(e,[n,1],[r,0]);case 2:return Mo(e,[n,0],[r,1]);case 3:return Mo(e,[n,1],[r,1]);case 4:return Mo(e,[n,2],[r,0]);case 5:return Mo(e,[n,2],[r,0],!0,!1);case 6:return Mo(e,[n,0],[r,2]);case 7:return Mo(e,[n,0],[r,2],!1,!0);case 8:return Mo(e,[n,1],[r,2]);case 9:return Mo(e,[n,1],[r,2],!1,!0);case 10:return Mo(e,[n,2],[r,1]);case 11:return Mo(e,[n,2],[r,1],!0,!1);case 12:return Mo(e,[n,2],[r,2]);case 13:return Mo(e,[n,2],[r,2],!0,!1);case 14:return Mo(e,[n,2],[r,2],!1,!0);case 15:return Mo(e,[n,2],[r,2],!0,!0);default:throw new Error("Unknown verb: "+t)}}(this.glyphs,15&t.flags,this.firstGlyph,this.lastGlyph)},e.prototype.processContextualSubstitution=function(e,t,n){var r=this.subtable.table.substitutionTable.items;if(65535!==t.markIndex){var i=r.getItem(t.markIndex),o=new ao(i);e=this.glyphs[this.markedGlyph],(a=o.lookup(e.id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(a,e.codePoints))}if(65535!==t.currentIndex){var a,s=r.getItem(t.currentIndex),u=new ao(s);e=this.glyphs[n],(a=u.lookup(e.id))&&(this.glyphs[n]=this.font.getGlyph(a,e.codePoints))}32768&t.flags&&(this.markedGlyph=n)},e.prototype.processLigature=function(e,t,n){if(32768&t.flags&&this.ligatureStack.push(n),8192&t.flags){for(var r,i=this.subtable.table.ligatureActions,o=this.subtable.table.components,a=this.subtable.table.ligatureList,s=t.action,u=!1,c=0,M=[],m=[];!u;){var l,d=this.ligatureStack.pop();(l=M).unshift.apply(l,this.glyphs[d].codePoints);var h=i.getItem(s++);u=!!(2147483648&h);var f=!!(1073741824&h),p=(1073741823&h)<<2>>2;if(p+=this.glyphs[d].id,c+=o.getItem(p),u||f){var y=a.getItem(c);this.glyphs[d]=this.font.getGlyph(y,M),m.push(d),c=0,M=[]}else this.glyphs[d]=this.font.getGlyph(65535)}(r=this.ligatureStack).push.apply(r,m)}},e.prototype.processNoncontextualSubstitutions=function(e,t,n){var r=new ao(e.table.lookupTable);for(n=0;n>>5,i=!!(1024&t.flags);this._insertGlyphs(this.markedIndex,t.markedInsertIndex,r,i)}if(65535!==t.currentInsertIndex){var o=(992&t.flags)>>>5,a=!!(2048&t.flags);this._insertGlyphs(n,t.currentInsertIndex,o,a)}},e.prototype.getSupportedFeatures=function(){var e=[],t=this.morx.chains,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i.features,a=Array.isArray(o),s=0;for(o=a?o:o[Symbol.iterator]();;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var c=u;e.push([c.featureType,c.featureSetting])}}return e},e.prototype.generateInputs=function(e){return this.inputCache||this.generateInputCache(),this.inputCache[e]||[]},e.prototype.generateInputCache=function(){this.inputCache={};var e=this.morx.chains,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var i=r,o=i.defaultFlags,a=i.subtables,s=Array.isArray(a),u=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(u>=a.length)break;c=a[u++]}else{if((u=a.next()).done)break;c=u.value}var M=c;M.subFeatureFlags&o&&this.generateInputsForSubtable(M)}}},e.prototype.generateInputsForSubtable=function(e){var t=this;if(2===e.type){if(!!(e.coverage&uo))throw new Error("Reverse subtable, not supported.");this.subtable=e,this.ligatureStack=[];var n=this.getStateMachine(e),r=this.getProcessor(),i=[],o=[];this.glyphs=[],n.traverse({enter:function(e,n){var a=t.glyphs;o.push({glyphs:a.slice(),ligatureStack:t.ligatureStack.slice()});var s=t.font.getGlyph(e);i.push(s),a.push(i[i.length-1]),r(a[a.length-1],n,a.length-1);for(var u=0,c=0,M=0;M3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=e.splice(n[0]-(n[1]-1),n[1]);i&&o.reverse();var a=e.splice.apply(e,[t[0],t[1]].concat(o));return r&&a.reverse(),e.splice.apply(e,[n[0]-(t[1]-1),0].concat(a)),e}var mo,lo,ho=function(){function e(t){Oe(this,e),this.font=t,this.morxProcessor=new co(t),this.fallbackPosition=!1}return e.prototype.substitute=function(e){"rtl"===e.direction&&e.glyphs.reverse(),this.morxProcessor.process(e.glyphs,function(e){var t={};for(var n in e){var r;(r=$i[n])&&(null==t[r[0]]&&(t[r[0]]={}),t[r[0]][r[1]]=e[n])}return t}(e.features))},e.prototype.getAvailableFeatures=function(e,t){return function(e){var t={};if(Array.isArray(e))for(var n=0;n=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;this._addStrings(s,0,n,"")}return n},e.prototype._addStrings=function(e,t,n,r){var i=this.font._cmapProcessor.codePointsForGlyph(e[t]),o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s,c=r+String.fromCodePoint(u);t=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s;null==this.allFeatures[u]&&(r.push(u),this.allFeatures[u]=n,t&&(this.globalFeatures[u]=!0))}},e.prototype.add=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0===this.stages.length&&this.stages.push([]),"string"===typeof e&&(e=[e]),Array.isArray(e))this._addFeatures(e,t);else{if("object"!==("undefined"===typeof e?"undefined":xe(e)))throw new Error("Unsupported argument to ShapingPlan#add");this._addFeatures(e.global||[],!0),this._addFeatures(e.local||[],!1)}},e.prototype.addStage=function(e,t){"function"===typeof e?this.stages.push(e,[]):(this.stages.push([]),this.add(e,t))},e.prototype.setFeatureOverrides=function(e){if(Array.isArray(e))this.add(e);else if("object"===("undefined"===typeof e?"undefined":xe(e)))for(var t in e)if(e[t])this.add(t);else if(null!=this.allFeatures[t]){var n=this.stages[this.allFeatures[t]];n.splice(n.indexOf(t),1),delete this.allFeatures[t],delete this.globalFeatures[t]}},e.prototype.assignGlobalFeatures=function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;for(var a in this.globalFeatures)o.features[a]=!0}},e.prototype.process=function(e,t,n){var r=this.stages,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;"function"===typeof s?n||s(this.font,t,this):s.length>0&&e.applyFeatures(s,t,n)}},e}(),po=["rvrn"],yo=["ccmp","locl","rlig","mark","mkmk"],go=["frac","numr","dnom"],Eo=["calt","clig","liga","rclt","curs","kern"],vo={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},bo=(lo=mo=function(){function e(){Oe(this,e)}return e.plan=function(e,t,n){this.planPreprocessing(e),this.planFeatures(e),this.planPostprocessing(e,n),e.assignGlobalFeatures(t),this.assignFeatures(e,t)},e.planPreprocessing=function(e){e.add({global:[].concat(po,vo[e.direction]),local:go})},e.planFeatures=function(e){},e.planPostprocessing=function(e,t){e.add([].concat(yo,Eo)),e.setFeatureOverrides(t)},e.assignFeatures=function(e,t){for(var n=0;n0&&K.isDigit(t[i-1].codePoints[0]);)t[i-1].features.numr=!0,t[i-1].features.frac=!0,i--;for(;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.options=e,this.flags=e.flags||{},this.markAttachmentType=e.markAttachmentType||0,this.index=t},e.prototype.shouldIgnore=function(e){return this.flags.ignoreMarks&&e.isMark||this.flags.ignoreBaseGlyphs&&e.isBase||this.flags.ignoreLigatures&&e.isLigature||this.markAttachmentType&&e.isMark&&e.markAttachmentType!==this.markAttachmentType},e.prototype.move=function(e){for(this.index+=e;0<=this.index&&this.indexthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]},e.prototype.next=function(){return this.move(1)},e.prototype.prev=function(){return this.move(-1)},e.prototype.peek=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.index,n=this.increment(e);return this.index=t,n},e.prototype.peekIndex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.index;this.increment(e);var n=this.index;return this.index=t,n},e.prototype.increment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e<0?-1:1;for(e=Math.abs(e);e--;)this.move(t);return this.glyphs[this.index]},Le(e,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),e}(),jo=["DFLT","dflt","latn"],zo=function(){function e(t,n){Oe(this,e),this.font=t,this.table=n,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=t._variationProcessor?this.findVariationsIndex(t._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}return e.prototype.findScript=function(e){if(null==this.table.scriptList)return null;Array.isArray(e)||(e=[e]);var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i,a=this.table.scriptList,s=Array.isArray(a),u=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(u>=a.length)break;c=a[u++]}else{if((u=a.next()).done)break;c=u.value}var M=c;if(M.tag===o)return M}}return null},e.prototype.selectScript=function(e,t,n){var r=!1,i=void 0;if(!this.script||e!==this.scriptTag){if((i=this.findScript(e))||(i=this.findScript(jo)),!i)return this.scriptTag;this.scriptTag=i.tag,this.script=i.script,this.language=null,this.languageTag=null,r=!0}if(n&&n===this.direction||(this.direction=n||Ji(e)),t&&t.length<4&&(t+=" ".repeat(4-t.length)),!t||t!==this.languageTag){this.language=null;var o=this.script.langSysRecords,a=Array.isArray(o),s=0;for(o=a?o:o[Symbol.iterator]();;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var c=u;if(c.tag===t){this.language=c.langSys,this.languageTag=c.tag;break}}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),r=!0}if(r&&(this.features={},this.language)){var M=this.language.featureIndexes,m=Array.isArray(M),l=0;for(M=m?M:M[Symbol.iterator]();;){var d;if(m){if(l>=M.length)break;d=M[l++]}else{if((l=M.next()).done)break;d=l.value}var h=d,f=this.table.featureList[h],p=this.substituteFeatureForVariations(h);this.features[f.tag]=p||f.feature}}return this.scriptTag},e.prototype.lookupsForFeatures=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=[],r=e,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=this.features[s];if(u){var c=u.lookupListIndexes,M=Array.isArray(c),m=0;for(c=M?c:c[Symbol.iterator]();;){var l;if(M){if(m>=c.length)break;l=c[m++]}else{if((m=c.next()).done)break;l=m.value}var d=l;t&&-1!==t.indexOf(d)||n.push({feature:s,index:d,lookup:this.table.lookupList.get(d)})}}}return n.sort((function(e,t){return e.index-t.index})),n},e.prototype.substituteFeatureForVariations=function(e){if(-1===this.variationsIndex)return null;var t=this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;if(o.featureIndex===e)return o.alternateFeatureTable}return null},e.prototype.findVariationsIndex=function(e){var t=this.table.featureVariations;if(!t)return-1;for(var n=t.featureVariationRecords,r=0;r=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=s.feature,c=s.lookup;for(this.currentFeature=u,this.glyphIterator.reset(c.flags);this.glyphIterator.index=M.length)break;d=M[l++]}else{if((l=M.next()).done)break;d=l.value}var h=d;if(this.applyLookup(c.lookupType,h))break}this.glyphIterator.next()}else this.glyphIterator.next()}},e.prototype.applyLookup=function(e,t){throw new Error("applyLookup must be implemented by subclasses")},e.prototype.applyLookupList=function(e){var t=this.glyphIterator.options,n=this.glyphIterator.index,r=e,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;this.glyphIterator.reset(t,n),this.glyphIterator.increment(s.sequenceIndex);var u=this.table.lookupList.get(s.lookupListIndex);this.glyphIterator.reset(u.flags,this.glyphIterator.index);var c=u.subTables,M=Array.isArray(c),m=0;for(c=M?c:c[Symbol.iterator]();;){var l;if(M){if(m>=c.length)break;l=c[m++]}else{if((m=c.next()).done)break;l=m.value}var d=l;if(this.applyLookup(u.lookupType,d))break}}return this.glyphIterator.reset(t,n),!0},e.prototype.coverageIndex=function(e,t){switch(null==t&&(t=this.glyphIterator.cur.id),e.version){case 1:return e.glyphs.indexOf(t);case 2:var n=e.rangeRecords,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;if(a.start<=t&&t<=a.end)return a.startCoverageIndex+t-a.start}}return-1},e.prototype.match=function(e,t,n,r){for(var i=this.glyphIterator.index,o=this.glyphIterator.increment(e),a=0;a=0}))},e.prototype.getClassID=function(e,t){switch(t.version){case 1:var n=e-t.startGlyph;if(n>=0&&n=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;if(s.start<=e&&e<=s.end)return s.class}}return 0},e.prototype.classSequenceMatches=function(e,t,n){var r=this;return this.match(e,t,(function(e,t){return e===r.getClassID(t.id,n)}))},e.prototype.applyContext=function(e){switch(e.version){case 1:var t=this.coverageIndex(e.coverage);if(-1===t)return!1;var n=e.ruleSets[t],r=n,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;if(this.sequenceMatches(1,s.input))return this.applyLookupList(s.lookupRecords)}break;case 2:if(-1===this.coverageIndex(e.coverage))return!1;if(-1===(t=this.getClassID(this.glyphIterator.cur.id,e.classDef)))return!1;var u=n=e.classSet[t],c=Array.isArray(u),M=0;for(u=c?u:u[Symbol.iterator]();;){var m;if(c){if(M>=u.length)break;m=u[M++]}else{if((M=u.next()).done)break;m=M.value}var l=m;if(this.classSequenceMatches(1,l.classes,e.classDef))return this.applyLookupList(l.lookupRecords)}break;case 3:if(this.coverageSequenceMatches(0,e.coverages))return this.applyLookupList(e.lookupRecords)}return!1},e.prototype.applyChainingContext=function(e){switch(e.version){case 1:var t=this.coverageIndex(e.coverage);if(-1===t)return!1;var n=e.chainRuleSets[t],r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;if(this.sequenceMatches(-a.backtrack.length,a.backtrack)&&this.sequenceMatches(1,a.input)&&this.sequenceMatches(1+a.input.length,a.lookahead))return this.applyLookupList(a.lookupRecords)}break;case 2:if(-1===this.coverageIndex(e.coverage))return!1;t=this.getClassID(this.glyphIterator.cur.id,e.inputClassDef);var s=e.chainClassSet[t];if(!s)return!1;var u=s,c=Array.isArray(u),M=0;for(u=c?u:u[Symbol.iterator]();;){var m;if(c){if(M>=u.length)break;m=u[M++]}else{if((M=u.next()).done)break;m=M.value}var l=m;if(this.classSequenceMatches(-l.backtrack.length,l.backtrack,e.backtrackClassDef)&&this.classSequenceMatches(1,l.input,e.inputClassDef)&&this.classSequenceMatches(1+l.input.length,l.lookahead,e.lookaheadClassDef))return this.applyLookupList(l.lookupRecords)}break;case 3:if(this.coverageSequenceMatches(-e.backtrackGlyphCount,e.backtrackCoverage)&&this.coverageSequenceMatches(0,e.inputCoverage)&&this.coverageSequenceMatches(e.inputGlyphCount,e.lookaheadCoverage))return this.applyLookupList(e.lookupRecords)}return!1},e}(),Qo=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments[3],o=arguments[4];if(Oe(this,e),this._font=t,this.codePoints=r,this.stringIndex=o,this.id=n,this.features={},Array.isArray(i))for(var a=0;a0&&this.codePoints.every(K.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}},{key:"advanceWidth",get:function(){return this._font.getGlyph(this.id,this.codePoints).advanceWidth}}]),e}(),Go=(Oo=xo=function(e){function t(){return Oe(this,t),ze(this,e.apply(this,arguments))}return je(t,e),t.planFeatures=function(e){e.add(["ljmo","vjmo","tjmo"],!1)},t.assignFeatures=function(e,t){for(var n=0,r=0;rJo){var m=ea(n,o,r.features);m.features.tjmo=!0,M.push(m)}return e.splice.apply(e,[t,1].concat(M)),t+M.length-1}function na(e,t,n){var r=e[t],i=Ko(e[t].codePoints[0]),o=e[t-1].codePoints[0],a=Ko(o),s=void 0,u=void 0,c=void 0,M=void 0;if(4===a&&3===i)s=o,M=r;else{2===i?(u=e[t-1],c=r):(u=e[t-2],c=e[t-1],M=r);var m=u.codePoints[0],l=c.codePoints[0];(function(e){return Uo<=e&&e<=4370})(m)&&function(e){return Xo<=e&&e<=4469}(l)&&(s=Wo+28*(21*(m-Uo)+(l-Xo)))}var d=M&&M.codePoints[0]||Jo;if(null!=s&&(d===Jo||function(e){return 1<=e&&e<=4546}(d))){var h=s+(d-Jo);if(n.hasGlyphForCodePoint(h)){var f=2===a?3:2;return e.splice(t-f+1,f,ea(n,h,r.features)),t-f+1}}return u&&(u.features.ljmo=!0),c&&(c.features.vjmo=!0),M&&(M.features.tjmo=!0),4===a?(ta(e,t-1,n),t+1):t}function ra(e,t,n){var r=e[t],i=e[t].codePoints[0];if(0!==n.glyphForCodePoint(i).advanceWidth){var o=function(e){switch(Ko(e)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(e[t-1].codePoints[0]);return e.splice(t,1),e.splice(t-o,0,r)}}function ia(e,t,n){var r=e[t],i=e[t].codePoints[0];if(n.hasGlyphForCodePoint(9676)){var o=ea(n,9676,r.features),a=0===n.glyphForCodePoint(i).advanceWidth?t:t+1;e.splice(a,0,o),t++}return t}var oa,aa,sa={stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],accepting:[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!1,!1,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0],tags:[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]},ua={categories:["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","VS","N","HN","MAbv"],decompositions:{2507:[2503,2494],2508:[2503,2519],2888:[2887,2902],2891:[2887,2878],2892:[2887,2903],3018:[3014,3006],3019:[3015,3006],3020:[3014,3031],3144:[3142,3158],3264:[3263,3285],3271:[3270,3285],3272:[3270,3286],3274:[3270,3266],3275:[3270,3266,3285],3402:[3398,3390],3403:[3399,3390],3404:[3398,3415],3546:[3545,3530],3548:[3545,3535],3549:[3545,3535,3530],3550:[3545,3551],3635:[3661,3634],3763:[3789,3762],3955:[3953,3954],3957:[3953,3956],3958:[4018,3968],3959:[4018,3953,3968],3960:[4019,3968],3961:[4019,3953,3968],3969:[3953,3968],6971:[6970,6965],6973:[6972,6965],6976:[6974,6965],6977:[6975,6965],6979:[6978,6965],69934:[69937,69927],69935:[69938,69927],70475:[70471,70462],70476:[70471,70487],70843:[70841,70842],70844:[70841,70832],70846:[70841,70845],71098:[71096,71087],71099:[71097,71087]},stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,23,0,0,2,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],accepting:[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0],tags:[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]},ca=1,Ma=8,ma=16,la=32,da=64,ha=128,fa=8192,pa=32768,ya=65536,ga=1<<17,Ea={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Above_C:64,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},va=2|ya|ga|4|2048|4096,ba=da|la,wa=ma|16384,Sa={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:Ea.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:Ea.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:Ea.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:Ea.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:Ea.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:Ea.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:Ea.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:Ea.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:Ea.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:Ea.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:Ea.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},Ca={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},Aa=[0,17,0,0,0,0,0,0,0,0,194,160,1,177,13,78,242,237,157,127,172,29,69,21,199,247,245,222,119,127,188,119,251,110,95,133,68,98,251,71,67,137,49,197,152,166,16,107,138,105,21,9,34,81,219,24,132,104,177,6,67,176,36,4,106,48,109,132,82,130,63,10,216,31,198,146,148,88,19,172,37,65,44,137,40,38,160,173,41,70,146,106,172,169,70,76,99,180,182,9,105,32,169,5,98,65,41,45,224,119,238,206,188,123,238,220,153,217,249,181,187,239,209,61,201,39,187,59,59,59,115,230,156,51,179,179,179,123,223,59,94,75,146,151,192,171,224,13,48,167,158,36,239,5,243,193,37,224,21,164,253,175,22,190,189,24,101,45,2,75,192,50,135,114,175,64,222,79,128,107,192,42,112,61,88,3,110,6,183,129,175,131,141,134,242,150,226,220,10,240,77,240,93,176,25,108,7,59,193,35,224,56,242,60,134,237,207,64,194,121,154,111,15,128,131,224,79,224,111,224,40,56,1,78,130,211,224,44,168,141,38,73,27,76,130,139,192,2,240,126,240,33,240,97,176,28,92,5,62,13,174,3,55,130,155,193,109,224,78,112,55,184,15,60,8,190,15,126,0,126,4,126,2,158,228,199,207,128,103,193,239,193,159,193,17,112,12,188,8,94,1,175,129,115,163,169,206,245,70,146,116,192,5,141,244,120,30,182,11,193,165,96,49,88,10,150,131,171,249,249,207,98,123,61,88,3,110,1,183,55,82,155,172,231,91,91,54,242,252,223,198,246,46,176,149,31,63,192,183,155,80,215,14,150,94,239,95,179,203,177,14,27,118,144,50,247,96,127,47,120,10,236,3,191,3,127,4,127,5,255,0,47,128,147,36,255,155,124,123,154,167,109,99,62,198,126,173,153,36,227,224,61,205,212,94,239,195,246,226,102,154,103,17,79,91,130,237,50,112,101,51,141,39,17,75,215,226,120,37,184,1,172,1,183,128,219,249,53,235,249,118,19,182,155,121,121,226,186,173,56,222,209,52,183,117,87,198,121,106,227,31,35,239,22,110,251,245,216,254,20,199,191,0,191,38,101,252,22,251,127,0,247,224,124,7,252,69,81,254,223,45,234,180,101,173,136,5,148,121,204,177,220,151,34,234,81,20,255,134,206,255,1,111,128,164,149,36,163,173,52,125,111,61,181,185,156,127,54,63,47,250,226,5,56,158,7,22,114,104,222,69,173,52,110,150,144,244,179,6,93,88,108,47,35,121,87,241,250,175,145,244,248,56,242,92,77,242,49,93,133,223,62,211,82,235,45,48,157,171,168,168,240,99,91,213,175,42,42,42,42,42,42,42,42,42,28,217,198,215,25,202,214,67,102,39,127,214,189,174,101,127,205,91,154,244,55,53,233,95,224,207,202,95,198,246,171,224,14,176,1,220,11,238,7,91,193,67,224,135,224,81,240,4,120,170,149,174,45,237,195,246,0,56,8,14,131,35,224,40,56,1,78,181,210,245,156,215,177,125,139,61,223,183,241,12,15,46,108,167,245,206,107,247,117,88,136,253,75,219,246,109,172,168,168,168,168,8,135,173,91,94,134,177,247,76,173,191,222,94,22,101,219,162,162,162,34,14,175,145,119,82,91,121,255,94,134,113,230,74,112,173,52,215,251,156,227,220,175,195,199,138,83,188,142,183,193,23,219,253,247,169,95,193,254,173,82,153,119,180,251,239,117,40,236,189,204,6,156,187,119,26,204,63,147,57,41,43,192,157,96,127,55,155,45,200,119,72,147,247,85,164,47,156,76,146,213,224,33,240,252,228,224,249,227,56,223,153,139,185,56,88,13,238,29,75,146,103,65,50,14,95,129,187,192,10,28,239,227,219,163,124,75,153,223,25,78,147,185,17,121,54,146,124,191,193,254,57,126,124,197,236,36,185,27,236,7,15,143,196,229,28,47,243,178,9,216,115,34,221,223,52,161,214,241,128,38,189,162,162,162,162,34,127,222,41,121,12,142,125,255,113,97,121,183,252,250,203,126,254,43,155,171,192,253,152,7,126,175,61,252,60,202,190,243,121,24,233,187,200,60,113,55,246,31,111,167,243,209,45,138,242,196,247,119,236,219,177,51,252,26,246,188,205,190,169,99,229,253,156,151,245,43,69,125,12,86,230,254,246,224,243,241,205,124,251,92,123,184,62,155,57,38,251,102,138,173,119,179,57,179,124,253,33,148,121,24,28,105,247,231,198,199,120,61,47,98,251,50,248,175,164,207,219,237,254,60,188,129,62,52,27,92,56,70,230,180,60,223,124,158,118,134,127,247,181,27,233,151,32,237,131,99,195,250,95,62,214,63,62,202,203,254,232,152,157,15,5,247,248,248,31,117,124,10,172,2,159,7,95,2,55,129,29,56,183,22,219,117,96,195,88,58,79,254,14,216,198,206,129,93,96,15,216,11,158,36,122,62,51,150,206,167,15,130,195,224,8,56,10,78,128,83,22,237,121,29,121,206,128,145,113,245,249,7,224,203,54,206,77,142,247,143,47,194,254,2,126,252,32,142,63,128,253,197,252,248,35,216,126,76,83,22,181,255,82,69,108,217,194,174,223,211,40,191,47,219,232,89,36,91,13,245,127,114,92,127,221,59,138,126,58,19,219,175,226,95,205,119,81,28,120,182,37,70,221,172,191,177,241,110,37,233,219,236,158,116,3,137,171,213,216,191,9,156,203,41,158,178,218,183,174,158,234,120,171,52,254,124,205,48,30,157,15,80,63,126,3,182,216,52,158,95,159,119,141,63,241,109,229,183,52,249,46,39,247,249,117,26,63,138,243,108,222,177,221,112,126,61,223,103,191,97,217,140,178,86,242,227,237,216,223,9,30,49,140,145,50,187,45,126,75,241,114,14,223,204,63,10,29,159,152,65,241,172,107,199,47,103,72,27,88,140,236,135,174,207,129,67,224,121,240,79,174,251,11,22,109,96,109,165,191,225,96,191,17,184,15,233,39,199,211,216,103,223,95,236,37,249,214,146,107,79,35,207,217,241,52,109,164,227,222,183,92,17,191,101,88,105,81,46,123,222,104,119,6,211,232,239,31,196,111,186,68,219,39,121,94,246,108,177,143,204,253,22,75,115,212,139,120,59,31,15,152,31,78,39,98,247,255,233,194,188,214,187,187,125,148,167,13,237,220,114,158,216,64,135,203,220,42,180,46,213,250,199,76,98,129,52,94,186,216,167,232,57,117,53,22,198,133,197,238,177,218,72,194,150,64,103,26,245,241,193,125,27,202,214,121,186,114,190,75,217,246,143,22,155,77,206,76,208,117,26,35,36,235,124,86,190,46,57,159,149,207,87,207,178,109,53,211,218,225,226,179,233,96,15,149,190,101,235,23,203,7,58,41,91,23,31,157,203,210,127,186,199,68,153,54,41,35,118,108,164,108,189,203,182,81,153,177,84,134,253,169,222,121,213,239,43,101,196,196,68,107,144,250,172,8,140,68,100,142,93,190,118,51,165,133,103,233,137,185,233,254,172,102,63,221,133,86,189,127,109,207,70,99,28,110,35,154,55,83,55,110,147,54,41,143,225,250,156,236,107,107,217,199,137,169,44,142,16,221,177,171,15,123,215,26,252,43,206,83,81,149,193,68,248,183,195,253,219,81,248,79,200,44,158,71,72,135,231,103,254,149,235,83,73,167,57,156,54,212,38,201,191,83,249,44,253,43,226,59,100,108,177,245,239,80,91,10,246,175,156,87,222,103,194,252,43,108,47,252,43,144,69,78,167,254,165,146,53,38,235,218,99,188,198,210,191,83,227,42,233,143,245,201,12,133,36,113,237,191,194,167,218,227,130,252,107,219,127,101,68,63,18,125,74,248,88,229,223,144,251,45,181,137,28,75,174,227,179,177,142,140,88,106,206,144,241,217,213,191,163,22,227,243,168,69,255,85,201,168,102,76,136,61,62,119,147,126,191,13,153,235,49,223,138,252,54,227,179,169,47,235,238,149,98,95,78,83,229,147,211,180,233,150,243,47,89,104,95,86,141,223,226,222,60,75,234,219,140,134,101,255,86,249,95,39,121,188,151,80,137,60,159,238,213,29,50,86,231,208,159,93,253,201,250,115,179,57,12,237,83,52,93,62,110,100,244,103,122,157,41,166,168,93,232,53,46,254,205,18,27,159,207,36,255,234,242,10,17,227,181,141,127,233,177,216,183,241,175,60,246,170,100,74,215,8,254,237,118,83,124,196,213,23,190,253,139,250,64,220,47,117,48,201,26,47,109,218,155,53,94,210,152,12,157,15,153,198,74,113,79,53,218,196,113,190,107,59,39,142,230,103,151,62,73,98,67,228,179,209,131,138,170,143,233,214,47,196,57,177,21,107,25,170,245,16,109,44,56,142,167,116,125,195,85,98,251,194,151,174,193,166,58,59,83,97,215,211,126,58,171,57,184,142,196,182,141,218,32,44,77,172,41,249,172,11,153,236,41,246,109,210,109,125,147,229,47,249,60,45,223,164,139,171,253,19,158,151,61,75,211,231,105,149,253,133,111,152,200,246,103,63,19,18,227,76,79,23,199,184,87,197,80,158,180,56,186,243,214,235,78,14,113,70,227,183,203,109,40,215,203,76,82,203,136,13,235,113,50,194,88,76,197,103,13,152,174,245,178,251,51,139,147,134,78,247,73,123,122,237,119,200,159,7,162,63,152,160,107,213,170,123,185,79,236,170,164,236,49,191,135,229,252,65,23,43,170,251,42,139,157,222,220,154,61,247,79,12,142,85,83,176,186,61,231,85,116,109,66,213,6,89,31,99,204,142,164,121,198,107,41,34,143,184,86,164,83,104,89,153,117,217,48,57,108,75,85,189,140,22,175,191,167,135,165,253,196,181,242,123,152,172,24,87,73,87,218,15,69,85,142,77,249,73,224,245,161,245,231,221,62,159,114,139,128,74,222,117,248,158,207,171,189,178,248,172,99,244,174,147,210,108,158,73,98,213,175,130,214,111,211,238,188,234,119,149,24,246,103,226,93,127,81,247,104,155,117,149,8,107,4,194,247,166,245,24,25,250,172,49,181,38,195,239,253,189,253,217,41,34,93,85,6,155,35,116,44,238,75,98,46,58,101,255,192,117,207,208,49,160,168,241,59,70,253,177,245,103,244,236,91,84,31,80,244,99,155,103,25,121,238,79,69,164,247,222,81,27,158,25,76,107,30,42,123,90,63,99,198,180,137,199,90,160,235,253,110,200,126,30,62,163,162,123,158,160,107,71,186,103,12,149,127,101,196,188,87,171,191,195,243,135,210,207,57,198,183,170,237,81,234,215,197,133,56,239,242,28,61,225,183,190,160,91,39,84,173,17,54,106,131,215,210,216,9,29,255,67,175,167,239,194,196,61,207,251,254,155,67,12,201,182,203,242,135,156,62,94,55,151,31,210,159,92,97,247,253,86,210,95,139,82,225,122,31,180,246,91,158,247,50,197,125,70,229,11,214,215,6,214,78,70,236,237,205,230,77,202,58,53,99,131,109,220,100,221,31,101,25,154,63,104,108,97,138,73,211,152,68,215,45,91,53,115,221,46,247,233,129,24,39,250,134,206,159,178,100,234,219,219,49,62,255,29,243,96,174,132,42,77,140,99,99,131,125,91,148,97,235,207,88,184,214,23,122,158,230,51,109,77,215,132,180,51,143,178,109,235,179,173,195,75,151,81,208,232,31,199,184,23,248,232,49,213,110,139,103,76,37,205,196,249,55,173,190,190,163,18,211,231,62,18,90,87,12,253,99,180,195,86,92,117,170,119,226,182,81,27,183,57,83,84,61,42,95,250,92,155,87,172,196,142,185,60,237,230,83,135,141,174,190,82,100,204,248,232,80,196,249,162,37,111,155,103,181,189,104,253,99,148,17,59,22,243,142,233,188,218,90,100,125,182,229,229,41,54,122,210,247,32,242,247,4,242,179,42,253,93,83,158,235,127,170,119,115,58,123,133,250,62,215,117,14,151,53,73,213,121,221,154,133,106,13,97,164,255,155,19,151,248,138,246,59,224,28,215,138,92,214,89,109,126,75,68,227,38,120,61,212,103,125,194,102,205,130,147,21,207,165,188,119,177,137,103,5,173,90,159,41,251,231,60,126,152,214,209,92,223,127,119,73,127,49,174,161,234,236,18,217,230,166,53,75,186,150,56,240,126,168,238,127,63,11,233,47,38,127,139,113,222,170,221,1,241,222,235,47,101,172,119,91,198,169,188,254,171,122,255,148,37,33,223,136,38,30,254,29,154,79,4,218,70,46,67,59,111,25,73,223,115,54,20,223,39,198,246,141,238,221,172,234,61,30,211,77,108,243,22,211,124,206,166,173,170,54,169,202,20,223,180,134,232,101,51,39,182,61,239,83,119,55,194,121,215,241,50,84,95,27,188,99,157,198,137,237,248,151,49,134,100,221,127,153,190,226,155,92,33,161,243,47,23,31,196,242,109,168,207,77,250,184,182,49,182,254,166,244,68,147,183,72,29,125,109,173,146,50,234,13,109,111,17,254,14,185,222,166,189,177,219,17,98,203,44,187,230,113,62,203,62,182,118,178,21,223,120,202,58,31,18,47,161,101,219,232,239,122,189,141,221,242,138,197,24,109,241,41,67,213,230,50,165,8,155,103,197,102,30,49,145,151,132,212,19,67,47,155,254,101,202,151,135,255,116,109,44,35,126,92,252,83,68,28,21,97,243,60,234,114,209,169,140,250,203,106,127,86,157,236,185,109,84,250,150,152,109,233,223,225,162,34,242,201,127,199,110,96,13,205,112,28,27,89,26,100,13,121,168,237,19,254,207,145,58,251,197,236,195,62,117,217,214,235,91,102,140,54,186,74,104,27,125,203,142,85,71,104,253,121,248,64,64,191,207,23,127,23,105,218,189,211,179,88,11,151,105,100,188,183,144,197,250,61,65,224,120,97,146,222,119,232,62,127,107,57,178,125,179,254,46,50,123,103,74,223,201,229,53,254,217,148,97,180,87,1,241,152,21,155,38,91,138,223,6,9,223,251,252,46,196,57,198,10,236,183,114,140,216,72,148,191,53,158,163,127,93,255,102,56,123,127,106,122,47,63,133,244,183,39,166,252,229,25,23,212,230,177,198,54,159,49,46,150,175,122,101,229,112,191,96,113,198,124,36,222,207,103,141,63,38,253,133,142,42,93,125,245,247,185,222,212,215,202,238,67,46,136,223,41,101,222,143,164,119,68,3,237,13,253,94,199,243,239,181,210,124,67,182,143,236,123,122,94,151,87,72,151,252,255,3,29,66,228,191,143,79,199,180,169,242,244,166,211,250,132,246,43,97,19,185,110,211,183,79,84,178,206,103,9,213,161,140,251,140,77,124,235,206,211,184,20,115,50,249,94,147,37,161,253,35,175,182,11,145,207,171,218,28,243,25,74,70,246,185,172,95,12,255,187,66,219,175,250,6,195,69,138,244,63,253,237,105,86,204,143,215,213,107,54,177,245,15,149,162,238,133,3,117,90,124,67,145,213,175,92,237,151,53,207,180,125,134,115,125,62,148,197,247,121,209,247,121,201,183,126,157,62,62,207,200,62,245,135,232,234,98,87,185,158,16,201,91,207,34,36,166,45,99,180,53,52,62,105,186,156,199,116,141,79,27,92,174,205,210,53,164,111,248,232,31,35,94,109,245,160,182,178,105,115,72,123,66,36,15,219,134,138,169,204,24,62,116,209,33,73,134,235,119,209,67,149,87,46,199,164,131,46,77,181,85,213,105,210,223,166,60,213,245,46,177,98,123,141,174,45,121,245,153,172,152,176,169,39,207,250,93,36,70,57,161,250,231,209,254,24,182,45,194,23,121,215,27,234,223,80,125,66,109,20,106,243,60,226,168,104,41,163,78,157,252,31],_a=ua.decompositions,Ha=new(Z())(new Uint8Array(Aa)),ka=new($())(sa),Pa=(aa=oa=function(e){function t(){return Oe(this,t),ze(this,e.apply(this,arguments))}return je(t,e),t.planFeatures=function(e){e.addStage(Ba),e.addStage(["locl","ccmp"]),e.addStage(La),e.addStage("nukt"),e.addStage("akhn"),e.addStage("rphf",!1),e.addStage("rkrf"),e.addStage("pref",!1),e.addStage("blwf",!1),e.addStage("abvf",!1),e.addStage("half",!1),e.addStage("pstf",!1),e.addStage("vatu"),e.addStage("cjct"),e.addStage("cfar",!1),e.addStage(ja),e.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),e.unicodeScript=function(e){return Li[e]}(e.script),e.indicConfig=Sa[e.unicodeScript]||Sa.Default,e.isOldSpec=e.indicConfig.hasOldSpec&&"2"!==e.script[e.script.length-1]},t.assignFeatures=function(e,t){for(var n=function(n){var r=t[n].codePoints[0],i=Ca[r]||_a[r];if(i){var o=i.map((function(r){var i=e.font.glyphForCodePoint(r);return new Qo(e.font,i.id,[r],t[n].features)}));t.splice.apply(t,[n,1].concat(o))}},r=t.length-1;r>=0;r--)n(r)},t}(bo),oa.zeroMarkWidths="NONE",aa);function Na(e){return Ha.get(e.codePoints[0])>>8}function Ta(e){return 1<<(255&Ha.get(e.codePoints[0]))}var Ra=function e(t,n,r,i){Oe(this,e),this.category=t,this.position=n,this.syllableType=r,this.syllable=i};function Ba(e,t){var n=0,r=0,i=ka.match(t.map(Na)),o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s,c=u[0],M=u[1],m=u[2];if(c>r){++n;for(var l=r;l=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}a.features=((o={})[t]=!0,o)}return e[0]._font._layoutEngine.engine.GSUBProcessor.applyFeatures([t],e),1===e.length}function Oa(e,t,n){var r=[n,t,n];return xa(r.slice(0,2),"blwf")||xa(r.slice(1,3),"blwf")?Ea.Below_C:xa(r.slice(0,2),"pstf")||xa(r.slice(1,3),"pstf")||xa(r.slice(0,2),"pref")||xa(r.slice(1,3),"pref")?Ea.Post_C:Ea.Base_C}function La(e,t,n){var r=n.indicConfig,i=e._layoutEngine.engine.GSUBProcessor.features,o=e.glyphForCodePoint(9676).id,a=e.glyphForCodePoint(r.virama).id;if(a)for(var s=new Qo(e,a,[r.virama]),u=0;up);break;case"First":for(var w=(f=c)+1;wk&&!(Da(t[P])||H&&t[P].shaperInfo.category===ma);P--);if(t[P].shaperInfo.category!==ma&&P>k){var N=t[k];t.splice.apply(t,[k,0].concat(t.splice(k+1,P-k))),t[P]=N}break}for(var T=Ea.Start,R=c;Rc;D--)if(t[D-1].shaperInfo.position!==Ea.Pre_M){B.position=t[D-1].shaperInfo.position;break}}else B.position!==Ea.SMVD&&(T=B.position)}for(var F=f,I=f+1;Ic&&!Da(t[Y]))}}}}function ja(e,t,n){for(var r=n.indicConfig,i=e._layoutEngine.engine.GSUBProcessor.features,o=0,a=za(t,0);o=Ea.Base_C){if(s&&u+1Ea.Base_C&&u--;break}if(u===a&&oo&&!(t[m].shaperInfo.category&(ha|wa));)m--;Ia(t[m])&&t[m].shaperInfo.position!==Ea.Pre_M?m+1o;l--)if(t[l-1].shaperInfo.position===Ea.Pre_M){var d=l-1;do&&t[f].shaperInfo.position===Ea.SMVD;)f--;if(Ia(t[f]))for(var g=u+1;go&&!(t[b-1].shaperInfo.category&(ha|wa));)b--;if(b>o&&t[b-1].shaperInfo.category===ha)for(var w=v,S=u+1;So&&Ia(t[b-1])&&b=e.length)return t;for(var n=e[t].shaperInfo.syllable;++t=0;r--)n(r)},t}(bo),Qa.zeroMarkWidths="BEFORE_GPOS",Ga);function Za(e){return Ja.get(e.codePoints[0])}var Va=function e(t,n,r){Oe(this,e),this.category=t,this.syllableType=n,this.syllable=r};function $a(e,t){var n=0,r=Ka.match(t.map(Za)),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=s[0],c=s[1],M=s[2];++n;for(var m=u;m<=c;m++)t[m].shaperInfo=new Va(Ua[Za(t[m])],M[0],n);for(var l="R"===t[u].shaperInfo.category?1:Math.min(3,c-u),d=u;d=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}o.substituted=!1}}function es(e,t){var n=t,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;a.substituted&&a.features.rphf&&(a.shaperInfo.category="R")}}function ts(e,t){var n=t,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;a.substituted&&(a.shaperInfo.category="VPre")}}function ns(e,t){for(var n=e.glyphForCodePoint(9676).id,r=0,i=rs(t,0);r1)for(o=r+1;o=e.length)return t;for(var n=e[t].shaperInfo.syllable;++t=d.length)break;p=d[f++]}else{if((f=d.next()).done)break;p=f.value}var y=p,g=this.sequenceMatchIndices(1,y.components);if(g){var E=this.glyphIterator.cur,v=E.codePoints.slice(),b=g,w=Array.isArray(b),S=0;for(b=w?b:b[Symbol.iterator]();;){var C;if(w){if(S>=b.length)break;C=b[S++]}else{if((S=b.next()).done)break;C=S.value}var A=C;v.push.apply(v,this.glyphs[A].codePoints)}var _=new Qo(this.font,y.glyph,v,E.features,E.stringIndex);_.shaperInfo=E.shaperInfo,_.isLigated=!0,_.substituted=!0;for(var H=E.isMark,k=0;k=B.length)break;I=B[F++]}else{if((F=B.next()).done)break;I=F.value}var x=I;if(H)R=x;else for(;R=0;j--)this.glyphs.splice(g[j],1);return this.glyphs[this.glyphIterator.index]=_,!0}}return!1;case 5:return this.applyContext(t);case 6:return this.applyChainingContext(t);case 7:return this.applyLookup(t.lookupType,t.extension);default:throw new Error("GSUB lookupType "+e+" is not supported")}},t}(zo),us=function(e){function t(){return Oe(this,t),ze(this,e.apply(this,arguments))}return je(t,e),t.prototype.applyPositionValue=function(e,t){var n=this.positions[this.glyphIterator.peekIndex(e)];null!=t.xAdvance&&(n.xAdvance+=t.xAdvance),null!=t.yAdvance&&(n.yAdvance+=t.yAdvance),null!=t.xPlacement&&(n.xOffset+=t.xPlacement),null!=t.yPlacement&&(n.yOffset+=t.yPlacement);var r=this.font._variationProcessor,i=this.font.GDEF&&this.font.GDEF.itemVariationStore;r&&i&&(t.xPlaDevice&&(n.xOffset+=r.getDelta(i,t.xPlaDevice.a,t.xPlaDevice.b)),t.yPlaDevice&&(n.yOffset+=r.getDelta(i,t.yPlaDevice.a,t.yPlaDevice.b)),t.xAdvDevice&&(n.xAdvance+=r.getDelta(i,t.xAdvDevice.a,t.xAdvDevice.b)),t.yAdvDevice&&(n.yAdvance+=r.getDelta(i,t.yAdvDevice.a,t.yAdvDevice.b)))},t.prototype.applyLookup=function(e,t){switch(e){case 1:var n=this.coverageIndex(t.coverage);if(-1===n)return!1;switch(t.version){case 1:this.applyPositionValue(0,t.value);break;case 2:this.applyPositionValue(0,t.values.get(n))}return!0;case 2:var r=this.glyphIterator.peek();if(!r)return!1;var i=this.coverageIndex(t.coverage);if(-1===i)return!1;switch(t.version){case 1:var o=t.pairSets.get(i),a=Array.isArray(o),s=0;for(o=a?o:o[Symbol.iterator]();;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var c=u;if(c.secondGlyph===r.id)return this.applyPositionValue(0,c.value1),this.applyPositionValue(1,c.value2),!0}return!1;case 2:var M=this.getClassID(this.glyphIterator.cur.id,t.classDef1),m=this.getClassID(r.id,t.classDef2);if(-1===M||-1===m)return!1;var l=t.classRecords.get(M).get(m);return this.applyPositionValue(0,l.value1),this.applyPositionValue(1,l.value2),!0}case 3:var d=this.glyphIterator.peekIndex(),h=this.glyphs[d];if(!h)return!1;var f=t.entryExitRecords[this.coverageIndex(t.coverage)];if(!f||!f.exitAnchor)return!1;var p=t.entryExitRecords[this.coverageIndex(t.coverage,h.id)];if(!p||!p.entryAnchor)return!1;var y=this.getAnchor(p.entryAnchor),g=this.getAnchor(f.exitAnchor),E=this.positions[this.glyphIterator.index],v=this.positions[d];switch(this.direction){case"ltr":E.xAdvance=g.x+E.xOffset;var b=y.x+v.xOffset;v.xAdvance-=b,v.xOffset-=b;break;case"rtl":b=g.x+E.xOffset,E.xAdvance-=b,E.xOffset-=b,v.xAdvance=y.x+v.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=d,E.yOffset=y.y-g.y):(h.cursiveAttachment=this.glyphIterator.index,E.yOffset=g.y-y.y),!0;case 4:var w=this.coverageIndex(t.markCoverage);if(-1===w)return!1;for(var S=this.glyphIterator.index;--S>=0&&(this.glyphs[S].isMark||this.glyphs[S].ligatureComponent>0););if(S<0)return!1;var C=this.coverageIndex(t.baseCoverage,this.glyphs[S].id);if(-1===C)return!1;var A=t.markArray[w],_=t.baseArray[C][A.class];return this.applyAnchor(A,_,S),!0;case 5:var H=this.coverageIndex(t.markCoverage);if(-1===H)return!1;for(var k=this.glyphIterator.index;--k>=0&&this.glyphs[k].isMark;);if(k<0)return!1;var P=this.coverageIndex(t.ligatureCoverage,this.glyphs[k].id);if(-1===P)return!1;var N=t.ligatureArray[P],T=this.glyphIterator.cur,R=this.glyphs[k],B=R.ligatureID&&R.ligatureID===T.ligatureID&&T.ligatureComponent>0?Math.min(T.ligatureComponent,R.codePoints.length)-1:R.codePoints.length-1,D=t.markArray[H],F=N[B][D.class];return this.applyAnchor(D,F,k),!0;case 6:var I=this.coverageIndex(t.mark1Coverage);if(-1===I)return!1;var x=this.glyphIterator.peekIndex(-1),O=this.glyphs[x];if(!O||!O.isMark)return!1;var L=this.glyphIterator.cur,j=!1;if(L.ligatureID===O.ligatureID?L.ligatureID?L.ligatureComponent===O.ligatureComponent&&(j=!0):j=!0:(L.ligatureID&&!L.ligatureComponent||O.ligatureID&&!O.ligatureComponent)&&(j=!0),!j)return!1;var z=this.coverageIndex(t.mark2Coverage,O.id);if(-1===z)return!1;var Q=t.mark1Array[I],G=t.mark2Array[z][Q.class];return this.applyAnchor(Q,G,x),!0;case 7:return this.applyContext(t);case 8:return this.applyChainingContext(t);case 9:return this.applyLookup(t.lookupType,t.extension);default:throw new Error("Unsupported GPOS table: "+e)}},t.prototype.applyAnchor=function(e,t,n){var r=this.getAnchor(t),i=this.getAnchor(e.markAnchor),o=(this.positions[n],this.positions[this.glyphIterator.index]);o.xOffset=r.x-i.x,o.yOffset=r.y-i.y,this.glyphIterator.cur.markAttachment=n},t.prototype.getAnchor=function(e){var t=e.xCoordinate,n=e.yCoordinate,r=this.font._variationProcessor,i=this.font.GDEF&&this.font.GDEF.itemVariationStore;return r&&i&&(e.xDeviceTable&&(t+=r.getDelta(i,e.xDeviceTable.a,e.xDeviceTable.b)),e.yDeviceTable&&(n+=r.getDelta(i,e.yDeviceTable.a,e.yDeviceTable.b))),{x:t,y:n}},t.prototype.applyFeatures=function(t,n,r){e.prototype.applyFeatures.call(this,t,n,r);for(var i=0;i=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=as[i];if(o)return o}return bo}(t),this.plan=new fo(this.font,t,e.direction),this.shaper.plan(this.plan,e.glyphs,e.features),this.plan.allFeatures)e.features[n]=!0},e.prototype.substitute=function(e){this.GSUBProcessor&&this.plan.process(this.GSUBProcessor,e.glyphs)},e.prototype.position=function(e){return"BEFORE_GPOS"===this.shaper.zeroMarkWidths&&this.zeroMarkAdvances(e),this.GPOSProcessor&&this.plan.process(this.GPOSProcessor,e.glyphs,e.positions),"AFTER_GPOS"===this.shaper.zeroMarkWidths&&this.zeroMarkAdvances(e),"rtl"===e.direction&&(e.glyphs.reverse(),e.positions.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features},e.prototype.zeroMarkAdvances=function(e){for(var t=0;t>16;if(0===t)switch(e>>8){case 0:return 173===e;case 3:return 847===e;case 6:return 1564===e;case 23:return 6068<=e&&e<=6069;case 24:return 6155<=e&&e<=6158;case 32:return 8203<=e&&e<=8207||8234<=e&&e<=8238||8288<=e&&e<=8303;case 254:return 65024<=e&&e<=65039||65279===e;case 255:return 65520<=e&&e<=65528;default:return!1}else switch(t){case 1:return 113824<=e&&e<=113827||119155<=e&&e<=119162;case 14:return 917504<=e&&e<=921599;default:return!1}},e.prototype.getAvailableFeatures=function(e,t){var n=[];return this.engine&&n.push.apply(n,this.engine.getAvailableFeatures(e,t)),this.font.kern&&-1===n.indexOf("kern")&&n.push("kern"),n},e.prototype.stringsForGlyph=function(e){var t=new Set,n=this.font._cmapProcessor.codePointsForGlyph(e),r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;t.add(String.fromCodePoint(a))}if(this.engine&&this.engine.stringsForGlyph){var s=this.engine.stringsForGlyph(e),u=Array.isArray(s),c=0;for(s=u?s:s[Symbol.iterator]();;){var M;if(u){if(c>=s.length)break;M=s[c++]}else{if((c=s.next()).done)break;M=c.value}var m=M;t.add(m)}}return Array.from(t)},e}(),ms={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},ls=function(){function e(){Oe(this,e),this.commands=[],this._bbox=null,this._cbox=null}return e.prototype.toFunction=function(){var e=this.commands.map((function(e){return" ctx."+e.command+"("+e.args.join(", ")+");"}));return new Function("ctx",e.join("\n"))},e.prototype.toSVG=function(){return this.commands.map((function(e){var t=e.args.map((function(e){return Math.round(100*e)/100}));return""+ms[e.command]+t.join(" ")})).join("")},e.prototype.mapPoints=function(t){var n=new e,r=this.commands,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}for(var s=a,u=[],c=0;c1&&void 0!==arguments[1]?arguments[1]:e;return this.transform(e,0,0,t,0,0)},Le(e,[{key:"cbox",get:function(){if(!this._cbox){var e=new xi,t=this.commands,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}for(var o=i,a=0;a=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s;switch(u.command){case"moveTo":case"lineTo":var c=u.args,M=c[0],m=c[1];e.addPoint(M,m),t=M,n=m;break;case"quadraticCurveTo":case"bezierCurveTo":if("quadraticCurveTo"===u.command)var l=u.args,d=l[0],h=l[1],f=t+2/3*(d-t),p=n+2/3*(h-n),y=(v=l[2])+2/3*(d-v),g=(b=l[3])+2/3*(h-b);else var E=u.args,v=(f=E[0],p=E[1],y=E[2],g=E[3],E[4]),b=E[5];e.addPoint(v,b);for(var w=[t,n],S=[f,p],C=[y,g],A=[v,b],_=0;_<=1;_++){var H=6*w[_]-12*S[_]+6*C[_],k=-3*w[_]+9*S[_]-9*C[_]+3*A[_];if(u=3*S[_]-3*w[_],0!==k){var P=Math.pow(H,2)-4*u*k;if(!(P<0)){var N=(-H+Math.sqrt(P))/(2*k);00&&this.codePoints.every(K.isMark),this.isLigature=this.codePoints.length>1}return e.prototype._getPath=function(){return new ls},e.prototype._getCBox=function(){return this.path.cbox},e.prototype._getBBox=function(){return this.path.bbox},e.prototype._getTableMetrics=function(e){if(this.id0)o=Math.abs(s.typoAscender-s.typoDescender),a=s.typoAscender-e.maxY;else{var u=this._font.hhea;o=Math.abs(u.ascent-u.descent),a=u.ascent-e.maxY}}return this._font._variationProcessor&&this._font.HVAR&&(n+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:n,advanceHeight:o,leftBearing:r,topBearing:a}},e.prototype.getScaledPath=function(e){var t=1/this._font.unitsPerEm*e;return this.path.scale(t)},e.prototype._getName=function(){var e=this._font.post;if(!e)return null;switch(e.version){case 1:return ys[this.id];case 2:var t=e.glyphNameIndex[this.id];return t2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,e),this.onCurve=t,this.endContour=n,this.x=r,this.y=i}return e.prototype.copy=function(){return new e(this.onCurve,this.endContour,this.x,this.y)},e}(),Ss=function e(t,n,r){Oe(this,e),this.glyphID=t,this.dx=n,this.dy=r,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0},Cs=function(e){function t(){return Oe(this,t),ze(this,e.apply(this,arguments))}return je(t,e),t.prototype._getCBox=function(e){if(this._font._variationProcessor&&!e)return this.path.cbox;var t=this._font._getTableStream("glyf");t.pos+=this._font.loca.offsets[this.id];var n=bs.decode(t),r=new xi(n.xMin,n.yMin,n.xMax,n.yMax);return Object.freeze(r)},t.prototype._parseGlyphCoord=function(e,t,n,r){if(n){var i=e.readUInt8();r||(i=-i),i+=t}else if(r)i=t;else i=t+e.readInt16BE();return i},t.prototype._decode=function(){var e=this._font.loca.offsets[this.id];if(e===this._font.loca.offsets[this.id+1])return null;var t=this._font._getTableStream("glyf");t.pos+=e;var n=t.pos,r=bs.decode(t);return r.numberOfContours>0?this._decodeSimple(r,t):r.numberOfContours<0&&this._decodeComposite(r,t,n),r},t.prototype._decodeSimple=function(e,t){e.points=[];var n=new(_().Array)(_().uint16,e.numberOfContours).decode(t);e.instructions=new(_().Array)(_().uint8,_().uint16).decode(t);for(var r=[],i=n[n.length-1]+1;r.length=0,0,0);e.points.push(c)}var M=0;for(u=0;u2&&void 0!==arguments[2]?arguments[2]:0;e.components=[];for(var r=!1,i=32;32&i;){i=t.readUInt16BE();var o=t.pos-n,a=t.readUInt16BE();if(r||(r=0!==(256&i)),1&i)var s=t.readInt16BE(),u=t.readInt16BE();else s=t.readInt8(),u=t.readInt8();(m=new Ss(a,s,u)).pos=o,8&i?m.scaleX=m.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824:64&i?(m.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,m.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824):128&i&&(m.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,m.scale01=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,m.scale10=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,m.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824),e.components.push(m)}if(this._font._variationProcessor){for(var c=[],M=0;M=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}for(var a=o,s=this._font.getGlyph(a.glyphID)._getContours(),u=0;u>1,o.length=0}function C(e,t){d&&i.closePath(),i.moveTo(e,t),d=!0}return function n(){for(;e.pos1&&w(),M+=o.shift(),C(c,M);break;case 5:for(;o.length>=2;)c+=o.shift(),M+=o.shift(),i.lineTo(c,M);break;case 6:case 7:for(var p=6===s;o.length>=1;)p?c+=o.shift():M+=o.shift(),i.lineTo(c,M),p=!p;break;case 8:for(;o.length>0;){var A=c+o.shift(),_=M+o.shift(),H=A+o.shift(),k=_+o.shift();c=H+o.shift(),M=k+o.shift(),i.bezierCurveTo(A,_,H,k,c,M)}break;case 10:var P=o.pop()+g,N=y[P];if(N){l[P]=!0;var T=e.pos,R=r;e.pos=N.offset,r=N.offset+N.length,n(),e.pos=T,r=R}break;case 11:if(t.version>=2)break;return;case 14:if(t.version>=2)break;o.length>0&&w(),d&&(i.closePath(),d=!1);break;case 15:if(t.version<2)throw new Error("vsindex operator not supported in CFF v1");v=o.pop();break;case 16:if(t.version<2)throw new Error("blend operator not supported in CFF v1");if(!b)throw new Error("blend operator in non-variation font");for(var B=b.getBlendVector(E,v),D=o.pop(),F=D*B.length,I=o.length-F,x=I-D,O=0;O>3;break;case 21:o.length>2&&w(),c+=o.shift(),M+=o.shift(),C(c,M);break;case 22:o.length>1&&w(),C(c+=o.shift(),M);break;case 24:for(;o.length>=8;){A=c+o.shift(),_=M+o.shift(),H=A+o.shift(),k=_+o.shift();c=H+o.shift(),M=k+o.shift(),i.bezierCurveTo(A,_,H,k,c,M)}c+=o.shift(),M+=o.shift(),i.lineTo(c,M);break;case 25:for(;o.length>=8;)c+=o.shift(),M+=o.shift(),i.lineTo(c,M);A=c+o.shift(),_=M+o.shift(),H=A+o.shift(),k=_+o.shift();c=H+o.shift(),M=k+o.shift(),i.bezierCurveTo(A,_,H,k,c,M);break;case 26:for(o.length%2&&(c+=o.shift());o.length>=4;)A=c,_=M+o.shift(),H=A+o.shift(),k=_+o.shift(),c=H,M=k+o.shift(),i.bezierCurveTo(A,_,H,k,c,M);break;case 27:for(o.length%2&&(M+=o.shift());o.length>=4;)A=c+o.shift(),_=M,H=A+o.shift(),k=_+o.shift(),c=H+o.shift(),M=k,i.bezierCurveTo(A,_,H,k,c,M);break;case 28:o.push(e.readInt16BE());break;case 29:if(P=o.pop()+f,N=h[P]){m[P]=!0;T=e.pos,R=r;e.pos=N.offset,r=N.offset+N.length,n(),e.pos=T,r=R}break;case 30:case 31:for(p=31===s;o.length>=4;)p?(A=c+o.shift(),_=M,H=A+o.shift(),k=_+o.shift(),M=k+o.shift(),c=H+(1===o.length?o.shift():0)):(A=c,_=M+o.shift(),H=A+o.shift(),k=_+o.shift(),c=H+o.shift(),M=k+(1===o.length?o.shift():0)),i.bezierCurveTo(A,_,H,k,c,M),p=!p;break;case 12:switch(s=e.readUInt8()){case 3:var z=o.pop(),Q=o.pop();o.push(z&&Q?1:0);break;case 4:z=o.pop(),Q=o.pop(),o.push(z||Q?1:0);break;case 5:z=o.pop(),o.push(z?0:1);break;case 9:z=o.pop(),o.push(Math.abs(z));break;case 10:z=o.pop(),Q=o.pop(),o.push(z+Q);break;case 11:z=o.pop(),Q=o.pop(),o.push(z-Q);break;case 12:z=o.pop(),Q=o.pop(),o.push(z/Q);break;case 14:z=o.pop(),o.push(-z);break;case 15:z=o.pop(),Q=o.pop(),o.push(z===Q?1:0);break;case 18:o.pop();break;case 20:var G=o.pop(),W=o.pop();a[W]=G;break;case 21:W=o.pop(),o.push(a[W]||0);break;case 22:var U=o.pop(),X=o.pop(),J=o.pop(),K=o.pop();o.push(J<=K?U:X);break;case 23:o.push(Math.random());break;case 24:z=o.pop(),Q=o.pop(),o.push(z*Q);break;case 26:z=o.pop(),o.push(Math.sqrt(z));break;case 27:z=o.pop(),o.push(z,z);break;case 28:z=o.pop(),Q=o.pop(),o.push(Q,z);break;case 29:(W=o.pop())<0?W=0:W>o.length-1&&(W=o.length-1),o.push(o[W]);break;case 30:var Y=o.pop(),Z=o.pop();if(Z>=0)for(;Z>0;){for(var V=o[Y-1],$=Y-2;$>=0;$--)o[$+1]=o[$];o[0]=V,Z--}else for(;Z<0;){V=o[0];for(var q=0;q<=Y;q++)o[q]=o[q+1];o[Y-1]=V,Z++}break;case 34:A=c+o.shift(),_=M,H=A+o.shift(),k=_+o.shift();var ee=H+o.shift(),te=k,ne=ee+o.shift(),re=te,ie=ne+o.shift(),oe=re,ae=ie+o.shift(),se=oe;c=ae,M=se,i.bezierCurveTo(A,_,H,k,ee,te),i.bezierCurveTo(ne,re,ie,oe,ae,se);break;case 35:for(var ue=[],ce=0;ce<=5;ce++)c+=o.shift(),M+=o.shift(),ue.push(c,M);i.bezierCurveTo.apply(i,ue.slice(0,6)),i.bezierCurveTo.apply(i,ue.slice(6)),o.shift();break;case 36:A=c+o.shift(),_=M+o.shift(),H=A+o.shift(),re=te=k=_+o.shift(),ie=(ne=(ee=H+o.shift())+o.shift())+o.shift(),oe=re+o.shift(),ae=ie+o.shift(),c=ae,M=se=oe,i.bezierCurveTo(A,_,H,k,ee,te),i.bezierCurveTo(ne,re,ie,oe,ae,se);break;case 37:var Me=c,me=M;ue=[];for(var le=0;le<=4;le++)c+=o.shift(),M+=o.shift(),ue.push(c,M);Math.abs(c-Me)>Math.abs(M-me)?(c+=o.shift(),M=me):(c=Me,M+=o.shift()),ue.push(c,M),i.bezierCurveTo.apply(i,ue.slice(0,6)),i.bezierCurveTo.apply(i,ue.slice(6));break;default:throw new Error("Unknown op: 12 "+s)}break;default:throw new Error("Unknown op: "+s)}else if(s<247)o.push(s-139);else if(s<251){var de=e.readUInt8();o.push(256*(s-247)+de+108)}else if(s<255){de=e.readUInt8();o.push(256*-(s-251)-de-108)}else o.push(e.readInt32BE()/65536)}}(),d&&i.closePath(),i},t}(vs),_s=new(_().Struct)({originX:_().uint16,originY:_().uint16,type:new(_().String)(4),data:new(_().Buffer)((function(e){return e.parent.buflen-e._currentOffset}))}),Hs=function(e){function t(){return Oe(this,t),ze(this,e.apply(this,arguments))}return je(t,e),t.prototype.getImageForSize=function(e){for(var t=0;t=e)break}var r=n.imageOffsets,i=r[this.id],o=r[this.id+1];return i===o?null:(this._font.stream.pos=i,_s.decode(this._font.stream,{buflen:o-i}))},t.prototype.render=function(t,n){var r=this.getImageForSize(n);if(null!=r){var i=n/this._font.unitsPerEm;t.image(r.data,{height:n,x:r.originX,y:(this.bbox.minY-r.originY)*i})}this._font.sbix.flags.renderOutlines&&e.prototype.render.call(this,t,n)},t}(Cs),ks=function e(t,n){Oe(this,e),this.glyph=t,this.color=n},Ps=function(e){function t(){return Oe(this,t),ze(this,e.apply(this,arguments))}return je(t,e),t.prototype._getBBox=function(){for(var e=new xi,t=0;t=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o,s=a.glyph,u=a.color;e.fillColor([u.red,u.green,u.blue],u.alpha/255*100),s.render(e,t)}},Le(t,[{key:"layers",get:function(){for(var e=this._font.CPAL,t=this._font.COLR,n=0,r=t.baseGlyphRecord.length-1;n<=r;){var i=n+r>>1,o=t.baseGlyphRecord[i];if(this.ido.gid)){var a=o;break}n=i+1}}if(null==a){var s=this._font._getBaseGlyph(this.id);return[new ks(s,M={red:0,green:0,blue:0,alpha:255})]}for(var u=[],c=a.firstLayerIndex;c=1&&t[n]=n.glyphCount)){var r=n.offsets[e];if(r!==n.offsets[e+1]){var i=this.font.stream;if(i.pos=r,!(i.pos>=i.length)){var o=i.readUInt16BE(),a=r+i.readUInt16BE();if(32768&o){var s=i.pos;i.pos=a;var u=this.decodePoints();a=i.pos,i.pos=s}var c=t.map((function(e){return e.copy()}));o&=4095;for(var M=0;M=n.globalCoordCount)throw new Error("Invalid gvar table");d=n.globalCoords[4095&l]}if(16384&l){for(var f=[],p=0;pMath.max(0,t[s]))return 0;a=(a*i[s]+Number.EPSILON)/(t[s]+Number.EPSILON)}else{if(i[s]r[s])return 0;a=i[s]o)){var s=r,u=r;for(r++;r<=o;)n[r]&&(this.deltaInterpolate(u+1,r-1,u,r,t,e),u=r),r++;u===s?this.deltaShift(i,o,u,t,e):(this.deltaInterpolate(u+1,o,u,s,t,e),s>0&&this.deltaInterpolate(i,s-1,u,s,t,e)),r=o+1}}},e.prototype.deltaInterpolate=function(e,t,n,r,i,o){if(!(e>t))for(var a=["x","y"],s=0;si[r][u]){var c=n;n=r,r=c}var M=i[n][u],m=i[r][u],l=o[n][u],d=o[r][u];if(M!==m||l===d)for(var h=M===m?0:(d-l)/(m-M),f=e;f<=t;f++){var p=i[f][u];p<=M?p+=l-M:p>=m?p+=d-m:p=l+(p-M)*h,o[f][u]=p}}},e.prototype.deltaShift=function(e,t,n,r,i){var o=i[n].x-r[n].x,a=i[n].y-r[n].y;if(0!==o||0!==a)for(var s=e;s<=t;s++)s!==n&&(i[s].x+=o,i[s].y+=a)},e.prototype.getAdvanceAdjustment=function(e,t){var n=void 0,r=void 0;if(t.advanceWidthMapping){var i=e;i>=t.advanceWidthMapping.mapCount&&(i=t.advanceWidthMapping.mapCount-1);t.advanceWidthMapping.entryFormat;var o=t.advanceWidthMapping.mapData[i];n=o.outerIndex,r=o.innerIndex}else n=0,r=e;return this.getDelta(t.itemVariationStore,n,r)},e.prototype.getDelta=function(e,t,n){if(t>=e.itemVariationData.length)return 0;var r=e.itemVariationData[t];if(n>=r.deltaSets.length)return 0;for(var i=r.deltaSets[n],o=this.getBlendVector(e,t),a=0,s=0;sM.peakCoord||M.peakCoord>M.endCoord||M.startCoord<0&&M.endCoord>0&&0!==M.peakCoord||0===M.peakCoord?1:r[c]M.endCoord?0:r[c]===M.peakCoord?1:r[c]=0&&e<=255?1:2},e.encode=function(e,t){t>=0&&t<=255?e.writeUInt8(t):e.writeInt16BE(t)},e}(),Bs=new(_().Struct)({numberOfContours:_().int16,xMin:_().int16,yMin:_().int16,xMax:_().int16,yMax:_().int16,endPtsOfContours:new(_().Array)(_().uint16,"numberOfContours"),instructions:new(_().Array)(_().uint8,_().uint16),flags:new(_().Array)(_().uint8,0),xPoints:new(_().Array)(Rs,0),yPoints:new(_().Array)(Rs,0)}),Ds=function(){function e(){Oe(this,e)}return e.prototype.encodeSimple=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=[],i=[],o=[],a=0,s=0,u=0,c=0,M=0,m=0;m0&&(o.push(a),a=0),o.push(p),c=p),s=h,u=f,M++}"closePath"===l.command&&n.push(M-1)}e.commands.length>1&&"closePath"!==e.commands[e.commands.length-1].command&&n.push(M-1);var v=e.bbox,b={numberOfContours:n.length,xMin:v.minX,yMin:v.minY,xMax:v.maxX,yMax:v.maxY,endPtsOfContours:n,instructions:t,flags:o,xPoints:r,yPoints:i},w=Bs.size(b),S=4-w%4,C=new(_().EncodeStream)(w+S);return Bs.encode(C,b),0!==S&&C.fill(0,S),C.buffer},e.prototype._encodePoint=function(e,t,n,r,i,o){var a=e-t;return e===t?r|=o:(-255<=a&&a<=255&&(r|=i,a<0?a=-a:r|=o),n.push(a)),r},e}(),Fs=function(e){function t(n){Oe(this,t);var r=ze(this,e.call(this,n));return r.glyphEncoder=new Ds,r}return je(t,e),t.prototype._addGlyph=function(e){var t=this.font.getGlyph(e),n=t._decode(),r=this.font.loca.offsets[e],i=this.font.loca.offsets[e+1],o=this.font._getTableStream("glyf");o.pos+=r;var a=o.readBuffer(i-r);if(n&&n.numberOfContours<0){a=Buffer.from(a);var s=n.components,u=Array.isArray(s),c=0;for(s=u?s:s[Symbol.iterator]();;){var M;if(u){if(c>=s.length)break;M=s[c++]}else{if((c=s.next()).done)break;M=c.value}var m=M;e=this.includeGlyph(m.glyphID),a.writeUInt16BE(e,m.pos)}}else n&&this.font._variationProcessor&&(a=this.glyphEncoder.encodeSimple(t.path,n.instructions));return this.glyf.push(a),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:t.advanceWidth,bearing:t._getMetrics().leftBearing}),this.offset+=a.length,this.glyf.length-1},t.prototype.encode=function(e){this.glyf=[],this.offset=0,this.loca={offsets:[]},this.hmtx={metrics:[],bearings:[]};for(var t=0;t=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;this.charstrings.push(this.cff.getCharString(o));var a=this.font.getGlyph(o);a.path;for(var s in a._usedGsubrs)e[s]=!0}this.gsubrs=this.subsetSubrs(this.cff.globalSubrIndex,e)},t.prototype.subsetSubrs=function(e,t){for(var n=[],r=0;r=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,u=this.cff.fdForGlyph(s);if(null!=u){t[u]||(e.FDArray.push(Object.assign({},this.cff.topDict.FDArray[u])),n.push({})),t[u]=!0,e.FDSelect.fds.push(e.FDArray.length-1);var c=this.font.getGlyph(s);c.path;for(var M in c._usedSubrs)n[n.length-1][M]=!0}}for(var m=0;m=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o,s=this.font.getGlyph(a);s.path;for(var u in s._usedSubrs)t[u]=!0}var c=Object.assign({},this.cff.topDict.Private);return this.cff.topDict.Private&&this.cff.topDict.Private.Subrs&&(c.Subrs=this.subsetSubrs(this.cff.topDict.Private.Subrs,t)),e.FDArray=[{Private:c}],e.FDSelect={version:3,nRanges:1,ranges:[{first:0,fd:0}],sentinel:this.charstrings.length}},t.prototype.addString=function(e){return e?(this.strings||(this.strings=[]),this.strings.push(e),Ze.length+this.strings.length-1):null},t.prototype.encode=function(e){this.subsetCharstrings();var t={version:this.charstrings.length>255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},n=Object.assign({},this.cff.topDict);n.Private=null,n.charset=t,n.Encoding=null,n.CharStrings=this.charstrings;for(var r=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"],i=0;i1&&void 0!==arguments[1]?arguments[1]:null;for(var r in Oe(this,e),this.stream=t,this.variationCoords=n,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory(),this.directory.tables){var i=this.directory.tables[r];_i[r]&&i.length>0&&Object.defineProperty(this,r,{get:this._getTable.bind(this,i)})}}return e.probe=function(e){var t=e.toString("ascii",0,4);return"true"===t||"OTTO"===t||t===String.fromCharCode(0,1,0,0)},e.prototype._getTable=function(e){if(!(e.tag in this._tables))try{this._tables[e.tag]=this._decodeTable(e)}catch(t){re.logErrors&&(console.error("Error decoding table "+e.tag),console.error(t.stack))}return this._tables[e.tag]},e.prototype._getTableStream=function(e){var t=this.directory.tables[e];return t?(this.stream.pos=t.offset,this.stream):null},e.prototype._decodeDirectory=function(){return this.directory=Pi.decode(this.stream,{_startOffset:0})},e.prototype._decodeTable=function(e){var t=this.stream.pos,n=this._getTableStream(e.tag),r=_i[e.tag].decode(n,this,e.length);return this.stream.pos=t,r},e.prototype.getName=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=this.name.records[e];return n?n[t]:null},e.prototype.hasGlyphForCodePoint=function(e){return!!this._cmapProcessor.lookup(e)},e.prototype.glyphForCodePoint=function(e){return this.getGlyph(this._cmapProcessor.lookup(e),[e])},e.prototype.glyphsForString=function(e){for(var t=[],n=e.length,r=0,i=-1,o=-1;r<=n;){var a=0,s=0;if(r1&&void 0!==arguments[1]?arguments[1]:[];return this._glyphs[e]||(this.directory.tables.glyf?this._glyphs[e]=new Cs(e,t,this):(this.directory.tables["CFF "]||this.directory.tables.CFF2)&&(this._glyphs[e]=new As(e,t,this))),this._glyphs[e]||null},e.prototype.getGlyph=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this._glyphs[e]||(this.directory.tables.sbix?this._glyphs[e]=new Hs(e,t,this):this.directory.tables.COLR&&this.directory.tables.CPAL?this._glyphs[e]=new Ps(e,t,this):this._getBaseGlyph(e,t)),this._glyphs[e]||null},e.prototype.createSubset=function(){return this.directory.tables["CFF "]?new Is(this):new Fs(this)},e.prototype.getVariation=function(t){if(!this.directory.tables.fvar||!(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if("string"===typeof t&&(t=this.namedVariations[t]),"object"!==("undefined"===typeof t?"undefined":xe(t)))throw new Error("Variation settings must be either a variation name or settings object.");var n=this.fvar.axis.map((function(e,n){var r=e.axisTag.trim();return r in t?Math.max(e.minValue,Math.min(e.maxValue,t[r])):e.defaultValue})),r=new(_().DecodeStream)(this.stream.buffer);r.pos=this._directoryPos;var i=new e(r,n);return i._tables=this._tables,i},e.prototype.getFont=function(e){return this.getVariation(e)},Le(e,[{key:"postscriptName",get:function(){var e=this.name.records.postscriptName;return e?e[Object.keys(e)[0]]:null}},{key:"fullName",get:function(){return this.getName("fullName")}},{key:"familyName",get:function(){return this.getName("fontFamily")}},{key:"subfamilyName",get:function(){return this.getName("fontSubfamily")}},{key:"copyright",get:function(){return this.getName("copyright")}},{key:"version",get:function(){return this.getName("version")}},{key:"ascent",get:function(){return this.hhea.ascent}},{key:"descent",get:function(){return this.hhea.descent}},{key:"lineGap",get:function(){return this.hhea.lineGap}},{key:"underlinePosition",get:function(){return this.post.underlinePosition}},{key:"underlineThickness",get:function(){return this.post.underlineThickness}},{key:"italicAngle",get:function(){return this.post.italicAngle}},{key:"capHeight",get:function(){var e=this["OS/2"];return e?e.capHeight:this.ascent}},{key:"xHeight",get:function(){var e=this["OS/2"];return e?e.xHeight:0}},{key:"numGlyphs",get:function(){return this.maxp.numGlyphs}},{key:"unitsPerEm",get:function(){return this.head.unitsPerEm}},{key:"bbox",get:function(){return Object.freeze(new xi(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}},{key:"_cmapProcessor",get:function(){return new Di(this.cmap)}},{key:"characterSet",get:function(){return this._cmapProcessor.getCharacterSet()}},{key:"_layoutEngine",get:function(){return new Ms(this)}},{key:"availableFeatures",get:function(){return this._layoutEngine.getAvailableFeatures()}},{key:"variationAxes",get:function(){var e={};if(!this.fvar)return e;var t=this.fvar.axis,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;e[o.axisTag.trim()]={name:o.name.en,min:o.minValue,default:o.defaultValue,max:o.maxValue}}return e}},{key:"namedVariations",get:function(){var e={};if(!this.fvar)return e;var t=this.fvar.instance,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}for(var o=i,a={},s=0;s=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;e[o.tag]=o}this.tables=e};var zs=function(e){function t(){return Oe(this,t),ze(this,e.apply(this,arguments))}return je(t,e),t.probe=function(e){return"wOFF"===e.toString("ascii",0,4)},t.prototype._decodeDirectory=function(){this.directory=js.decode(this.stream,{_startOffset:0})},t.prototype._getTableStream=function(e){var t=this.directory.tables[e];if(t){if(this.stream.pos=t.offset,t.compLength=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i,a=new(_().DecodeStream)(this.stream.buffer);a.pos=o;var s=new Os(a);if(s.postscriptName===e)return s}return null},Le(e,[{key:"fonts",get:function(){var e=[],t=this.header.offsets,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i,a=new(_().DecodeStream)(this.stream.buffer);a.pos=o,e.push(new Os(a))}return e}}]),e}(),Ws=new(_().String)(_().uint8),Us=(new(_().Struct)({len:_().uint32,buf:new(_().Buffer)("len")}),new(_().Struct)({id:_().uint16,nameOffset:_().int16,attr:_().uint8,dataOffset:_().uint24,handle:_().uint32})),Xs=new(_().Struct)({name:new(_().String)(4),maxTypeIndex:_().uint16,refList:new(_().Pointer)(_().uint16,new(_().Array)(Us,(function(e){return e.maxTypeIndex+1})),{type:"parent"})}),Js=new(_().Struct)({length:_().uint16,types:new(_().Array)(Xs,(function(e){return e.length+1}))}),Ks=new(_().Struct)({reserved:new(_().Reserved)(_().uint8,24),typeList:new(_().Pointer)(_().uint16,Js),nameListOffset:new(_().Pointer)(_().uint16,"void")}),Ys=new(_().Struct)({dataOffset:_().uint32,map:new(_().Pointer)(_().uint32,Ks),dataLength:_().uint32,mapLength:_().uint32}),Zs=function(){function e(t){Oe(this,e),this.stream=t,this.header=Ys.decode(this.stream);var n=this.header.map.typeList.types,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o,s=a.refList,u=Array.isArray(s),c=0;for(s=u?s:s[Symbol.iterator]();;){var M;if(u){if(c>=s.length)break;M=s[c++]}else{if((c=s.next()).done)break;M=c.value}var m=M;m.nameOffset>=0?(this.stream.pos=m.nameOffset+this.header.map.nameListOffset,m.name=Ws.decode(this.stream)):m.name=null}"sfnt"===a.name&&(this.sfnt=a)}}return e.probe=function(e){var t=new(_().DecodeStream)(e);try{var n=Ys.decode(t)}catch(s){return!1}var r=n.map.typeList.types,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}if("sfnt"===a.name)return!0}return!1},e.prototype.getFont=function(e){if(!this.sfnt)return null;var t=this.sfnt.refList,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i,a=this.header.dataOffset+o.dataOffset+4,s=new(_().DecodeStream)(this.stream.buffer.slice(a)),u=new Os(s);if(u.postscriptName===e)return u}return null},Le(e,[{key:"fonts",get:function(){var e=[],t=this.sfnt.refList,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i,a=this.header.dataOffset+o.dataOffset+4,s=new(_().DecodeStream)(this.stream.buffer.slice(a));e.push(new Os(s))}return e}}]),e}();re.registerFormat(Os),re.registerFormat(zs),re.registerFormat(Gs),re.registerFormat(Zs);var Vs=re,$s=n(4235),qs=n.n($s),eu=function(){function e(e,t){for(var n=0;n0)for(r=0,a=0<=(s=u);a?rs;a?r++:r--)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":var c=this.read(o),M=c.indexOf(0),m=String.fromCharCode.apply(String,tu(Array.from(c.slice(0,M)||[])));this.text[m]=String.fromCharCode.apply(String,tu(Array.from(c.slice(M+1)||[])));break;case"IEND":this.colors=function(){switch(n.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}(),this.hasAlphaChannel=[4,6].includes(this.colorType);var l=this.colors+(this.hasAlphaChannel?1:0);return this.pixelBitlength=this.bits*l,this.colorSpace=function(){switch(n.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}(),void(this.imgData=new Buffer(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return eu(e,null,[{key:"decode",value:function(e,t){throw new Error("PNG.decode not available in browser build")}},{key:"load",value:function(e){throw new Error("PNG.load not available in browser build")}}]),eu(e,[{key:"read",value:function(e){var t=this;return function(e,t,n){for(var r=[],i=eo;i?a++:a--)r.push(a);return r}(0,e,!1).map((function(e){return t.data[t.pos++]}))}},{key:"readUInt32",value:function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]}},{key:"readUInt16",value:function(){return this.data[this.pos++]<<8|this.data[this.pos++]}},{key:"decodePixels",value:function(e){var t=this;return C().inflate(this.imgData,(function(n,r){if(n)throw n;for(var i=t.pixelBitlength/8,o=i*t.width,a=new Buffer(o*t.height),s=r.length,u=0,c=0,M=0;c1){var n=e[0],r=e[e.length-1];t.push(" /Limits "+pu.convert([new String(n),new String(r)]))}t.push(" /Names [");var i=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;t.push(" "+pu.convert(new String(c))+" "+pu.convert(this._items[c]))}}catch(pl){o=!0,a=pl}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return t.push("]"),t.push(">>"),t.join("\n")}}]),e}(),du=/[\n\r\t\b\f\(\)\\]/g,hu={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},fu=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},pu=function(){function e(){iu(this,e)}return ou(e,null,[{key:"convert",value:function(t){if("string"===typeof t)return"/"+t;if(t instanceof String){for(var n=t,r=!1,i=0,o=n.length;i127){r=!0;break}return r&&(n=function(e){var t=e.length;if(1&t)throw new Error("Buffer length must be even");for(var n=0,r=t-1;n";if(t instanceof mu||t instanceof lu)return t.toString();if(t instanceof Date)return"(D:"+fu(t.getUTCFullYear(),4)+fu(t.getUTCMonth()+1,2)+fu(t.getUTCDate(),2)+fu(t.getUTCHours(),2)+fu(t.getUTCMinutes(),2)+fu(t.getUTCSeconds(),2)+"Z)";if(Array.isArray(t))return"["+Array.from(t).map((function(t){return e.convert(t)})).join(" ")+"]";if("[object Object]"==={}.toString.call(t)){var a=["<<"];for(var s in t){var u=t[s];a.push("/"+s+" "+e.convert(u))}return a.push(">>"),a.join("\n")}return"number"===typeof t?e.number(t):""+t}},{key:"number",value:function(e){if(e>-1e21&&e<1e21)return Math.round(1e6*e)/1e6;throw new Error("unsupported number: "+e)}}]),e}(),yu={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},gu=function(){function e(t,n){var r=this;iu(this,e),this.document=t,null==n&&(n={}),this.size=n.size||"letter",this.layout=n.layout||"portrait";var i=Array.isArray(this.size)?this.size:yu[this.size.toUpperCase()];this.width=i["portrait"===this.layout?0:1],this.height=i["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),Object.defineProperties(this,{fonts:{get:function(){return null!=r.resources.data.Font?r.resources.data.Font:r.resources.data.Font={}}},xobjects:{get:function(){return null!=r.resources.data.XObject?r.resources.data.XObject:r.resources.data.XObject={}}},ext_gstates:{get:function(){return null!=r.resources.data.ExtGState?r.resources.data.ExtGState:r.resources.data.ExtGState={}}},patterns:{get:function(){return null!=r.resources.data.Pattern?r.resources.data.Pattern:r.resources.data.Pattern={}}},annotations:{get:function(){return null!=r.dictionary.data.Annots?r.dictionary.data.Annots:r.dictionary.data.Annots=[]}}}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources})}return ou(e,[{key:"maxY",value:function(){return this.height}},{key:"write",value:function(e){return this.content.write(e)}},{key:"end",value:function(){return this.dictionary.end(),this.resources.end(),this.content.end()}}]),e}(),Eu=pu.number,vu=function(){function e(t){iu(this,e),this.doc=t,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}return ou(e,[{key:"stop",value:function(e,t,n){if(null==n&&(n=1),t=this.doc._normalizeColor(t),0===this.stops.length)if(3===t.length)this._colorSpace="DeviceRGB";else if(4===t.length)this._colorSpace="DeviceCMYK";else{if(1!==t.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==t.length||"DeviceCMYK"===this._colorSpace&&4!==t.length||"DeviceGray"===this._colorSpace&&1!==t.length)throw new Error("All gradient stops must use the same color space");return n=Math.max(0,Math.min(1,n)),this.stops.push([e,t,n]),this}},{key:"setTransform",value:function(e,t,n,r,i,o){return this.transform=[e,t,n,r,i,o],this}},{key:"embed",value:function(e){var t=void 0,n=this.stops.length;if(0!==n){this.embedded=!0,this.matrix=e;var r=this.stops[n-1];r[0]<1&&this.stops.push([1,r[1],r[2]]);for(var i=[],o=[],a=[],s=0;s>16,n>>8&255,255&n]}else _u[e]&&(e=_u[e]);return Array.isArray(e)?(3===e.length?e=function(){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=Array.from(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)t=a.value,n.push(t/255)}catch(pl){i=!0,o=pl}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}():4===e.length&&(e=function(){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=Array.from(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)t=a.value,n.push(t/100)}catch(pl){i=!0,o=pl}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}()),e):null},_setColor:function(e,t){if(!(e=this._normalizeColor(e)))return!1;var n=t?"SCN":"scn";if(e instanceof wu)this._setColorSpace("Pattern",t),e.apply(n);else{var r=4===e.length?"DeviceCMYK":"DeviceRGB";this._setColorSpace(r,t),e=e.join(" "),this.addContent(e+" "+n)}return!0},_setColorSpace:function(e,t){var n=t?"CS":"cs";return this.addContent("/"+e+" "+n)},fillColor:function(e,t){return this._setColor(e,!1)&&this.fillOpacity(t),this._fillColor=[e,t],this},strokeColor:function(e,t){return this._setColor(e,!0)&&this.strokeOpacity(t),this},opacity:function(e){return this._doOpacity(e,e),this},fillOpacity:function(e){return this._doOpacity(e,null),this},strokeOpacity:function(e){return this._doOpacity(null,e),this},_doOpacity:function(e,t){var n=void 0,r=void 0;if(null!=e||null!=t){null!=e&&(e=Math.max(0,Math.min(1,e))),null!=t&&(t=Math.max(0,Math.min(1,t)));var i=e+"_"+t;if(this._opacityRegistry[i]){var o=Array.from(this._opacityRegistry[i]),a=cu(o,2);n=a[0],r=a[1]}else{n={Type:"ExtGState"},null!=e&&(n.ca=e),null!=t&&(n.CA=t),(n=this.ref(n)).end(),r="Gs"+ ++this._opacityCount,this._opacityRegistry[i]=[n,r]}return this.page.ext_gstates[r]=n,this.addContent("/"+r+" gs")}},linearGradient:function(e,t,n,r){return new Su(this,e,t,n,r)},radialGradient:function(e,t,n,r,i,o){return new Cu(this,e,t,n,r,i,o)}},_u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Hu=function(){var e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0;return(Hu=function(){function u(){iu(this,u)}return ou(u,null,[{key:"initClass",value:function(){var u=void 0,c=void 0,M=void 0,m=void 0,l=void 0;e={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},t=function(t){var n=void 0,r=[],i=[],o="",a=!1,s=0,u=!0,c=!1,M=void 0;try{for(var m,l=Array.from(t)[Symbol.iterator]();!(u=(m=l.next()).done);u=!0){var d=m.value;if(null!=e[d])s=e[d],n&&(o.length>0&&(i[i.length]=+o),r[r.length]={cmd:n,args:i},i=[],o="",a=!1),n=d;else if([" ",","].includes(d)||"-"===d&&o.length>0&&"e"!==o[o.length-1]||"."===d&&a){if(0===o.length)continue;i.length===s?(r[r.length]={cmd:n,args:i},i=[+o],"M"===n&&(n="L"),"m"===n&&(n="l")):i[i.length]=+o,a="."===d,o=["-","."].includes(d)?d:""}else o+=d,"."===d&&(a=!0)}}catch(pl){c=!0,M=pl}finally{try{!u&&l.return&&l.return()}finally{if(c)throw M}}return o.length>0&&(i.length===s?(r[r.length]={cmd:n,args:i},i=[+o],"M"===n&&(n="L"),"m"===n&&(n="l")):i[i.length]=+o),r[r.length]={cmd:n,args:i},r},n=u=c=M=m=l=0,r=function(e,t){n=u=c=M=m=l=0;for(var r=0;r1&&(n*=h=Math.sqrt(h),r*=h);var f=d/n,p=l/n,y=-l/r,g=d/r,E=f*s+p*u,v=y*s+g*u,b=f*e+p*t,w=y*e+g*t,S=1/((b-E)*(b-E)+(w-v)*(w-v))-.25;S<0&&(S=0);var C=Math.sqrt(S);o===i&&(C=-C);var A=.5*(E+b)-C*(w-v),_=.5*(v+w)+C*(b-E),H=Math.atan2(v-_,E-A),k=Math.atan2(w-_,b-A)-H;k<0&&1===o?k+=2*Math.PI:k>0&&0===o&&(k-=2*Math.PI);for(var P=Math.ceil(Math.abs(k/(.5*Math.PI+.001))),N=[],T=0,R=P,B=0<=R;B?TR;B?T++:T--){var D=H+T*k/P,F=H+(T+1)*k/P;N[T]=[A,_,D,F,n,r,l,d]}return N},s=function(e,t,n,r,i,o,a,s){var u=s*i,c=-a*o,M=a*i,m=s*o,l=.5*(r-n),d=8/3*Math.sin(.5*l)*Math.sin(.5*l)/Math.sin(l),h=e+Math.cos(n)-d*Math.sin(n),f=t+Math.sin(n)+d*Math.cos(n),p=e+Math.cos(r),y=t+Math.sin(r),g=p+d*Math.sin(r),E=y-d*Math.cos(r);return[u*h+c*f,M*h+m*f,u*g+c*E,M*g+m*E,u*p+c*y,M*p+m*y]}}},{key:"apply",value:function(e,n){var i=t(n);return r(i,e)}}]),u}()).initClass(),Hu}(),ku=Hu,Pu=(Math.sqrt(2)-1)/3*4,Nu={initVector:function(){return this._ctm=[1,0,0,1,0,0],this._ctmStack=[]},save:function(){return this._ctmStack.push(this._ctm.slice()),this.addContent("q")},restore:function(){return this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0],this.addContent("Q")},closePath:function(){return this.addContent("h")},lineWidth:function(e){return this.addContent(pu.number(e)+" w")},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap:function(e){return"string"===typeof e&&(e=this._CAP_STYLES[e.toUpperCase()]),this.addContent(e+" J")},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin:function(e){return"string"===typeof e&&(e=this._JOIN_STYLES[e.toUpperCase()]),this.addContent(e+" j")},miterLimit:function(e){return this.addContent(pu.number(e)+" M")},dash:function(e,t){var n=void 0;if(null==t&&(t={}),null==e)return this;if(Array.isArray(e))return e=Array.from(e).map((function(e){return pu.number(e)})).join(" "),n=t.phase||0,this.addContent("["+e+"] "+pu.number(n)+" d");var r=null!=t.space?t.space:e;return n=t.phase||0,this.addContent("["+pu.number(e)+" "+pu.number(r)+"] "+pu.number(n)+" d")},undash:function(){return this.addContent("[] 0 d")},moveTo:function(e,t){return this.addContent(pu.number(e)+" "+pu.number(t)+" m")},lineTo:function(e,t){return this.addContent(pu.number(e)+" "+pu.number(t)+" l")},bezierCurveTo:function(e,t,n,r,i,o){return this.addContent(pu.number(e)+" "+pu.number(t)+" "+pu.number(n)+" "+pu.number(r)+" "+pu.number(i)+" "+pu.number(o)+" c")},quadraticCurveTo:function(e,t,n,r){return this.addContent(pu.number(e)+" "+pu.number(t)+" "+pu.number(n)+" "+pu.number(r)+" v")},rect:function(e,t,n,r){return this.addContent(pu.number(e)+" "+pu.number(t)+" "+pu.number(n)+" "+pu.number(r)+" re")},roundedRect:function(e,t,n,r,i){null==i&&(i=0);var o=(i=Math.min(i,.5*n,.5*r))*(1-Pu);return this.moveTo(e+i,t),this.lineTo(e+n-i,t),this.bezierCurveTo(e+n-o,t,e+n,t+o,e+n,t+i),this.lineTo(e+n,t+r-i),this.bezierCurveTo(e+n,t+r-o,e+n-o,t+r,e+n-i,t+r),this.lineTo(e+i,t+r),this.bezierCurveTo(e+o,t+r,e,t+r-o,e,t+r-i),this.lineTo(e,t+i),this.bezierCurveTo(e,t+o,e+o,t,e+i,t),this.closePath()},ellipse:function(e,t,n,r){null==r&&(r=n);var i=n*Pu,o=r*Pu,a=(e-=n)+2*n,s=(t-=r)+2*r,u=e+n,c=t+r;return this.moveTo(e,c),this.bezierCurveTo(e,c-o,u-i,t,u,t),this.bezierCurveTo(u+i,t,a,c-o,a,c),this.bezierCurveTo(a,c+o,u+i,s,u,s),this.bezierCurveTo(u-i,s,e,c+o,e,c),this.closePath()},circle:function(e,t,n){return this.ellipse(e,t,n)},arc:function(e,t,n,r,i,o){null==o&&(o=!1);var a=2*Math.PI,s=.5*Math.PI,u=i-r;if(Math.abs(u)>a)u=a;else if(0!==u&&o!==u<0){u=(o?-1:1)*a+u}var c=Math.ceil(Math.abs(u)/s),M=u/c,m=M/s*Pu*n,l=r,d=-Math.sin(l)*m,h=Math.cos(l)*m,f=e+Math.cos(l)*n,p=t+Math.sin(l)*n;this.moveTo(f,p);for(var y=0,g=c,E=0<=g;E?yg;E?y++:y--){var v=f+d,b=p+h;l+=M,f=e+Math.cos(l)*n,p=t+Math.sin(l)*n;var w=f-(d=-Math.sin(l)*m),S=p-(h=Math.cos(l)*m);this.bezierCurveTo(v,b,w,S,f,p)}return this},polygon:function(){for(var e=arguments.length,t=Array(e),n=0;no;i?a++:a--)r.push(a);return r},Ru={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},Bu=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n\nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n\nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n\ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n\nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n\nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n\nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n\nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/),Du=function(){function e(t){var n=this;iu(this,e),this.contents=t,this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(),this.charWidths=Tu(0,255,!0).map((function(e){return n.glyphWidths[Bu[e]]})),this.bbox=Array.from(this.attributes.FontBBox.split(/\s+/)).map((function(e){return+e})),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}return ou(e,null,[{key:"open",value:function(e){throw new Error("AFMFont.open not available on browser build")}}]),ou(e,[{key:"parse",value:function(){var e="",t=!0,n=!1,r=void 0;try{for(var i,o=Array.from(this.contents.split("\n"))[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a,s,u=i.value;if(a=u.match(/^Start(\w+)/))e=a[1];else if(a=u.match(/^End(\w+)/))e="";else switch(e){case"FontMetrics":var c=(a=u.match(/(^\w+)\s+(.*)/))[1],M=a[2];(s=this.attributes[c])?(Array.isArray(s)||(s=this.attributes[c]=[s]),s.push(M)):this.attributes[c]=M;break;case"CharMetrics":if(!/^CH?\s/.test(u))continue;var m=u.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[m]=+u.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(a=u.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[a[1]+"\0"+a[2]]=parseInt(a[3]))}}}catch(pl){n=!0,r=pl}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"encodeText",value:function(e){for(var t=[],n=0,r=e.length,i=0<=r;i?nr;i?n++:n--){var o=e.charCodeAt(n);o=Ru[o]||o,t.push(o.toString(16))}return t}},{key:"glyphsForString",value:function(e){for(var t=[],n=0,r=e.length,i=0<=r;i?nr;i?n++:n--){var o=e.charCodeAt(n);t.push(this.characterToGlyph(o))}return t}},{key:"characterToGlyph",value:function(e){return Bu[Ru[e]||e]||".notdef"}},{key:"widthOfGlyph",value:function(e){return this.glyphWidths[e]||0}},{key:"getKernPair",value:function(e,t){return this.kernPairs[e+"\0"+t]||0}},{key:"advancesForGlyphs",value:function(e){for(var t=[],n=0;n>8,r=0;this.font.post.isFixedPitch&&(r|=1),1<=n&&n<=7&&(r|=2),r|=4,10===n&&(r|=8),this.font.head.macStyle.italic&&(r|=64);var i=[0,1,2,3,4,5].map((function(e){return String.fromCharCode(26*Math.random()+65)})).join("")+"+"+this.font.postscriptName,o=this.font.bbox,a=this.document.ref({Type:"FontDescriptor",FontName:i,Flags:r,FontBBox:[o.minX*this.scale,o.minY*this.scale,o.maxX*this.scale,o.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});e?a.data.FontFile3=t:a.data.FontFile2=t,a.end();var s=this.document.ref({Type:"Font",Subtype:e?"CIDFontType0":"CIDFontType2",BaseFont:i,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:a,W:[0,this.widths]});return s.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:i,Encoding:"Identity-H",DescendantFonts:[s],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var e=this.document.ref(),t=[],n=!0,r=!1,i=void 0;try{for(var o,a=Array.from(this.unicode)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=[],c=!0,M=!1,m=void 0;try{for(var l,d=Array.from(s)[Symbol.iterator]();!(c=(l=d.next()).done);c=!0){var h=l.value;h>65535&&(h-=65536,u.push(Iu(h>>>10&1023|55296)),h=56320|1023&h),u.push(Iu(h)),t.push("<"+u.join(" ")+">")}}catch(pl){M=!0,m=pl}finally{try{!c&&d.return&&d.return()}finally{if(M)throw m}}}}catch(pl){r=!0,i=pl}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return e.end(" /CIDInit /ProcSet findresource begin\n 12 dict begin\n begincmap\n /CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n >> def\n /CMapName /Adobe-Identity-UCS def\n /CMapType 2 def\n 1 begincodespacerange\n <0000>\n endcodespacerange\n 1 beginbfrange\n <0000> <"+Iu(t.length-1)+"> ["+t.join(" ")+"]\n endbfrange\n endcmap\n CMapName currentdict /CMap defineresource pop\n end\n end "),e}}]),t}(e)}(xu),ju={initFonts:function(){return this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},this.font("Helvetica")},font:function(e,t,n){var r=void 0,i=void 0;if("number"===typeof t&&(n=t,t=null),"string"===typeof e&&this._registeredFonts[e]){r=e;var o=this._registeredFonts[e];e=o.src,t=o.family}else"string"!==typeof(r=t||e)&&(r=null);if(null!=n&&this.fontSize(n),i=this._fontFamilies[r])return this._font=i,this;var a="F"+ ++this._fontCount;return this._font=xu.open(this,e,t,a),(i=this._fontFamilies[this._font.name])?(this._font=i,this):(r&&(this._fontFamilies[r]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize:function(e){return this._fontSize=e,this},currentLineHeight:function(e){return null==e&&(e=!1),this._font.lineHeight(this._fontSize,e)},registerFont:function(e,t,n){return this._registeredFonts[e]={src:t,family:n},this}},zu={initText:function(){return this.x=0,this.y=0,this._lineGap=0},text:function(e,t,n,r){(r=this._initOptions(t,n,r)).wordSpacing&&(e=e.replace(/\s{2,}/g," "));for(var i=e.split("\n"),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"object"===("undefined"===typeof e?"undefined":ru(e))&&(n=e,e=null),e&&(this.x=e),t&&(this.y=t),n.columns=n.columns||0,n.columnGap=n.columnGap||18,n},_line:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._fragment(e,this.x,this.y,t)},_fragment:function(e,t,n,r){if(0!==(e=(""+e).replace(/\n/g,"")).length){null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref());var i=this._font.encode(e,r.features),o=cu(i,2),a=o[0],s=o[1];r.wordSpacing=r.wordSpacing||0,r.characterSpacing=r.characterSpacing||0,n=this.page.height-n-this._font.ascender/1e3*this._fontSize,this._glyphs(a,s,t,n,r)}},_addGlyphs:function(e,t,n,r,i){null==i&&(i={}),null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),r=this.page.height-r;var o=1e3/this._fontSize,a=1e3/(this._font.font.unitsPerEm||1e3),s=this._font.encodeGlyphs(e),u=t.map((function(t,n){return{xAdvance:t.xAdvance*o,yAdvance:t.yAdvance*o,xOffset:t.xOffset,yOffset:t.yOffset,advanceWidth:e[n].advanceWidth*a}}));return this._glyphs(s,u,n,r,i)},_glyphs:function(e,t,n,r,i){var o=this,a=void 0;this.save(),this.transform(1,0,0,-1,0,this.page.height),this.addContent("BT"),this.addContent("1 0 0 1 "+pu.number(n)+" "+pu.number(r)+" Tm"),this.addContent("/"+this._font.id+" "+pu.number(this._fontSize)+" Tf");var s=i.fill&&i.stroke?2:i.stroke?1:0;s&&this.addContent(s+" Tr"),i.characterSpacing&&this.addContent(pu.number(i.characterSpacing)+" Tc");var u=this._fontSize/1e3,c=[],M=0,m=!1,l=function(n){if(M "+pu.number(-i))}return M=n},d=function(e){if(l(e),c.length>0)return o.addContent("["+c.join(" ")+"] TJ"),c.length=0};for(a=0;a0&&void 0!==arguments[0]?arguments[0]:[];iu(this,e),this.pos=0,this.data=t,this.length=this.data.length}ou(e,[{key:"readByte",value:function(){return this.data[this.pos++]}},{key:"writeByte",value:function(e){return this.data[this.pos++]=e}},{key:"byteAt",value:function(e){return this.data[e]}},{key:"readBool",value:function(){return!!this.readByte()}},{key:"writeBool",value:function(e){return this.writeByte(e?1:0)}},{key:"readUInt32",value:function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()}},{key:"writeUInt32",value:function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)}},{key:"readInt32",value:function(){var e=this.readUInt32();return e>=2147483648?e-4294967296:e}},{key:"writeInt32",value:function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)}},{key:"readUInt16",value:function(){return this.readByte()<<8|this.readByte()}},{key:"writeUInt16",value:function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)}},{key:"readInt16",value:function(){var e=this.readUInt16();return e>=32768?e-65536:e}},{key:"writeInt16",value:function(e){return e<0&&(e+=65536),this.writeUInt16(e)}},{key:"readString",value:function(e){for(var t=[],n=0,r=e,i=0<=r;i?nr;i?n++:n--)t[n]=String.fromCharCode(this.readByte());return t.join("")}},{key:"writeString",value:function(e){var t=this;return Tu(0,e.length,!1).map((function(n){return t.writeByte(e.charCodeAt(n))}))}},{key:"stringAt",value:function(e,t){return this.pos=e,this.readString(t)}},{key:"readShort",value:function(){return this.readInt16()}},{key:"writeShort",value:function(e){return this.writeInt16(e)}},{key:"readLongLong",value:function(){var e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte();return 128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s}},{key:"writeLongLong",value:function(e){var t=Math.floor(e/4294967296),n=4294967295&e;return this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)}},{key:"readInt",value:function(){return this.readInt32()}},{key:"writeInt",value:function(e){return this.writeInt32(e)}},{key:"slice",value:function(e,t){return this.data.slice(e,t)}},{key:"read",value:function(e){for(var t=[],n=0,r=e,i=0<=r;i?nr;i?n++:n--)t.push(this.readByte());return t}},{key:"write",value:function(e){var t=this;return Array.from(e).map((function(e){return t.writeByte(e)}))}}])}(),[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487]),Gu=function(){function e(t,n){iu(this,e);var r=void 0;if(this.data=t,this.label=n,65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";for(var i=2;is?(m=u,l=u/M):(l=a,m=a*M)}else if(r.cover){var y=Array.from(r.cover),g=cu(y,2);s=(u=g[0])/(a=g[1]),(M=c.width/c.height)>s?(l=a,m=a*M):(m=u,l=u/M)}return(r.fit||r.cover)&&("center"===r.align?t=t+u/2-m/2:"right"===r.align&&(t=t+u-m),"center"===r.valign?n=n+a/2-l/2:"bottom"===r.valign&&(n=n+a-l)),null!=r.link&&this.link(t,n,m,l,r.link),null!=r.goTo&&this.goTo(t,n,m,l,r.goTo),null!=r.destination&&this.addNamedDestination(r.destination,"XYZ",t,n,null),this.y===n&&(this.y+=l),this.save(),this.transform(m,0,0,-l,t,n+l),this.addContent("/"+c.label+" Do"),this.restore(),this},openImage:function(e){var t=void 0;return"string"===typeof e&&(t=this._imageRegistry[e]),t||(t=Uu.open(e,"I"+ ++this._imageCount),"string"===typeof e&&(this._imageRegistry[e]=t)),t}},Ju={annotate:function(e,t,n,r,i){for(var o in i.Type="Annot",i.Rect=this._convertRect(e,t,n,r),i.Border=[0,0,0],"Link"!==i.Subtype&&null==i.C&&(i.C=this._normalizeColor(i.color||[0,0,0])),delete i.color,"string"===typeof i.Dest&&(i.Dest=new String(i.Dest)),i){var a=i[o];i[o[0].toUpperCase()+o.slice(1)]=a}var s=this.ref(i);return this.page.annotations.push(s),s.end(),this},note:function(e,t,n,r,i,o){return null==o&&(o={}),o.Subtype="Text",o.Contents=new String(i),o.Name="Comment",null==o.color&&(o.color=[243,223,92]),this.annotate(e,t,n,r,o)},goTo:function(e,t,n,r,i,o){return null==o&&(o={}),o.Subtype="Link",o.A=this.ref({S:"GoTo",D:new String(i)}),o.A.end(),this.annotate(e,t,n,r,o)},link:function(e,t,n,r,i,o){if(null==o&&(o={}),o.Subtype="Link","number"===typeof i){var a=this._root.data.Pages.data;if(!(i>=0&&i0&&void 0!==arguments[0]?arguments[0]:{};iu(this,t);var n=uu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));n.options=e,n.version=1.3,n.compress=!0,n._pageBuffer=[],n._pageBufferStart=0,n._offsets=[],n._waiting=0,n._ended=!1,n._offset=0;var r=n.ref({Dests:new lu});if(n._root=n.ref({Type:"Catalog",Pages:n.ref({Type:"Pages",Count:0,Kids:[]}),Names:r}),n.page=null,n.initColor(),n.initVector(),n.initFonts(),n.initText(),n.initImages(),n.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},n.options.info)for(var i in n.options.info){var o=n.options.info[i];n.info[i]=o}return n._write("%PDF-"+n.version),n._write("%\xff\xff\xff\xff"),!1!==n.options.autoFirstPage&&n.addPage(),n}return su(t,e),ou(t,[{key:"addPage",value:function(e){null==e&&(e=this.options),this.options.bufferPages||this.flushPages(),this.page=new gu(this,e),this._pageBuffer.push(this.page);var t=this._root.data.Pages.data;return t.Kids.push(this.page.dictionary),t.Count++,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this}},{key:"flushPages",value:function(){var e=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=e.length;var t=!0,n=!1,r=void 0;try{for(var i,o=Array.from(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.end()}}catch(pl){n=!0,r=pl}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"addNamedDestination",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;ri.top,a=i.presenceAhead||Tc(i);i&&o&&(n+=a(t-i.top))}return n},Bc=function e(t){var n=t.clone();return t.children&&t.children.length>0&&t.children.forEach((function(t){return n.appendChild(e(t))})),n},Dc=function(){var e=(0,Pc.Z)(kc().mark((function e(t,n,r){var i,o,a,s,u,c,M,m,l,d,h;return kc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=[],o=[],a=0;case 3:if(!(a0)){e.next=7;break}return e.next=5,Dc(s.children,r);case 5:e.sent.forEach((function(e){return t.appendChild(e)}));case 7:return s.onNodeSplit(r,t),i.push(t),e.abrupt("return","continue");case 10:case"end":return e.stop()}}),e,Nc)}))(),"t0",31);case 31:if("continue"!==e.t0){e.next=34;break}return e.abrupt("continue",34);case 34:a++,e.next=3;break;case 37:return o.forEach((function(e){return e.remove()})),e.abrupt("return",i);case 39:case"end":return e.stop()}}),e,Nc)})));return function(t,n,r){return e.apply(this,arguments)}}(),Fc=function(){var e=(0,Pc.Z)(kc().mark((function e(t,n,r){var i,o,a;return kc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Dc(t,n,r++);case 2:if(i=e.sent,(o=i[0])&&!o.isEmpty()){e.next=6;break}return e.abrupt("return",t);case 6:if(!(o.children.length>0&&o.children.every((function(e){return e.fixed})))){e.next=9;break}return e.abrupt("return",t);case 9:return e.next=11,Fc([o],n,r);case 11:return a=e.sent,e.abrupt("return",[].concat(t,a));case 13:case"end":return e.stop()}}),e,Nc)})));return function(t,n,r){return e.apply(this,arguments)}}(),Ic=function(){var e=(0,Pc.Z)(kc().mark((function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return kc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,Fc([Bc(t)],n,i);case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,Nc)})));return function(t,n){return e.apply(this,arguments)}}();var xc=function(){},Oc=function(){function e(){this.isDirty=!1,this.document=null,this.instance=null}var t=e.prototype;return t.appendChild=function(e){this.document=e},t.removeChild=function(){this.document.cleanup(),this.document=null},t.markDirty=function(){this.isDirty=!0},t.cleanup=function(){this.document.cleanup()},t.finish=function(){this.document.finish()},t.render=function(){var e=d()(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.instance=new Zu({autoFirstPage:!1}),e.next=3,this.document.render();case 3:this.cleanup(),this.isDirty=!1;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),v()(e,[{key:"name",get:function(){return"Root"}}]),e}(),Lc=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},jc=function(e){var t=function(e){return/((-)?\d+\.?\d*)%/g.exec(e)}(e);if(t){var n=parseFloat(t[1],10),r=n/100;return{value:n,percent:r,absValue:Math.abs(n),absPercent:Math.abs(r)}}return null},zc=$u().Config.create();zc.setPointScaleFactor(0);var Qc=function(){function e(){this.parent=null,this.children=[],this.computed=!1,this.layout=$u().Node.createWithConfig(zc)}var t=e.prototype;return t.appendChild=function(e){e&&(e.parent=this,this.children.push(e),this.layout.insertChild(e.layout,this.layout.getChildCount()))},t.appendChildBefore=function(e,t){var n=this.children.indexOf(t);-1!==n&&e&&(e.parent=this,this.children.splice(n,0,e),this.layout.insertChild(e.layout,n))},t.removeChild=function(e){var t=this.children.indexOf(e);-1!==t&&(e.parent=null,this.children.splice(t,1),this.layout.removeChild(e.layout)),e.cleanup()},t.removeAllChilds=function(){for(var e=[].concat(this.children),t=0;t0)){e.next=14;break}if(i=r.shift(),!(!n||n(i))||!i.props.render){e.next=11;break}return i.removeAllChilds(),o=i.props.render(t),e.next=9,this.addDynamicChild(i,o);case 9:return i.fixed||(i.props.render=null),e.abrupt("continue",1);case 11:i.children&&r.push.apply(r,i.children),e.next=1;break;case 14:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),n.nodeWillWrap=function(){var e=d()(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.renderDynamicNodes(t);case 2:this.calculateLayout();case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),n.onNodeSplit=function(e,t){t.marginTop=0,this.marginBottom=0,this.calculateLayout()},n.clone=function(){var t=e.prototype.clone.call(this);return t._size=this.size,t},n.update=function(t){e.prototype.update.call(this,t),this._size=null},n.render=function(){var e=d()(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.root.instance,this.isAutoHeight||(this.height=this.size.height),this.calculateLayout(),n=this.isAutoHeight?this.height:this.size.height,t.addPage({size:[this.size.width,n],margin:0}),UM(this),this.style.backgroundColor&&t.fillColor(this.style.backgroundColor).rect(0,0,this.size.width,n).fill(),e.next=9,this.renderChildren();case 9:this.props.debug&&this.debug(),this.renderRuler();case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),v()(t,[{key:"name",get:function(){return"Page"}},{key:"document",get:function(){return this.parent}},{key:"page",get:function(){return this}},{key:"orientation",get:function(){return this.props.orientation}},{key:"size",get:function(){return this._size||(this._size=function(e,t){var n;if(void 0===t&&(t="portrait"),"string"===typeof e)n=LM[e.toUpperCase()];else if(Array.isArray(e))n=e;else if("number"===typeof e)n=[e];else{if("object"!==typeof e||!e.width)throw new Error("Invalid Page size: "+e);n=[e.width,e.height]}return"portrait"===t?{width:n[0],height:n[1]}:{width:n[1],height:n[0]}}(this.props.size,this.orientation),this.hasHorizontalRuler()&&(this._size.width+=this.getRulerWidth()),this.hasVerticalRuler()&&(this._size.height+=this.getRulerWidth())),this._size}},{key:"isAutoHeight",get:function(){return"undefined"===typeof this.size.height}}]),t}(NM);XM.defaultProps={size:"A4",wrap:!0,orientation:"portrait"},Object.assign(XM.prototype,xM);var JM=function(e){function t(){return e.apply(this,arguments)||this}return i()(t,e),t.prototype.render=function(){var e=d()(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.root.instance.save(),this.applyTransformations(),this.drawBackgroundColor(),"hidden"===this.style.overflow&&this.clip(),e.next=6,this.renderChildren();case 6:this.drawBorders(),UM(this),this.props.debug&&this.debug(),this.root.instance.restore();case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),v()(t,[{key:"name",get:function(){return"View"}}]),t}(NM);JM.defaultProps={wrap:!0};var KM,YM,ZM=function(){var e=d()(m().mark((function e(t,n){var r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gc()(t,n);case 2:return r=e.sent,e.next=5,r.buffer?r.buffer():r.arrayBuffer();case 5:return i=e.sent,e.abrupt("return","Buffer"===i.constructor.name?i:Buffer.from(i));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),VM=function(e){var t=e.split(",")[0];return"data:"===t.substring(0,5)&&"base64"===t.split(";")[1]},$M=function(){function e(e,t,n,r,i){this.src=e,this.fontFamily=t,this.fontStyle=n||"normal",this.fontWeight=Vc(r)||400,this.data=null,this.loading=!1,this.options=i}return e.prototype.load=function(){var e=d()(m().mark((function e(){var t,n,r,i,o,a,s,u=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.loading=!0,t=this.options.postscriptName,!VM(this.src)){e.next=6;break}this.data=Vs.create(Buffer.from(this.src.split(",")[1],"base64"),t),e.next=17;break;case 6:return n=this.options,r=n.headers,i=n.body,o=n.method,a=void 0===o?"GET":o,e.next=10,ZM(this.src,{method:a,body:i,headers:r});case 10:s=e.sent,this.data=Vs.create(s,t),e.next=17;break;case 14:return e.next=16,new Promise((function(e,n){return Vs.open(u.src,t,(function(t,r){return t?n(t):e(r)}))}));case 16:this.data=e.sent;case 17:this.loading=!1;case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),e}(),qM=function(){function e(e){this.family=e,this.sources=[]}e.create=function(t){return new e(t)};var t=e.prototype;return t.register=function(e){var t=e.src,n=e.fontWeight,r=e.fontStyle,i=a()(e,["src","fontWeight","fontStyle"]);this.sources.push(new $M(t,this.fontFamily,r,n,i))},t.resolve=function(e){var t,n=e.fontWeight,r=void 0===n?400:n,i=e.fontStyle,o=void 0===i?"normal":i,a=this.sources.filter((function(e){return e.fontStyle===o})),s=a.find((function(e){return e.fontWeight===r}));if(s)return s;if(r>=400&&r<=500){var u=a.filter((function(e){return e.fontWeight<=r})),c=a.filter((function(e){return e.fontWeight>500}));t=a.filter((function(e){return e.fontWeight>=r&&e.fontWeight<500}))[0]||u[u.length-1]||c[0]}var M=a.filter((function(e){return e.fontWeightr}));if(r<400&&(t=M[M.length-1]||m[0]),r>500&&(t=m[0]||M[M.length-1]),!t)throw new Error("Could not resolve font for "+this.fontFamily+", fontWeight "+r);return t},e}(),em={registerEmojiSource:function(e){var t=e.url,n=e.format;KM={url:t,format:void 0===n?"png":n}},getEmojiSource:function(){return KM}},tm=["Courier","Courier-Bold","Courier-Oblique","Helvetica","Helvetica-Bold","Helvetica-Oblique","Times-Roman","Times-Bold","Times-Italic"],nm={registerHyphenationCallback:function(e){YM=e},getHyphenationCallback:function(){return YM}},rm={},im=function(e){var t=e.fontFamily;if(tm.includes(t))return null;if(!rm[t])throw new Error("Font family not registered: "+t+". Please register it calling Font.register() method.");return rm[t].resolve(e)},om=function(){var e=d()(m().mark((function e(t,n){var r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.fontFamily,!tm.includes(r)){e.next=4;break}return e.abrupt("return");case 4:if((i=im(t)).data||i.loading){e.next=8;break}return e.next=8,i.load();case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),am=u()({register:function(e,t){"object"===typeof e?t=e:(xc(!1,"Font.register will not longer accept the font source as first argument. Please move it into the data object. For more info refer to https://react-pdf.org/fonts"),t.src=e);var n=t.family;if(rm[n]||(rm[n]=qM.create(n)),t.fonts)for(var r=0;r=u.length)break;m=u[M++]}else{if((M=u.next()).done)break;m=M.value}var l=m,d="string"===typeof l.attributes.font?lm(l.attributes.font):l.attributes.font;if(0===t.length){s.push({start:0,end:0,attributes:{font:d}});break}var h=t.slice(l.start,l.end),f=Array.isArray(h),p=0;for(h=f?h:h[Symbol.iterator]();;){var y;if(f){if(p>=h.length)break;y=h[p++]}else{if((p=h.next()).done)break;y=p.value}var g=y,E=g.codePointAt(),v=dm(E,d)?mm():d,b=Mm(l);v===r&&b===i&&v.unitsPerEm===r.unitsPerEm||(r&&s.push({start:o,end:a,attributes:{font:r,scale:i/r.unitsPerEm}}),r=v,i=b,o=a),a+=g.length}}if(on&&delete r[i.shift()],r[e]=t},reset:function(){r={},i=[]},length:function(){return i.length}}}({limit:30}),Em=function(){var e=d()(m().mark((function e(t,n){var r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gc()(t,n);case 2:return r=e.sent,e.next=5,r.buffer?r.buffer():r.arrayBuffer();case 5:return i=e.sent,e.abrupt("return","Buffer"===i.constructor.name?i:Buffer.from(i));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function vm(e,t){switch(t.toLowerCase()){case"jpg":case"jpeg":return new ym(e);case"png":return new nu(e);default:return null}}var bm=function(e){var t=function(e){var t;return ym.isValid(e)?t="jpg":nu.isValid(e)&&(t="png"),t}(e);if(t)return new Promise((function(n){return n(vm(e,t))}))},wm=function(e){var t=137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]&&13===e[4]&&10===e[5]&&26===e[6]&&10===e[7],n=255===e[0]&&216===e[1]&&255===e[2],r="";if(t)r="png";else{if(!n)throw new Error("Not valid image extension");r="jpg"}return r},Sm=function(){var e=d()(m().mark((function e(t,n){var r,i,o,a,s,u,c;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.uri,i=t.body,o=t.headers,a=t.method,s=void 0===a?"GET":a,e.next=7;break;case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,Em(r,{body:i,headers:o,method:s});case 9:e.t0=e.sent;case 10:return u=e.t0,c=wm(u),e.abrupt("return",vm(u,c));case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Cm=function(e,t){var n,r=void 0===t?{}:t,i=r.cache,o=void 0===i||i,s=a()(r,["cache"]),u=e.data?e.data.toString():e.uri;if(o&&gm.get(u))return gm.get(u);if(!(n=function(e){var t=e.uri;return/^data:image\/[a-zA-Z]*;base64,[^"]*/g.test(t)}(e)?function(e){var t=e.uri,n=/^data:image\/([a-zA-Z]*);base64,([^"]*)/g.exec(t),r=n[1],i=n[2];if(!function(e){var t=e.toLowerCase();return"jpg"===t||"jpeg"===t||"png"===t}(r))throw new Error("Base64 image invalid format: "+r);return new Promise((function(e){return e(vm(Buffer.from(i,"base64"),r))}))}(e):Buffer.isBuffer(e)?bm(e):"object"===typeof e&&e.data?function(e){if(e.data&&e.format)return new Promise((function(t){return t(vm(e.data,e.format))}));throw new Error("Invalid data given for local file: "+JSON.stringify(e))}(e):Sm(e,s)))throw new Error("Cannot resolve image");return o&&gm.set(u,n),n},Am={},_m=_c()(),Hm=function(e){return"\ufe0f"!==e},km=function(e){var t,n=am.getEmojiSource(),r=n.url,i=n.format;return""+r+(t=e,Array.from(t).filter(Hm).map((function(e){return e.codePointAt(0).toString(16)})).join("-")+".")+i},Pm=function(e){var t=am.getEmojiSource();if(!t||!t.url)return[];for(var n,r=[],i=function(){var e=n[0];if(!Am[e]||Am[e].loading){var t=km(e);Am[e]={loading:!0};var i=function(){return e=Cm,function(){return e.apply(void 0,arguments).then((function(e){return e}),(function(e){return e}))};var e}();r.push(i({uri:t}).then((function(t){Am[e].loading=!1,Am[e].data=t.data})))}};n=_m.exec(e);)i();return r},Nm=[8232,8233],Tm=[function(e){return e.map((function(e){var t,n=(t=e.attributes.font,Nm.reduce((function(e,n){return t.hasGlyphForCodePoint&&t.hasGlyphForCodePoint(n)?e:[].concat(e,[String.fromCharCode(n)])}),[])),r=new RegExp(n.join("|"));return{string:e.string.replace(r,""),attributes:e.attributes}}))},function(e){for(var t=[],n=0;ne)return n;t+=r.box.height}return this.lines.length},n.heightAtLineIndex=function(e){for(var t=0,n=0;ns){var l=t,d=l*s,h=jm(o)?o:0;return{width:d,height:l,xOffset:jm(i)?i:(e-d)*M,yOffset:h}}var f=e,p=f/s,y=jm(i)?i:0;return{width:f,height:p,yOffset:jm(o)?o:(t-p)*m,xOffset:y}},Qm=function(e,t,n,r,i,o){var a=n,s=r,u=jc(i),c=jc(o),M=u?u.percent:.5,m=c?c.percent:.5;return{width:a,height:s,xOffset:jm(i)?i:(e-a)*M,yOffset:jm(o)?o:(t-s)*m}},Gm=function(e,t,n,r,i,o,a){switch(void 0===e&&(e="fill"),e){case"contain":return zm(t,n,r,i,o,a);case"cover":return function(e,t,n,r,i,o){var a=n/r,s=e/t,u=jc(i),c=jc(o),M=u?u.percent:.5,m=c?c.percent:.5;if(s>a){var l=e,d=l/a,h=jm(i)?i:0;return{width:l,height:d,yOffset:jm(o)?o:(t-d)*m,xOffset:h}}var f=t*a;return{width:f,height:t,xOffset:jm(i)?i:(e-f)*M,yOffset:jm(o)?o:0}}(t,n,r,i,o,a);case"none":return Qm(t,n,r,i,o,a);case"scale-down":return function(e,t,n,r,i,o){var a=zm(e,t,n,r,i,o),s=Qm(e,t,n,r,i,o);return a.width1?{width:e,height:Math.min(e/this.ratio,n)}:{width:Math.min(n*this.ratio,e),height:n}:{height:n,width:e}},n.fetch=function(){var e=d()(m().mark((function e(){var t,n,r,i,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.cache,r=t.safePath,i=t.allowDangerousPaths,this.src){e.next=4;break}return xc(!1,'Image should receive either a "src" or "source" prop'),e.abrupt("return");case 4:if(e.prev=4,"function"!==typeof this.src){e.next=11;break}return e.next=8,this.src();case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=this.src;case 12:return o=e.t0,e.next=15,Cm(o,{cache:n,safePath:r,allowDangerousPaths:i});case 15:this.image=e.sent,e.next=22;break;case 18:e.prev=18,e.t1=e.catch(4),this.image={width:0,height:0},console.warn(e.t1.message);case 22:case"end":return e.stop()}}),e,this,[[4,18]])})));return function(){return e.apply(this,arguments)}}(),n.clone=function(){var t=e.prototype.clone.call(this);return t.image=this.image,t},n.onAppendDynamically=function(){var e=d()(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetch();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),n.renderImage=function(){var e=this.padding,t=this.getAbsoluteLayout(),n=t.left,r=t.top,i=this.style,o=i.opacity,a=i.objectPositionX,s=i.objectPositionY;if(this.root.instance.save(),this.clip(),this.image&&this.image.data){var u=Gm(this.style.objectFit,this.width-e.left-e.right,this.height-e.top-e.bottom,this.image.width,this.image.height,a,s),c=u.width,M=u.height,m=u.xOffset,l=u.yOffset;0!==c&&0!==M?this.root.instance.fillOpacity(o).image(this.image.data,n+e.left+m,r+e.top+l,{width:c,height:M}):xc(!1,"Image with src '"+this.props.src+"' skipped due to invalid dimensions")}else xc(!1,"Image skipped because src prop is "+this.props.src);this.root.instance.restore()},n.render=function(){var e=d()(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:UM(this),this.root.instance.save(),this.applyTransformations(),this.drawBackgroundColor(),this.renderImage(),this.drawBorders(),this.props.debug&&this.debug(),this.root.instance.restore();case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),v()(t,[{key:"name",get:function(){return"Image"}},{key:"ratio",get:function(){return this.image.data?this.image.width/this.image.height:1}},{key:"src",get:function(){var e=this.props.src||this.props.source;return"string"===typeof e?{uri:e}:e}}]),t}(NM);Wm.defaultProps={wrap:!1,cache:!0,style:{}};var Um=function(){function e(e,t){this.root=e,this.style={},this.props=t,this.children=[],this.subpages=[]}var t=e.prototype;return t.appendChild=function(e){e.parent=this,this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);-1!==t&&(e.parent=null,this.children.splice(t,1)),e.cleanup()},t.addMetaData=function(){var e=this.props,t=e.title,n=e.author,r=e.subject,i=e.keywords,o=e.creator,a=e.producer;t&&(this.root.instance.info.Title=t),n&&(this.root.instance.info.Author=n),r&&(this.root.instance.info.Subject=r),i&&(this.root.instance.info.Keywords=i),this.root.instance.info.Creator=o||"react-pdf",this.root.instance.info.Producer=a||"react-pdf"},t.loadFonts=function(){var e=d()(m().mark((function e(){var t,n,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=[],n=this.children.slice(0);n.length>0;)(r=n.shift()).style&&r.style.fontFamily&&t.push(am.load(r.style,this.root.instance)),r.children&&r.children.forEach((function(e){n.push(e)}));return e.next=5,Promise.all(t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.loadEmojis=function(){var e=d()(m().mark((function e(){var t,n,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=[],n=this.children.slice(0);n.length>0;)"string"===typeof(r=n.shift())?t.push.apply(t,Pm(r)):"string"===typeof r.value?t.push.apply(t,Pm(r.value)):r.children&&r.children.forEach((function(e){n.push(e)}));return e.next=5,Promise.all(t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.loadImages=function(){var e=d()(m().mark((function e(){var t,n,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=[],n=this.children.slice(0);n.length>0;)"Image"===(r=n.shift()).name&&t.push(r.fetch()),r.children&&r.children.forEach((function(e){n.push(e)}));return e.next=5,Promise.all(t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.loadAssets=function(){var e=d()(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.loadFonts(),this.loadImages(),this.loadEmojis()]);case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.applyProps=function(){this.children.forEach((function(e){return e.applyProps()}))},t.update=function(e){this.props=e},t.cleanup=function(){this.subpages.forEach((function(e){return e.cleanup()}))},t.finish=function(){this.children.forEach((function(e){return e.cleanup()}))},t.getLayoutData=function(){return{type:this.name,children:this.subpages.map((function(e){return e.getLayoutData()}))}},t.wrapPages=function(){var e=d()(m().mark((function e(){var t,n,r,i,o,a,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=1,n=[],r=this.children,i=Array.isArray(r),o=0,r=i?r:r[Symbol.iterator]();case 3:if(!i){e.next=9;break}if(!(o>=r.length)){e.next=6;break}return e.abrupt("break",21);case 6:a=r[o++],e.next=13;break;case 9:if(!(o=r.next()).done){e.next=12;break}return e.abrupt("break",21);case 12:a=o.value;case 13:if(!(s=a).wrap){e.next=18;break}return e.delegateYield(m().mark((function e(){var r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.isAutoHeight?1/0:s.size.height-(s.style.paddingBottom||0),e.next=3,Ic(s,r,t);case 3:i=e.sent,t+=i.length,i.forEach((function(e,t){return n.push({page:e,number:t+1,count:i.length})}));case 6:case"end":return e.stop()}}),e)}))(),"t0",16);case 16:e.next=19;break;case 18:n.push({page:s,number:1,count:1});case 19:e.next=3;break;case 21:return e.abrupt("return",n);case 22:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.renderPages=function(){var e=d()(m().mark((function e(){var t,n,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wrapPages();case 2:t=e.sent,n=t.map((function(e){return e.page})),this.subpages=n,r=0;case 6:if(!(r=i.length)break;m=i[M++]}else{if((M=i.next()).done)break;m=M.value}var l=m,d=(0,s.default)(l);if(r+d>e)return n+(0,u.default)(e-r,l);r+=d,n+=(0,a.default)(l)}return n}));t.default=c},23770:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(25493)),s=r(n(71647)),u=r(n(20385)),c=r(n(11154)),M=r(n(84836)),m=function(e){return o.compose(o.gt(o.__,e),o.nthArg(1))},l=o.curryN(3,(function(e,t,n){var r=(0,c.default)(e,n);if(-1===r)return(0,a.default)(t,n);var i,l,d=o.propOr([],"codePoints")(t),h=o.add(o.length(d));return o.evolve({string:o.compose(o.join(""),o.insert(e,(0,M.default)(d))),runs:(i=[[(l=r,o.compose(o.equals(l),o.nthArg(1))),function(n){return(0,u.default)(e-n.start,t,n)}],[m(r),o.evolve({start:h,end:h})],[o.T,s.default]],o.addIndex(o.map)(o.cond(i)))})(n)}));t.default=l},52239:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(79277)),s=o.compose(a.default,o.head,o.propOr([],"runs"));t.default=s},51537:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(92333)),s=r(n(1926)),u=o.converge(o.subtract,[s.default,a.default]);t.default=u},86064:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(86250)),s=r(n(29646)),u=r(n(9217)),c=r(n(84836)),M=o.curryN(2,(function(e,t){var n=o.propOr([],"codePoints")(e);return o.evolve({string:o.concat((0,c.default)(n)),runs:o.converge(o.concat,[o.compose(o.unapply(o.identity),(0,u.default)(e),o.either(o.head,s.default)),o.compose(o.map((0,a.default)(n.length)),o.tail)])})(t)}));t.default=M},90228:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=function(e,t,n){return void 0===n&&(n=0),i.compose(i.reduce(i.useWith(e,[i.identity,t]),n),i.prop("runs"))};t.default=o},46019:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(11154)),s=o.curryN(2,(function(e,t){var n=(0,a.default)(e)(t);return o.path(["runs",n])(t)}));t.default=s},11154:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(99423)),s=o.curryN(2,(function(e,t){return o.compose((0,a.default)(e),o.prop("runs"))(t)}));t.default=s},57769:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(24655)),s=r(n(13244)),u=r(n(91285)),c=r(n(37763)),M=function(e,t){return function(n){var r=o.identity;return(0,c.default)([o.o((0,u.default)(e),(function(n){return(0,a.default)(e-n.start,t-n.start,n)})),o.o((0,u.default)(e),r),o.o((0,u.default)(e),(function(e){return(0,a.default)(0,t-e.start,e)}))])(n)}},m=o.curryN(3,(function(e,t,n){return o.ifElse(o.pathEq(["string","length"],0),o.identity,o.evolve({string:o.slice(e,t),runs:o.compose(M(e,t),(0,s.default)(e,t))}))(n)}));t.default=m},97004:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(57769)),s=r(n(13907)),u=o.curryN(2,(function(e,t){var n=(0,s.default)(e,t);return(0,a.default)(0,n,t)}));t.default=u},92333:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.ifElse(i.pathEq(["runs","length"],0),i.always(0),i.path(["runs",0,"start"]));t.default=o},77757:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(44897)),s=o.compose(a.default,o.last,o.propOr([],"runs"));t.default=s},80264:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(57769)),s=o.test(/\S/g),u=o.findIndex(s),c=o.o(o.inc,o.findLastIndex(s)),M=o.chain(o.apply(a.default),o.compose(o.juxt([u,c]),o.prop("string")));t.default=M},34975:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.compose(i.sum,i.map(i.prop("height")),i.pluck("box"));t.default=o},50241:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=function(e,t){return i.slice(0,e,t)};t.default=o},21894:function(e,t){"use strict";t.__esModule=!0,t.default=void 0;var n=function(e){return function(t){var n=[],r=0,i=t,o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s;if(!((r+=u.box.height)0&&M>-1&&(r[M]=(m+(e-n))/m);for(var f=[],p=0;p0&&(m[l-1].after=0))):h.isMark&&l>0?((d=o.clone(m[l-1])).before=0,m[l-1].after=0):d=o.clone(r),m.push(d)}return m}},l=function(e,t,n){var r=m(e>0?"GROW":"SHRINK",n),i=o.useWith(o.concat,[o.identity,o.compose(r,o.prop("glyphs"))]);return o.compose(o.adjust(-1,o.assoc("after",0)),o.adjust(0,o.assoc("before",0)),o.reduce(i,[]),o.prop("runs"))(t)};t.default=l},56430:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.Z=void 0;var o=i(n(15150)),a=r(n(71869)),s=r(n(12628)),u=r(n(5436)),c=o.curryN(2,(function(e,t){var n=t.box.width-(0,u.default)(t);if(0!==n){var r=(0,a.default)(n,t,e);return function(e,t){var n=0,r=t.runs,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a.positions,u=Array.isArray(s),c=0;for(s=u?s:s[Symbol.iterator]();;){var M;if(u){if(c>=s.length)break;M=s[c++]}else{if((c=s.next()).done)break;M=c.value}M.xAdvance+=e[n++]}}return t}((0,s.default)(n,r),t)}}));t.Z=c},2621:function(e,t){"use strict";t.__esModule=!0,t.default=void 0;var n=function(e,t,n){for(var r=null,i=1/0,o={width:0,stretch:0,shrink:0},a=t[Math.min(n,t.length-1)],s=function(e){return o.width0?(a-o.width)/o.stretch:1e4:o.width>a?o.shrink-e.shrink>0?(a-o.width)/o.shrink:1e4:0},u=0;ua)break;if("penalty"===c.type||"glue"===c.type){var M=s(c),m="penalty"===c.type?c.penalty:0,l=100*Math.pow(Math.abs(M),3)+m;i>=l&&(r=u,i=l)}}return o.width-o.shrink>a?r:null},r=function(e,t){for(var r=0,i=0,o=e,a=[{position:0}];o.length>0;){var s=n(o,t,i);s?(r+=s,a.push({position:r}),o=o.slice(s+1,o.length),r++,i++):o=[]}return a};t.default=r},48995:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.Z=void 0;var o=i(n(15150)),a=r(n(2621)),s=r(n(2263)),u=r(n(57769)),c=r(n(23770)),M=r(n(71532)),m=3,l=6,d=9,h=o.pathOr({},["attributedString","runs",0,"attributes"]),f=o.curryN(3,(function(e,t,n){for(var r=e.tolerance||4,i=function(e,t,n){var r=t.align,i=0,o=e.syllables,a=n.hyphenationPenalty||("justify"===r?100:600),u=o.reduce((function(t,n,r){var u=(0,M.default)(i,i+n.length,e);if(""===n.trim()){var c=u*m/l,h=u*m/d,f={start:i,end:i+n.length};t.push(s.default.glue(u,f,c,h))}else{var p=" "!==o[r+1],y={start:i,end:i+n.length};t.push(s.default.box(u,y,p)),o[r+1]&&p&&t.push(s.default.penalty(5,a,1))}return i+=n.length,t}),[]);return u.push(s.default.glue(0,null,s.default.infinity,0)),u.push(s.default.penalty(0,-s.default.infinity,1)),u}(t,h(t),e),o=(0,s.default)(i,n,{tolerance:r});0===o.length&&r<50;)r+=5,o=(0,s.default)(i,n,{tolerance:r});return(0===o.length||1===o.length&&0===o[0].position)&&(o=(0,a.default)(i,n)),function(e,t,n){var r=0,i=null,o=n.reduce((function(n,o){var a,s=t[o.position],M=t[o.position-1];return o.position===t.length-1?n:("penalty"===s.type?(i=M.value.end,a=(0,u.default)(r,i,e),a=(0,c.default)(a.length,45,a)):(i=s.value.end,a=(0,u.default)(r,i,e)),r=i,[].concat(n,[a]))}),[]);return o.push((0,u.default)(r,e.string.length,e)),o}(t,i,o.slice(1))}));t.Z=f},2263:function(e,t,n){"use strict";var r=n(51418);t.__esModule=!0,t.default=void 0;var i=r(n(95932)),o=function e(t,n,r){var o={line:r&&r.demerits&&r.demerits.line||10,flagged:r&&r.demerits&&r.demerits.flagged||100,fitness:r&&r.demerits&&r.demerits.fitness||3e3},a=r&&r.tolerance||3,s=new i.default,u={width:0,stretch:0,shrink:0},c=n,M=[],m={data:{demerits:1/0}};function l(e,t,n,r,i,o,a){return{position:e,demerits:t,ratio:n,line:r,fitnessClass:i,totals:o||{width:0,stretch:0,shrink:0},previous:a}}function d(n,r,i,o){var a=u.width-i.totals.width,s=0,M=0,m=o0?(m-a)/s:e.infinity:a>m?(M=u.shrink-i.totals.shrink)>0?(m-a)/M:e.infinity:0}function h(n){for(var r={width:u.width,stretch:u.stretch,shrink:u.shrink},i=n;in)break;return r}function f(t,n,r){for(var u,c,M,m,f,p=s.first(),y=null,g=0,E=0,v=[],b=0,w=0;null!==p;){for(v=[{demerits:1/0},{demerits:1/0},{demerits:1/0},{demerits:1/0}];null!==p&&(y=p.next,b=p.data.line+1,((g=d(p.data.position,n,p.data,b))<-1||"penalty"===t.type&&t.penalty===-e.infinity)&&s.remove(p),g>=-1&&g<=a&&(u=100*Math.pow(Math.abs(g),3),E="penalty"===t.type&&t.penalty>=0?Math.pow(o.line+u,2)+Math.pow(t.penalty,2):"penalty"===t.type&&t.penalty!==-e.infinity?Math.pow(o.line+u,2)-Math.pow(t.penalty,2):Math.pow(o.line+u,2),"penalty"===t.type&&"penalty"===r[p.data.position].type&&(E+=o.flagged*t.flagged*r[p.data.position].flagged),w=g<-.5?0:g<=.5?1:g<=1?2:3,Math.abs(w-p.data.fitnessClass)>1&&(E+=o.fitness),(E+=p.data.demerits)=b)););for(c=h(n),M=0;M0&&"box"===r[n-1].type&&f(t,n,r),u.width+=t.width,u.stretch+=t.stretch,u.shrink+=t.shrink):"penalty"===t.type&&t.penalty!==e.infinity&&f(t,n,r)})),0!==s.size()){for(s.forEach((function(e){e.data.demerits=this.listLength||e<0)return null;for(;null!==t;){if(e===n)return t;t=t.next,n+=1}return null},t.insertAfter=function(e,t){return this.isLinked(e)?(t.prev=e,t.next=e.next,null===e.next?this.tail=t:e.next.prev=t,e.next=t,this.listSize+=1,this):this},t.insertBefore=function(e,t){return this.isLinked(e)?(t.prev=e.prev,t.next=e,null===e.prev?this.head=t:e.prev.next=t,e.prev=t,this.listSize+=1,this):this},t.push=function(e){return null===this.head?this.unshift(e):this.insertAfter(this.tail,e),this},t.unshift=function(e){return null===this.head?(this.head=e,this.tail=e,e.prev=null,e.next=null,this.listSize+=1):this.insertBefore(this.head,e),this},t.remove=function(e){return this.isLinked(e)?(null===e.prev?this.head=e.next:e.prev.next=e.next,null===e.next?this.tail=e.prev:e.next.prev=e.prev,this.listSize-=1,this):this},t.pop=function(){var e=this.tail;return this.tail.prev.next=null,this.tail=this.tail.prev,this.listSize-=1,e.prev=null,e.next=null,e},t.shift=function(){var e=this.head;return this.head.next.prev=null,this.head=this.head.next,this.listSize-=1,e.prev=null,e.next=null,e},e}();(0,i.default)(a,"Node",o);var s=a;t.default=s},50159:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.Z=void 0;var o=i(n(15150)),a=r(n(7969)),s=r(n(75938)),u=["Common","Inherited","Unknown"],c=o.curryN(2,(function(e,t){var n=t.string,r="Unknown",i=0,o=0,c=[];if(!n)return(0,s.default)();var M=n,m=Array.isArray(M),l=0;for(M=m?M:M[Symbol.iterator]();;){var d;if(m){if(l>=M.length)break;d=M[l++]}else{if((l=M.next()).done)break;d=l.value}var h=d,f=h.codePointAt(),p=a.default.getScript(f);p===r||u.includes(p)||("Unknown"!==r&&c.push({start:i,end:o,attributes:{script:r}}),i=o,r=p),o+=h.length}return i=i.length)break;l=i[m++]}else{if((m=i.next()).done)break;l=m.value}var d=l,h=Math.min(r-t,(0,u.default)(d)),f=Math.max(.5,Math.floor(d.attributes.fontSize/12));if(d.attributes.underline){var p={rect:{x:t,y:(0,s.default)(e)+2*f,width:h,height:f},opacity:d.attributes.opacity,color:d.attributes.underlineColor||"black",style:d.attributes.underlineStyle||"solid"};e.decorationLines.push(p)}if(d.attributes.strike){var y={rect:{x:t,y:(0,s.default)(e)-(0,a.default)(d)/3,width:h,height:f},opacity:d.attributes.opacity,color:d.attributes.strikeColor||"black",style:d.attributes.strikeStyle||"solid"};e.decorationLines.push(y)}t+=h}return e}};t.Z=M},34366:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.Z=void 0;var o=i(n(15150)),a=r(n(77643)),s=r(n(66781)),u=(0,a.default)(s.default),c=o.split("\xad"),M={},m=o.ifElse(o.contains("\xad"),c,o.o(c,u)),l=o.curryN(2,(function(e,t){return o.isNil(t)?[]:(M[t]||(M[t]=m(t)),M[t])}));t.Z=l},87297:function(e,t){"use strict";t.__esModule=!0,t.default=void 0;var n=function(e,t){return t&&e?t.glyphForCodePoint(e):null};t.default=n},6394:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.compose(i.not,i.isEmpty,i.intersection([32]),i.propOr([],"codePoints"));t.default=o},62535:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(4,(function(e,t,n,r){if(!r)return[];if(e===t)return[];if(0===e&&t===r.codePoints.length)return[r];var o=i.slice(e,t,r.codePoints),a=String.fromCodePoint.apply(String,o);return n?n.layout(a).glyphs:[r]}));t.default=o},79925:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(2,(function(e,t){return i.converge(i.concat,[i.identity,i.converge(i.repeat,[i.either(i.o(i.inc,i.last),i.always(0)),i.always(e)])])(t)}));t.default=o},37049:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=function(e){return i.map(i.subtract(i.__,i.head(e)))(e)};t.default=o},11412:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(2,(function(e,t){return 0===e?t:i.converge(i.concat,[i.converge(i.repeat,[i.always(0),i.always(e)]),i.map(i.inc)])(t)}));t.default=o},72317:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(82396)),s=function(e,t){void 0===t&&(t=[]);for(var n=0,r=[],i=0;ir.box.width;return o.compose(o.when(o.always(u),e.justification(t)),o.evolve({box:o.evolve({x:o.add(s*M[n])})}))(r)}}(e,t,c),h,m)(n)}},p=o.curryN(3,(function(e,t,n){return o.map(o.addIndex(o.map)(f(e,t)),n)}));t.default=p},27310:function(e,t,n){"use strict";var r=n(17790),i=n(51418);t.__esModule=!0,t.default=void 0;var o=i(n(56083)),a=r(n(15150)),s=i(n(64324)),u=i(n(72317)),c=a.pathOr(0,["attributes","characterSpacing"]),M=function(e){return function(t){var n=t.start,r=t.end,i=t.attributes,M=(void 0===i?{}:i).font;if(!M)return(0,o.default)({},t,{glyphs:[],glyphIndices:[],positions:[]});var m=e.slice(n,r),l=M.layout(m),d=function(e,t){var n=a.multiply((0,s.default)(e)),r=c(e),i=a.evolve({xAdvance:a.o(a.add(r),n),yAdvance:n,xOffset:n,yOffset:n}),o=a.evolve({xAdvance:a.subtract(a.__,r)});return a.compose(a.adjust(-1,o),a.map(i))(t)}(t,l.positions),h=(0,u.default)(m,l.stringIndices||[]);return(0,o.default)({},t,{positions:d,glyphIndices:h,glyphs:l.glyphs})}},m=function(){return function(e){return a.evolve({runs:a.map(M(e.string))})(e)}};t.default=m},66157:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.Z=void 0;var o=i(n(15150)),a=r(n(48804)),s=r(n(51313)),u=r(n(27310)),c=r(n(39441)),M=r(n(78765)),m=r(n(10546)),l=r(n(72009)),d=r(n(6709)),h=r(n(50106)),f=o.curryN(3,(function(e,t,n,r){void 0===r&&(r={});var i=o.compose((0,c.default)(e,r),(0,d.default)(e,r),(0,u.default)(e,r),(0,a.default)(e,r));return o.compose((0,l.default)(e,r),(0,s.default)(e,r,n),o.map(i),(0,m.default)(e,r),(0,M.default)(e,r),(0,h.default)(e,r))(t)}));t.Z=f},92358:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(84107)),s=r(n(60496)),u=o.when(o.compose(o.not,o.includes("\ufffc"),o.prop("string")),o.evolve({runs:o.map((0,a.default)("attachment"))})),c=function(e,t){return function(n,r){var i=o.pathOr(0,["runs",0,"attributes","indent"],r);return function(e,t,n){var r=e.y;return o.addIndex(o.map)(o.compose(u,(function(t,i){var a=0===i?n:0,u=o.pathOr({},["runs",0,"attributes"],t),c=Math.max((0,s.default)(t),u.lineHeight),M={x:e.x+a,y:r,width:e.width-a,height:c};return r+=c,o.compose(o.assoc("box",M),o.omit(["syllables"]))(t)})))(t)}(n,e.linebreaker(t)(r,[n.width-i,n.width]),i)}};t.default=c},78765:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(84107)),s=r(n(71160)),u=r(n(75938)),c=o.evolve({runs:o.map((0,a.default)("font"))}),M=function(e,t){return o.ifElse(o.isNil,u.default,o.applySpec({string:o.prop("string"),runs:o.compose(s.default,o.flatten,o.pluck("runs"),o.juxt([e.fontSubstitution(t),e.scriptItemizer(t),c]))}))};t.default=M},6709:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.addIndex(i.map),a=i.propOr([],"glyphs"),s=i.pathOr({},["attributes","attachment"]),u=i.o(i.includes(65532),i.propOr([],"codePoints")),c=function(e){var t=a(e),n=s(e),r=i.always(n.width);return i.evolve({positions:o((function(e,o){var a=t[o];return n&&n.width&&u(a)?i.evolve({xAdvance:r},e):i.clone(e)}))})(e)},M=function(){return i.evolve({runs:i.map(c)})};t.default=M},39441:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.pathOr(0,["attributes","yOffset"]),a=i.pathOr(0,["attributes","font","unitsPerEm"]),s=function(e){var t=a(e),n=o(e)*t;return i.evolve({positions:i.map(i.assoc("yOffset",n))})(e)},u=function(){return i.evolve({runs:i.map(s)})};t.default=u},10546:function(e,t,n){"use strict";var r=n(51418);t.__esModule=!0,t.default=void 0;var i=r(n(51537)),o=r(n(57769)),a=function(){return function(e){for(var t=[],n=0,r=e.string.indexOf("\n")+1;r>0;)t.push((0,o.default)(n,r,e)),n=r,r=e.string.indexOf("\n",r)+1;return 0===n?t.push(e):n0&&g;){var E=(0,m.default)(e,t)(y,g),v=(0,u.default)(p,E),b=(0,c.default)(v),w=f&&E.length!==v.length;if(p-=v.length,!(y.height>=b)){i.push(o.compose(M.default,(0,l.default)(y.height))(v));break}i.push(o.when(o.always(w),M.default)(v)),y=(0,s.default)(b,y),g=d.shift()}return i}));t.default=d},48804:function(e,t,n){"use strict";var r=n(17790),i=n(51418);t.__esModule=!0,t.default=void 0;var o=i(n(56083)),a=r(n(15150)),s=i(n(96947)),u=function(e){return[e]},c=a.curryN(3,(function(e,t,n){void 0===e&&(e={}),void 0===t&&(t={});var r=[],i=[],a=t.hyphenationCallback||e.wordHyphenation&&e.wordHyphenation(t)||u,c=n.runs,M=Array.isArray(c),m=0;for(c=M?c:c[Symbol.iterator]();;){var l;if(M){if(m>=c.length)break;l=c[m++]}else{if((m=c.next()).done)break;l=m.value}var d=l,h="",f=n.string.slice(d.start,d.end).split(/([ ]+)/g).filter(Boolean),p=Array.isArray(f),y=0;for(f=p?f:f[Symbol.iterator]();;){var g;if(p){if(y>=f.length)break;g=f[y++]}else{if((y=f.next()).done)break;g=y.value}var E=a(g);r.push.apply(r,E),h+=E.join("")}i.push({string:h,attributes:d.attributes})}return(0,o.default)({},(0,s.default)(i),{syllables:r})}));t.default=c},7969:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return F},getCategory:function(){return b},getCombiningClass:function(){return w},getEastAsianWidth:function(){return C},getNumericValue:function(){return A},getScript:function(){return S},isAlphabetic:function(){return _},isBaseForm:function(){return B},isDigit:function(){return H},isLowerCase:function(){return P},isMark:function(){return D},isPunctuation:function(){return k},isTitleCase:function(){return T},isUpperCase:function(){return N},isWhiteSpace:function(){return R}});var r=n(62041),i=n.n(r),o={categories:["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],combiningClasses:["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],scripts:["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],eaw:["N","Na","A","W","H","F"]},a=new Uint8Array([0,17,0,0,0,0,0,0,0,1,124,240,101,121,121,56,212,109,251,254,91,61,81,89,138,100,95,42,132,208,36,217,183,236,33,132,236,140,52,143,117,44,77,98,172,163,34,59,147,12,178,78,33,20,205,32,251,54,33,51,133,102,34,140,125,48,49,89,7,19,131,49,227,215,243,126,143,183,158,227,248,253,247,89,142,251,254,92,215,121,159,247,125,157,231,245,89,155,230,42,20,241,137,153,221,204,52,1,72,70,16,171,26,138,194,123,10,188,100,46,112,88,126,234,222,156,39,191,118,120,244,1,102,254,82,247,37,210,194,76,163,127,243,248,79,185,147,54,114,0,191,87,78,86,19,37,71,217,95,149,181,11,244,151,137,130,234,172,142,241,189,53,56,255,192,182,249,235,165,64,81,25,203,163,107,239,70,47,61,75,120,22,255,125,226,134,29,158,94,144,231,227,64,72,91,180,68,151,254,220,161,18,136,132,1,101,2,35,173,108,176,211,183,169,140,111,129,179,48,93,96,54,123,215,254,192,113,181,187,0,34,55,243,180,35,92,66,55,13,14,210,211,133,27,238,94,238,76,230,15,194,6,54,139,4,78,37,38,110,42,203,250,25,15,222,254,32,154,242,2,151,23,126,5,152,150,75,214,110,23,215,130,232,206,36,165,110,240,31,168,206,164,203,111,28,137,230,67,98,71,190,66,196,58,159,4,207,94,58,80,204,152,103,168,103,72,144,109,180,185,85,74,101,35,2,62,100,213,196,41,5,73,198,92,42,142,19,152,239,13,215,192,247,172,108,178,185,37,145,62,78,222,23,242,175,36,155,71,115,34,123,15,63,54,236,114,184,193,49,88,197,230,99,135,73,228,93,37,88,10,82,50,211,30,33,234,93,35,228,122,159,13,255,49,100,243,94,187,40,186,123,229,254,145,157,217,47,205,215,193,233,76,247,50,106,175,68,10,243,116,38,236,215,248,145,102,54,15,44,177,119,83,196,44,248,127,145,111,200,138,231,86,186,52,133,118,87,223,180,238,226,108,76,97,86,164,252,252,39,239,187,137,27,182,7,167,128,42,82,191,146,232,235,46,216,112,104,63,251,107,162,121,195,221,19,186,201,199,212,147,0,115,232,13,174,169,120,106,202,78,80,111,209,174,204,84,42,99,243,132,120,15,224,25,94,174,239,186,85,247,63,48,24,224,93,92,123,194,26,61,226,115,231,236,195,197,174,124,16,63,184,52,147,64,234,210,29,134,72,163,186,125,54,124,156,186,29,55,84,162,57,72,255,228,66,255,94,141,67,6,244,102,211,9,171,135,124,122,166,23,9,219,79,253,10,227,43,230,31,22,62,165,204,73,171,11,160,177,232,185,244,230,19,185,179,98,187,58,7,71,88,236,168,238,10,136,10,170,203,241,159,16,48,93,107,221,244,251,156,244,249,196,240,51,135,79,98,13,31,20,101,35,37,71,174,166,90,134,215,213,216,79,192,216,240,221,180,13,222,194,84,71,50,209,72,4,163,191,79,130,40,205,100,208,103,233,155,250,7,74,186,79,217,30,186,165,162,231,10,118,195,146,38,105,86,77,41,237,90,55,49,84,200,212,154,186,23,44,205,116,35,164,240,12,185,193,171,130,207,235,212,241,129,87,178,26,199,124,200,123,225,23,204,157,62,90,205,69,35,108,244,67,251,90,103,174,72,78,203,187,93,9,108,235,144,112,156,63,235,123,3,167,175,48,7,216,176,63,144,14,250,96,105,87,68,121,84,48,222,201,5,5,9,233,117,27,238,10,28,24,4,84,84,180,96,175,166,218,197,203,88,187,134,78,89,21,1,223,123,91,2,138,117,167,35,88,73,81,10,224,209,106,231,247,222,95,242,85,192,197,234,197,79,41,228,222,179,223,69,11,83,105,53,103,41,137,225,146,87,242,27,59,195,194,79,46,105,109,68,117,83,201,113,205,254,19,251,46,159,100,204,78,207,114,236,134,68,11,121,224,210,119,69,166,82,180,32,106,57,155,146,218,241,177,189,128,103,64,2,195,101,96,158,47,160,87,249,190,42,240,145,88,184,52,240,41,113,238,232,106,151,235,253,95,36,134,114,56,206,30,91,41,242,240,112,253,239,7,75,183,109,138,161,122,79,245,220,73,123,154,49,110,186,24,93,96,226,175,88,200,22,157,30,172,183,99,152,226,159,87,59,201,154,44,232,16,107,233,219,40,153,33,241,137,65,218,157,139,92,97,12,39,48,198,97,70,19,167,105,130,94,200,156,218,70,235,164,200,37,33,227,207,158,252,21,47,147,246,132,124,58,124,106,15,163,15,174,1,31,19,103,67,155,255,19,181,145,147,183,139,140,101,117,220,141,232,171,46,57,96,211,141,139,253,104,167,90,3,175,186,207,142,72,79,177,53,224,82,148,45,24,51,229,34,206,121,42,20,26,137,207,100,72,107,63,82,182,118,64,164,14,126,80,124,49,49,16,197,17,125,166,233,101,78,133,142,236,74,101,106,126,166,112,196,69,157,75,182,227,141,114,198,45,183,199,226,170,42,90,251,69,101,172,139,214,87,49,105,107,242,247,207,222,89,100,214,109,143,70,61,50,185,215,28,196,27,168,107,181,95,34,4,102,156,83,198,95,163,230,213,98,31,50,111,209,155,137,255,197,57,252,32,106,128,208,101,174,170,11,184,242,145,20,59,69,61,156,223,153,116,139,197,164,246,251,84,51,233,132,135,209,103,28,231,148,119,149,21,230,228,119,217,126,173,165,242,244,26,83,49,194,20,34,240,95,128,113,27,234,119,70,163,197,84,147,26,98,121,253,120,42,60,197,57,198,128,53,248,47,22,155,242,99,201,68,242,81,56,173,161,226,204,186,101,184,252,204,146,205,97,199,247,181,30,137,57,201,93,41,238,164,7,236,102,152,120,204,243,101,49,111,70,155,250,147,168,154,39,140,141,171,48,111,55,194,123,7,141,244,135,108,5,155,82,1,61,202,155,162,237,247,27,191,205,88,248,40,166,94,12,150,89,90,233,237,184,47,116,206,77,83,100,205,173,179,191,116,10,184,53,147,120,58,66,148,33,24,129,52,62,230,241,1,73,6,108,254,179,5,231,79,172,155,136,232,125,56,22,46,168,23,215,29,211,146,176,196,85,164,106,125,143,241,102,44,197,103,118,60,252,49,68,20,61,245,85,39,193,67,154,218,16,30,167,30,118,97,233,215,94,134,215,37,64,159,31,6,185,93,200,136,125,244,179,103,87,125,135,204,161,30,143,78,33,147,164,152,141,214,174,9,174,26,97,109,43,187,244,49,189,4,70,204,178,142,1,11,51,127,120,177,39,42,83,91,117,150,47,160,75,72,93,132,48,35,8,195,179,148,189,96,66,232,15,224,13,205,131,214,59,193,106,147,2,115,188,237,199,168,216,115,60,19,42,196,75,47,167,76,53,118,252,220,116,188,145,208,244,165,51,12,143,94,181,205,181,71,145,77,38,133,33,232,245,41,65,12,53,221,55,168,67,189,17,162,206,106,33,180,140,145,222,139,124,180,94,98,80,110,6,44,215,23,120,107,193,185,212,133,172,123,190,109,86,91,246,56,171,53,81,190,173,3,200,231,80,59,30,239,63,111,69,30,104,134,153,225,72,3,59,175,15,145,140,119,60,77,135,90,146,154,164,158,250,224,172,109,229,49,88,167,44,12,203,128,203,66,165,81,203,93,72,237,35,139,135,21,5,154,168,132,43,157,141,106,40,214,2,178,31,10,14,170,27,202,185,121,40,176,68,34,91,213,30,198,12,145,187,225,58,216,131,31,229,86,174,240,247,239,138,135,221,189,197,34,68,106,132,172,123,151,212,57,8,61,156,192,39,33,155,254,237,252,21,69,195,111,222,3,135,35,142,149,111,152,216,80,46,186,61,129,206,234,84,190,76,233,175,17,8,238,98,108,120,70,71,223,96,108,106,100,138,127,12,245,141,28,8,177,109,16,92,249,114,132,220,145,14,130,206,35,35,11,191,117,32,48,135,39,107,184,225,133,223,215,40,247,86,147,179,206,73,39,118,127,46,149,232,23,141,225,83,2,108,111,243,53,10,28,221,159,193,215,242,242,215,158,165,148,42,244,97,52,186,95,0,94,15,76,90,175,107,91,1,64,109,9,251,159,71,201,135,230,67,122,26,227,251,49,101,214,169,84,185,104,253,250,40,197,37,226,253,211,132,65,98,22,171,193,52,22,75,109,19,36,197,93,29,154,52,195,200,52,194,51,103,0,141,18,23,152,77,89,109,177,214,139,144,204,138,160,69,37,184,243,64,96,35,54,32,109,219,175,64,203,203,71,213,53,98,135,181,180,138,108,24,223,139,14,203,187,78,160,64,86,165,11,180,66,244,28,17,49,42,75,96,53,40,246,144,237,13,252,240,82,35,201,40,178,118,44,103,18,166,21,129,105,211,136,254,34,99,54,165,7,87,187,156,27,204,130,235,232,141,51,212,24,18,90,129,71,177,2,21,122,220,78,5,144,221,225,191,180,37,154,113,63,91,196,137,31,155,19,230,139,123,206,119,126,138,198,40,64,36,14,247,189,99,73,249,143,104,106,149,205,177,197,82,86,164,185,131,94,113,57,99,67,253,107,148,9,192,61,96,0,32,233,97,91,140,118,166,173,185,89,229,205,11,233,156,117,95,159,25,138,219,70,113,240,202,83,175,123,65,20,170,91,248,62,70,135,205,71,43,235,88,202,193,159,142,28,62,249,17,123,97,221,78,239,194,171,77,66,231,250,226,88,241,217,201,115,202,30,228,131,13,213,188,115,85,207,129,222,168,130,242,225,219,74,132,34,239,28,215,219,42,175,139,159,200,122,240,135,126,217,55,147,36,189,141,93,176,105,132,207,218,84,5,60,86,174,251,225,55,35,131,201,125,144,214,79,223,109,127,211,254,246,199,53,192,107,154,56,3,182,240,93,181,154,213,182,34,32,230,37,208,187,51,191,12,67,47,69,127,12,139,92,242,153,41,109,247,96,70,32,183,138,34,216,232,74,18,87,19,241,251,199,9,223,208,135,176,111,192,69,137,226,125,49,249,68,4,36,24,16,57,188,121,153,226,136,67,223,26,134,152,138,33,29,133,12,71,64,218,246,2,228,93,153,178,253,153,201,117,240,171,166,135,225,196,100,186,122,207,232,247,228,194,253,205,54,212,193,168,84,100,44,144,64,232,16,172,103,221,125,11,90,71,243,152,39,255,93,97,118,246,77,102,69,50,40,223,8,15,13,162,254,44,107,145,69,13,71,181,79,175,33,226,173,60,88,49,59,37,182,195,137,232,248,186,212,76,71,218,39,181,235,241,149,123,250,46,226,83,94,221,88,18,255,27,15,49,45,235,205,207,185,43,8,55,70,159,190,237,43,112,27,189,1,181,217,110,67,134,220,173,192,134,218,144,219,195,118,222,85,230,237,45,216,159,162,151,152,8,65,135,63,134,122,138,201,39,133,241,59,246,247,189,153,54,45,122,120,219,228,47,177,92,70,72,213,105,125,39,45,32,83,19,71,86,195,246,222,244,139,171,31,52,93,214,43,63,238,40,49,3,10,156,243,206,220,33,47,142,101,179,15,61,31,98,41,88,221,116,177,113,209,150,16,236,123,210,130,118,147,249,168,211,105,83,206,28,77,143,154,138,171,48,169,31,23,103,215,154,208,166,213,71,4,110,56,100,20,221,203,0,181,93,159,73,185,234,227,181,58,122,206,171,42,85,139,90,24,55,179,240,125,11,216,62,161,60,169,233,27,72,149,212,121,212,227,164,63,159,250,157,44,186,138,213,21,61,195,13,58,158,12,254,16,221,40,236,247,184,174,172,173,183,113,58,183,54,112,152,43,213,40,52,218,128,113,197,41,50,233,94,201,104,111,179,136,220,37,126,169,227,158,248,118,254,234,181,148,167,219,167,234,169,194,175,195,255,147,136,230,9,5,151,144,158,140,161,177,125,205,152,84,151,198,169,206,4,211,30,94,244,241,202,218,233,27,28,210,59,253,22,85,232,179,94,235,150,169,109,49,163,160,38,144,150,205,45,196,243,219,153,6,194,66,127,191,186,144,168,93,22,114,247,44,232,173,98,111,103,66,150,113,181,229,7,21,63,119,146,56,17,21,19,196,203,149,90,20,140,152,94,187,236,179,77,236,217,203,194,201,138,107,5,228,10,6,235,165,201,110,58,93,22,10,20,117,170,27,82,175,17,151,30,237,185,213,209,8,181,136,88,95,123,39,190,125,96,75,107,151,187,55,83,196,34,99,102,216,236,138,157,34,79,107,3,11,74,140,75,176,100,246,203,182,55,37,227,20,174,127,127,150,104,91,10,31,131,112,237,79,40,218,22,171,41,156,227,147,74,31,49,43,240,138,80,84,185,238,11,149,18,76,61,198,132,46,68,44,48,16,239,75,187,220,246,189,140,82,107,211,69,87,192,239,75,27,246,11,133,152,45,129,124,54,183,56,15,53,164,204,219,36,243,82,73,58,86,127,45,130,107,24,42,35,224,201,153,166,119,247,1,121,179,197,62,43,182,95,99,178,169,99,19,39,157,207,142,188,72,98,157,6,36,51,203,63,234,88,161,33,22,14,57,101,204,229,101,157,202,24,189,229,234,201,254,221,52,218,223,51,21,50,19,218,214,134,198,167,252,254,126,246,52,65,116,235,37,55,245,92,4,247,18,212,29,81,246,24,150,101,153,202,243,217,255,170,214,193,78,212,57,7,162,238,149,68,210,139,32,55,222,8,203,228,245,250,137,132,235,62,17,135,99,182,208,88,224,5,226,182,203,89,156,160,88,140,12,226,111,185,147,231,228,202,50,245,249,133,31,124,50,124,171,231,227,228,240,124,187,237,254,81,211,77,89,239,174,218,20,89,16,98,65,120,98,52,207,39,19,166,104,89,235,177,253,157,27,218,233,209,113,213,51,116,58,102,47,176,128,129,221,83,161,21,240,130,97,211,100,232,34,26,213,83,251,26,245,64,127,78,109,230,209,77,62,13,204,191,151,74,146,238,185,106,122,216,106,144,188,149,83,62,134,78,120,144,155,234,2,48,119,213,199,49,251,80,248,167,52,240,130,138,116,164,0,53,34,117,107,104,47,123,114,93,70,19,180,250,211,98,99,53,128,101,247,123,138,202,30,6,238,187,91,188,110,43,197,151,238,120,73,81,25,93,247,194,39,111,75,127,117,99,146,106,239,228,14,245,120,12,154,63,112,137,176,244,3,182,26,250,180,23,105,244,51,188,136,100,162,252,106,99,27,141,137,93,250,161,101,179,184,106,240,7,47,171,222,202,216,250,194,106,137,174,82,39,172,187,186,141,106,113,174,164,73,122,39,248,158,155,201,114,175,243,76,158,196,235,234,142,53,60,237,50,133,8,119,132,241,77,211,2,79,237,47,55,210,55,189,137,48,75,205,67,96,96,127,160,81,154,81,58,141,235,55,106,160,8,143,186,25,236,41,95,204,60,8,127,171,163,164,43,90,36,173,170,103,12,205,86,183,188,71,165,251,127,221,15,19,41,210,176,239,213,14,176,76,196,183,43,174,51,77,62,145,91,50,181,203,174,55,138,109,185,37,174,215,217,227,194,87,105,147,179,7,127,226,59,33,100,250,56,108,185,222,174,162,40,178,175,225,203,102,202,80,9,149,159,217,248,162,233,245,249,173,3,33,158,122,82,21,112,153,145,221,80,218,75,107,200,38,62,252,82,213,227,111,8,93,83,211,10,53,192,163,221,8,152,180,168,234,214,207,186,24,69,60,224,78,217,51,19,54,103,223,79,23,72,188,20,162,14,14,88,98,137,204,41,255,220,87,197,246,32,55,217,214,71,74,253,244,165,16,140,220,160,88,245,102,104,70,27,93,43,240,161,30,78,131,17,0,108,125,94,173,55,106,53,10,125,38,46,211,193,126,121,18,250,172,181,47,108,95,21,239,83,64,251,67,19,80,94,227,132,83,151,205,132,246,19,211,218,180,182,251,221,203,21,188,225,65,3,183,11,248,67,218,52,69,31,112,86,89,182,172,1,251,140,133,18,69,113,58,226,239,119,132,243,126,114,211,94,172,219,96,227,160,82,124,235,101,175,46,62,189,126,237,147,129,33,119,68,120,154,244,62,67,74,43,101,64,5,216,10,118,221,170,51,228,71,111,59,46,30,157,8,112,218,166,139,62,120,80,239,113,147,207,217,231,79,153,49,113,206,114,68,252,64,75,161,4,52,66,105,253,18,70,78,200,153,135,196,198,239,41,134,252,163,109,89,30,107,249,96,186,160,176,67,228,246,5,153,193,132,24,247,2,234,25,123,154,199,255,16,149,94,106,13,163,219,171,218,75,61,61,114,167,236,206,88,169,171,104,76,181,57,66,72,239,55,68,112,73,175,6,150,221,192,186,195,10,1,27,219,21,252,75,249,241,102,8,202,225,180,98,250,150,206,153,184,124,108,71,168,62,245,63,47,217,221,199,217,39,182,80,192,45,183,64,190,157,14,241,144,183,205,37,39,22,14,28,120,251,48,238,60,94,193,107,203,236,116,82,4,181,39,232,158,239,76,127,110,149,222,77,239,162,69,62,0,66,117,113,133,219,109,104,16,153,62,249,119,209,193,122,101,45,44,171,84,238,199,21,96,68,179,223,103,77,172,202,189,229,183,30,150,195,225,209,255,98,103,64,151,233,112,109,43,124,5,5,178,76,110,227,2,192,2,35,182,207,61,69,61,132,143,87,80,117,170,64,235,158,204,124,212,142,124,121,66,171,58,79,90,141,29,244,211,30,87,131,182,106,138,237,249,64,245,173,32,207,105,242,112,138,115,212,81,193,185,108,74,54,213,30,77,218,143,219,209,91,222,219,254,182,94,73,200,26,151,161,31,175,10,199,115,103,6,84,133,254,139,187,198,239,144,31,114,64,254,49,236,97,158,128,29,50,155,66,233,151,77,208,237,239,130,209,192,236,155,209,146,13,234,66,14,56,187,157,75,37,47,38,50,150,227,223,188,188,138,104,52,151,227,26,81,250,117,88,66,52,16,159,145,124,41,182,53,129,178,21,46,34,181,39,121,150,247,76,211,201,29,91,168,10,87,216,25,86,135,178,134,240,176,24,247,244,189,157,96,180,93,120,125,165,150,104,235,27,162,175,93,147,227,122,228,104,103,208,178,198,208,200,139,37,3,187,137,157,33,206,87,109,141,134,83,109,82,141,28,207,19,192,177,120,97,242,210,16,97,164,204,226,95,242,2,86,101,201,212,220,94,25,70,219,97,172,254,125,193,196,160,93,255,118,99,99,8,55,53,165,46,173,85,225,52,31,154,125,89,197,124,218,253,77,176,189,146,195,93,191,10,77,125,225,218,159,34,124,51,161,171,33,87,203,149,128,15,191,66,11,123,135,103,209,159,129,37,38,201,144,222,222,101,143,220,235,238,173,180,54,28,32,55,148,40,128,215,169,68,132,227,101,221,135,153,209,110,230,142,110,140,227,134,221,7,39,145,245,123,231,166,248,210,98,255,239,36,66,92,163,9,178,105,61,201,48,78,22,94,32,95,127,187,185,107,84,130,141,120,146,194,55,244,233,60,7,151,198,247,119,215,240,148,13,97,202,244,203,143,213,93,83,38,9,224,206,46,21,210,172,210,221,37,183,67,46,84,136,97,234,131,77,176,65,174,109,176,73,125,179,245,253,156,211,40,178,2,229,82,6,82,124,32,99,212,56,178,164,183,225,175,223,235,210,116,116,93,141,173,154,16,206,113,68,184,19,183,42,107,129,9,6,28,234,190,150,217,107,126,80,228,140,249,18,169,161,98,35,134,12,6,36,235,78,147,191,190,62,40,103,207,140,165,110,63,94,107,35,56,22,208,142,255,158,35,174,245,233,127,178,125,155,71,39,180,129,95,134,173,227,195,68,51,7,143,3,181,148,71,94,92,127,13,249,68,206,220,138,13,215,201,41,35,123,79,199,63,159,99,233,246,48,99,18,24,81,192,199,255,55,180,167,137,58,95,182,139,231,245,59,219,250,21,241,3,5,186,171,195,233,105,51,192,39,106,254,243,28,218,251,132,78,252,157,117,45,60,218,29,49,176,167,33,53,128,236,198,191,32,121,89,231,65,125,133,104,30,255,12,206,189,38,237,168,85,69,182,68,188,57,253,167,178,200,217,193,180,133,117,79,149,59,204,250,180,33,28,245,64,61,0,44,83,231,50,20,121,42,228,4,31,239,214,74,206,166,110,219,84,202,198,196,66,159,35,162,220,158,144,120,15,198,239,159,104,67,40,106,138,172,150,149,0,155,131,104,17,24,220,94,222,95,42,167,21,105,78,160,85,127,241,146,236,165,152,153,119,186,43,92,184,93,226,104,71,66,6,238,41,177,227,37,101,51,174,121,180,15,28,63,44,146,243,92,41,33,238,201,76,196,170,60,187,22,72,89,151,221,40,121,95,35,187,163,220,179,250,1,16,46,89,209,123,102,102,123,117,163,138,168,161,155,207,146,241,58,8,19,129,45,253,160,72,168,98,106,234,144,39,148,14,246,241,144,22,10,120,120,92,46,99,13,241,211,5,211,86,76,111,125,136,164,191,220,31,196,123,84,116,18,35,146,52,97,242,245,226,15,93,236,255,250,114,48,117,37,117,241,110,140,196,13,187,43,61,217,139,242,152,123,65,109,116,142,42,62,191,182,44,168,114,144,235,26,193,108,229,109,197,77,63,156,87,243,80,102,112,32,18,240,201,75,224,227,216,162,251,158,39,191,209,114,16,32,105,81,25,208,43,131,177,232,222,229,195,151,236,141,215,121,151,253,146,192,23,0,28,194,104,202,51,181,62,39,242,123,103,90,129,163,176,9,83,42,116,149,128,163,190,233,188,23,180,205,210,92,77,107,185,125,220,207,53,245,118,167,90,92,239,242,74,67,204,225,42,76,44,56,66,212,14,21,242,128,242,121,161,31,21,166,77,165,176,39,167,220,61,208,57,10,118,205,218,210,100,120,213,6,203,67,23,252,22,59,223,43,174,68,58,255,188,237,252,58,226,167,179,135,34,232,53,150,137,141,118,100,90,29,26,227,154,167,168,118,125,182,177,235,16,64,248,51,138,99,206,50,160,186,209,174,126,139,245,24,135,157,110,102,111,162,141,105,36,104,141,177,142,176,78,219,158,124,13,147,89,50,43,131,66,86,149,2,240,114,219,2,231,253,180,119,22,179,115,126,115,191,246,128,243,181,138,177,102,186,251,36,194,33,170,106,232,114,22,234,153,9,202,163,12,86,219,214,233,169,54,137,187,185,22,213,90,45,11,189,144,145,133,252,58,128,195,116,192,240,87,89,9,70,77,230,185,248,9,7,55,254,139,1,81,39,181,214,67,3,185,186,53,96,150,1,96,30,220,156,90,35,11,199,147,126,233,117,62,78,233,75,105,181,163,59,58,26,163,77,223,158,37,22,211,27,200,36,211,219,147,176,144,148,86,93,253,16,142,62,248,16,108,184,225,228,132,196,240,213,73,120,171,119,28,106,250,37,57,197,116,140,220,84,233,68,183,10,155,32,133,244,32,206,236,104,47,184,55,157,56,236,196,201,247,229,167,215,81,33,200,67,200,151,11,7,19,155,173,9,229,209,141,12,229,173,31,145,212,39,255,168,60,220,53,186,139,93,217,55,39,184,16,223,213,84,174,177,36,75,245,76,90,56,224,250,221,168,98,186,129,210,213,25,10,87,20,23,175,139,4,45,196,67,178,167,24,140,38,254,168,217,95,129,138,62,216,211,95,92,208,41,94,167,60,6,246,183,244,115,107,146,42,41,23,252,139,96,197,18,21,127,97,40,159,95,70,48,178,33,122,77,9,233,227,193,171,235,148,197,171,76,212,123,162,198,142,38,59,126,173,11,72,98,139,213,89,194,232,68,136,219,44,111,183,117,234,7,30,119,7,120,18,148,97,94,37,195,219,81,186,39,91,81,61,19,217,184,53,251,176,62,31,173,229,8,209,197,125,248,150,240,79,87,28,16,119,182,158,77,223,171,245,220,57,10,35,245,166,223,48,49,154,12,118,120,187,25,170,88,118,142,138,62,7,144,41,201,165,21,250,184,81,136,111,87,66,1,129,232,145,221,25,211,48,22,170,14,170,89,173,52,114,45,219,41,226,93,8,93,148,221,18,183,199,210,195,119,118,160,70,230,244,72,199,117,96,9,135,7,154,105,42,39,193,242,187,123,61,43,219,129,15,87,124,113,149,4,199,122,152,112,94,111,178,167,145,164,93,70,58,15,30,153,229,140,216,233,129,149,99,221,103,170,128,95,9,183,156,67,69,202,31,164,189,121,53,223,99,223,88,9,77,210,70,251,202,30,31,207,100,251,85,101,24,254,17,23,95,144,239,196,96,1,11,77,215,70,156,142,27,203,127,187,113,161,230,214,93,166,196,149,244,5,154,196,147,123,207,8,85,130,88,8,35,88,21,219,203,84,86,44,170,159,133,12,116,136,121,183,225,26,219,58,59,60,238,60,161,182,180,79,4,27,137,38,78,31,134,33,15,158,252,144,241,119,173,235,154,63,178,238,140,243,44,140,121,154,14,226,29,245,113,26,100,16,137,133,181,201,109,24,57,84,41,55,40,154,107,200,127,254,241,45,240,118,20,120,238,151,69,114,106,89,27,106,116,6,152,233,253,86,239,106,88,8,100,201,101,97,126,75,223,86,140,61,219,117,39,186,255,239,6,226,198,221,12,159,61,153,188,209,147,1,17,207,84,63,182,59,80,252,72,106,86,94,85,103,63,103,164,130,137,249,229,136,162,156,0,195,202,124,154,94,214,67,94,231,149,169,187,147,139,204,252,112,113,202,223,110,105,130,163,62,153,102,112,204,119,132,173,227,47,133,154,41,1,39,23,51,94,18,36,122,70,193,156,145,150,51,37,14,247,12,155,209,89,255,87,189,250,191,233,184,233,233,92,235,92,244,139,182,126,104,1,124,67,253,112,101,181,23,54,245,172,105,95,39,79,41,0,43,106,213,149,181,241,183,246,113,235,222,111,53,94,29,182,128,231,65,189,170,133,41,223,210,86,116,241,219,98,67,194,69,120,237,226,12,229,171,112,177,129,237,188,50,76,188,50,132,191,248,233,251,218,71,62,100,141,177,6,216,9,202,218,64,64,116,53,206,177,29,116,194,21,201,30,110,173,126,178,4,219,188,191,153,74,11,199,139,116,98,147,38,214,224,33,157,217,201,60,210,125,105,177,245,255,156,189,194,94,243,35,55,244,175,221,142,74,118,105,68,196,255,217,182,46,62,99,131,182,252,189,212,64,122,190,195,59,116,178,44,209,236,212,32,38,231,30,98,1,216,118,200,98,88,138,240,43,101,176,129,53,143,60,79,15,176,248,45,83,110,222,240,43,124,229,218,188,211,30,143,195,243,248,27,221,205,230,98,185,196,32,72,169,98,163,212,113,213,163,157,59,18,195,142,245,59,113,20,55,177,173,131,131,78,2,207,79,38,188,102,211,117,110,100,166,185,199,5,192,96,40,237,236,107,52,212,169,186,79,96,225,57,133,12,160,87,2,74,238,199,147,90,119,200,253,94,27,227,55,191,116,57,150,224,51,123,165,176,6,118,72,96,237,19,10,231,15,88,175,148,39,126,138,160,159,24,250,250,90,190,18,206,242,14,94,119,189,56,34,57,80,117,247,166,172,203,191,252,75,207,97,116,208,72,98,15,61,248,154,128,148,189,156,202,143,228,139,228,196,223,105,190,226,115,238,31,28,106,179,215,76,163,42,242,57,211,120,189,18,77,169,250,118,114,211,2,172,8,179,7,8,193,96,209,216,172,27,25,215,64,84,223,18,97,100,65,238,71,193,124,20,100,73,124,239,30,82,5,240,62,163,163,174,36,83,54,36,230,143,231,242,130,227,42,166,173,210,183,87,189,15,58,50,76,16,24,201,231,149,198,172,168,243,211,219,233,149,181,65,155,223,98,174,31,167,50,101,7,167,173,17,181,213,48,43,112,9,118,239,233,239,56,192,67,123,239,132,40,119,248,97,220,134,127,185,179,159,51,179,223,119,5,20,97,28,191,125,189,167,138,134,218,26,26,67,197,11,136,204,149,207,161,13,115,24,104,168,105,197,33,219,169,114,126,198,32,36,22,187,13,242,59,117,188,75,125,230,204,39,12,96,159,50,193,206,212,238,185,154,65,255,214,228,174,183,26,190,27,85,58,87,59,35,169,226,214,218,63,34,26,106,208,77,165,122,165,153,5,19,73,149,227,196,250,245,247,238,247,61,38,147,249,9,200,223,150,44,90,126,150,165,242,99,70,210,188,190,82,89,161,52,160,141,164,84,223,208,6,10,69,142,102,216,159,38,185,222,124,42,234,193,50,131,22,107,150,80,43,164,18,198,28,70,179,51,10,136,173,219,204,24,164,254,228,73,88,204,15,197,137,97,8,141,115,102,229,50,59,170,97,232,38,127,164,172,124,45,99,171,63,23,206,8,76,148,229,254,130,127,204,41,153,160,150,59,51,174,103,161,17,174,21,247,197,107,120,144,241,98,241,235,222,62,200,120,144,125,254,192,89,87,141,65,89,63,192,100,8,238,11,149,232,174,82,15,157,152,1,2,120,129,18,22,167,167,79,244,250,166,102,17,96,233,187,200,160,123,88,84,60,140,147,163,164,250,128,49,28,22,21,146,161,219,141,135,198,18,187,174,74,128,195,134,7,14,213,148,214,51,52,136,48,30,218,189,40,253,178,201,53,114,178,165,249,191,93,172,127,176,254,189,5,29,71,103,81,14,240,149,227,74,200,34,117,210,45,100,255,202,176,186,19,19,144,196,18,112,32,54,222,101,201,119,207,92,145,229,24,247,151,194,6,167,27,41,106,153,239,4,191,159,194,234,64,221,190,159,144,87,30,32,63,112,130,35,53,32,176,116,112,117,93,190,143,209,227,24,60,202,162,151,79,199,159,151,65,167,25,125,127,219,177,84,97,229,22,216,191,198,53,17,134,89,81,169,222,47,117,161,162,100,111,138,242,108,67,71,173,239,90,216,254,111,139,63,242,170,79,39,129,101,20,75,226,175,249,251,190,244,18,197,157,242,226,45,115,133,112,135,129,36,184,103,107,32,162,184,52,82,169,204,116,66,238,188,129,91,6,97,206,132,28,62,116,208,89,45,250,10,67,143,168,47,175,207,56,159,204,25,230,142,170,239,27,75,231,0,52,109,229,208,157,247,214,98,70,107,179,99,70,33,24,16,110,199,57,52,29,244,217,37,113,249,30,17,58,249,160,101,164,124,192,23,35,139,93,188,4,199,201,246,71,47,39,128,194,249,180,57,238,68,102,191,156,177,129,78,39,129,151,231,211,242,77,103,194,65,195,24,211,169,47,172,246,72,201,20,109,110,156,101,6,47,3,34,34,229,212,15,209,5,132,210,9,187,32,132,2,101,89,72,129,138,31,129,186,191,88,17,71,82,242,205,2,135,217,154,162,35,80,231,28,202,3,17,155,41,108,56,211,121,161,72,1,180,175,141,42,183,3,233,248,235,47,97,133,83,60,192,138,103,1,20,151,203,57,142,15,222,157,245,69,239,22,186,18,62,1,176,213,218,182,189,209,42,14,175,95,36,221,68,108,189,150,186,83,102,30,65,67,191,20,142,245,148,255,69,127,193,195,104,0,252,26,197,247,69,235,36,0,158,173,229,95,109,95,216,93,162,159,167,190,205,155,30,77,140,66,20,151,26,35,179,46,226,55,185,193,29,38,98,129,251,27,23,37,78,95,86,83,120,32,177,190,169,209,72,76,79,226,89,57,101,230,37,70,239,92,105,166,187,227,116,214,53,215,33,68,136,68,91,6,157,176,18,30,219,142,66,241,201,105,105,158,51,172,251,36,248,236,23,207,21,130,189,20,110,155,35,82,45,110,74,89,164,137,200,149,61,229,204,33,120,174,250,130,190,246,219,203,41,103,120,102,78,210,242,173,243,54,65,17,106,100,83,17,243,244,58,201,103,213,131,4,221,125,125,145,203,140,55,249,224,14,255,149,83,230,113,91,228,217,115,92,251,193,16,5,171,53,158,144,222,54,199,209,17,120,189,198,233,249,240,231,129,255,242,194,154,50,53,11,99,173,251,220,171,221,192,85,189,81,13,100,96,134,252,170,128,141,129,144,202,245,175,6,34,242,8,179,103,65,189,26,99,233,49,234,143,122,176,16,209,210,91,207,31,138,0,83,56,32,26,186,137,34,233,100,117,43,161,236,159,119,218,57,163,238,31,71,97,45,177,144,104,36,228,80,16,14,18,91,64,166,121,116,167,110,92,118,123,212,36,8,114,40,119,42,149,235,232,57,17,49,41,102,194,234,157,223,205,107,173,4,40,245,255,181,10,79,17,195,190,8,226,1,61,196,29,179,48,243,74,33,198,201,1,79,151,47,251,41,200,148,135,91,190,152,87,241,76,33,198,191,217,231,217,106,167,116,104,30,26,52,63,146,189,54,170,100,193,95,177,220,214,168,132,190,8,146,207,84,243,254,204,187,18,205,189,194,249,250,22,176,198,60,254,218,177,121,97,57,168,135,196,231,45,62,244,233,180,80,53,144,113,84,147,198,204,19,180,172,77,41,198,108,86,212,174,203,49,174,174,244,46,26,18,135,147,176,189,9,218,251,15,56,93,213,225,101,189,172,150,130,120,102,192,160,222,63,143,174,50,75,211,207,201,6,46,115,25,222,174,119,246,113,134,103,6,40,179,151,61,195,110,157,10,185,17,37,189,218,34,111,126,203,145,172,214,45,107,5,176,74,99,97,61,138,5,143,100,42,88,209,116,125,242,233,26,223,218,119,110,17,39,203,228,111,155,23,146,156,138,94,107,197,27,149,92,119,55,255,227,137,55,60,18,255,162,50,121,219,233,22,27,51,128,174,124,169,229,255,122,246,133,119,39,103,56,46,45,187,54,74,47,107,213,112,68,213,74,168,221,21,250,5,126,153,49,226,182,9,23,87,125,26,89,221,192,213,20,162,149,209,37,122,35,79,3,238,92,167,237,254,79,181,254,197,241,226,69,149,208,214,206,5,3,212,241,33,201,239,121,11,61,37,38,121,175,154,141,154,10,165,91,140,204,181,158,171,96,219,224,155,37,92,203,2,173,187,198,113,157,38,210,230,245,229,5,95,141,93,210,31,139,127,177,206,185,201,209,57,5,47,229,39,242,253,79,88,224,182,60,241,66,141,83,234,238,164,199,238,99,169,204,230,35,253,190,33,209,199,147,249,225,224,175,222,201,170,22,245,206,37,95,120,3,115,124,223,27,21,72,79,40,24,187,132,144,66,186,68,39,7,70,134,140,84,216,44,147,215,47,110,165,67,102,252,211,26,206,15,151,5,90,0,60,135,61,210,183,71,186,246,76,13,156,61,254,157,125,224,203,93,133,142,184,206,249,215,81,190,251,223,201,93,210,89,181,220,198,163,71,126,107,27,246,237,83,87,236,7,77,191,65,211,191,203,218,192,124,89,65,201,245,231,141,162,96,242,202,193,22,103,71,94,168,72,71,254,133,136,218,136,132,135,157,186,130,240,10,212,220,118,144,136,77,190,70,17,250,211,216,28,70,189,143,233,221,213,80,105,64,253,110,205,40,200,12,239,159,12,48,123,187,45,54,246,180,99,12,46,82,147,166,138,115,60,179,212,62,110,3,210,238,249,26,235,106,153,124,37,115,75,221,84,101,148,212,7,216,173,89,23,19,169,95,194,233,174,219,95,169,14,122,49,179,204,208,139,109,82,23,151,88,63,230,68,227,158,22,161,148,108,191,164,80,229,101,92,180,197,95,254,118,230,14,31,104,177,5,59,138,150,89,217,142,92,195,111,86,58,72,85,53,173,235,157,7,125,8,215,246,132,247,14,14,64,187,175,175,215,240,162,239,194,218,233,147,167,129,128,133,61,61,64,83,12,80,185,157,50,183,156,74,116,213,203,104,52,200,72,196,222,10,61,122,93,58,242,132,205,250,43,105,159,25,18,32,162,222,245,190,133,172,242,212,233,47,247,245,174,247,48,191,114,210,13,255,191,27,196,199,9,62,205,165,241,214,113,111,165,176,95,232,151,202,189,6,46,140,123,51,83,170,157,43,166,159,228,37,24,149,124,218,215,255,13,187,113,20,83,187,196,72,34,171,84,110,80,76,147,28,184,143,0,21,168,40,212,38,72,143,6,61,156,2,133,101,160,111,1,219,243,121,117,226,221,50,16,219,239,27,57,158,23,119,118,230,201,134,232,252,89,182,133,71,43,181,47,174,252,12,120,97,3,234,204,138,99,104,224,45,100,26,154,116,180,63,234,156,39,194,20,119,163,165,253,11,37,126,55,57,58,249,239,195,216,210,217,200,34,185,86,200,214,50,185,31,226,123,168,246,196,214,245,57,94,174,209,211,151,255,80,237,113,222,254,201,175,86,250,182,54,46,105,242,64,203,100,241,35,11,78,137,252,68,7,112,57,163,118,180,216,57,205,89,195,42,89,149,120,236,79,87,107,225,28,138,61,64,67,213,238,55,55,127,236,213,14,171,162,54,13,78,104,117,247,113,149,201,13,22,57,48,154,104,249,86,167,1,201,170,167,138,26,177,130,198,251,10,215,80,190,111,37,77,36,170,77,161,24,75,36,132,255,137,142,40,43,207,89,122,66,113,48,167,169,252,60,197,94,38,158,244,34,46,169,165,230,138,244,104,69,233,242,68,211,71,30,47,44,111,211,203,74,136,246,173,225,7,113,100,88,18,109,9,39,156,72,130,44,63,16,115,90,227,107,53,74,51,122,247,129,121,231,49,227,141,129,220,255,200,85,117,171,232,90,104,223,176,156,93,197,159,139,152,8,143,87,176,163,174,87,0,195,208,187,2,59,247,244,130,62,92,155,16,133,114,190,236,114,82,28,121,245,163,190,138,222,251,118,146,83,142,248,115,42,131,87,17,251,195,84,87,220,33,236,106,171,12,69,125,123,100,184,35,176,53,240,179,121,11,155,101,201,116,205,202,187,127,55,81,122,154,30,171,50,195,51,225,199,179,69,138,189,5,170,60,166,255,14,156,196,61,148,247,42,90,221,220,123,103,93,176,253,248,183,38,155,60,178,162,124,127,192,33,241,166,64,190,65,215,188,132,114,174,204,74,238,186,197,104,211,93,54,248,200,243,237,196,154,184,181,247,144,194,53,175,57,241,169,227,217,7,103,203,160,179,178,25,39,224,221,190,214,111,164,229,47,44,186,117,247,37,174,200,248,155,173,71,56,53,153,205,158,245,135,52,102,255,79,102,125,82,194,28,72,117,79,108,95,6,81,77,223,201,228,90,20,155,71,190,61,132,68,120,120,55,161,205,152,99,49,159,219,23,201,197,113,49,183,138,83,221,23,195,68,123,204,92,181,38,161,115,178,235,124,111,230,146,238,132,225,26,199,71,81,129,44,176,103,241,135,249,128,87,22,0,158,77,77,33,103,196,143,16,91,39,242,155,167,167,82,174,173,221,74,129,124,84,103,233,90,221,30,126,225,227,198,71,134,69,229,68,45,57,175,55,249,88,252,206,31,52,117,252,219,135,21,130,122,130,103,67,135,100,100,147,56,118,188,228,157,147,142,43,29,167,221,106,239,38,124,197,33,47,41,211,23,162,115,227,55,101,21,87,34,157,116,181,93,131,201,130,176,71,18,243,186,83,240,204,119,11,149,132,241,151,131,197,238,255,37,215,78,128,206,191,186,192,17,94,141,186,191,220,254,246,11,253,35,239,199,30,165,143,125,247,79,221,225,224,46,174,125,165,169,209,138,45,79,5,125,249,204,195,183,24,238,149,94,92,148,76,83,189,206,199,8,182,131,107,225,255,238,32,95,199,111,110,55,232,142,127,222,45,88,97,98,95,6,182,28,2,67,157,10,113,154,184,207,98,94,91,151,158,58,114,86,21,1,39,87,16,232,27,142,125,77,160,184,205,124,155,16,33,40,39,69,121,171,91,87,173,6,195,50,213,49,121,53,122,61,219,117,255,50,110,115,180,201,161,95,253,97,145,86,197,75,66,127,163,174,221,87,127,189,31,239,27,77,119,242,18,80,172,121,13,122,135,169,229,210,222,251,171,166,113,42,174,42,243,26,22,153,183,17,145,195,4,235,194,139,69,216,200,129,71,50,5,251,10,170,119,37,85,229,196,145,112,65,241,210,104,133,4,108,141,174,214,80,85,81,217,77,195,132,26,245,75,11,60,66,189,225,8,165,159,122,114,43,20,21,9,227,101,199,204,157,236,71,160,84,212,1,144,82,218,108,171,231,137,235,88,84,30,8,61,157,95,74,138,252,217,170,219,129,135,156,241,164,157,20,198,136,150,230,19,98,227,113,223,100,177,126,184,202,81,211,198,171,229,13,167,150,41,201,218,4,27,124,85,46,44,109,152,115,189,205,124,74,2,113,231,62,225,246,124,241,171,143,29,6,114,224,131,17,79,178,93,75,87,135,169,223,80,191,156,202,76,44,214,2,121,190,71,216,21,161,65,175,211,221,9,123,213,127,126,78,37,12,115,80,201,150,142,253,22,234,225,137,43,93,110,0,96,234,74,147,176,9,254,171,162,228,136,140,245,96,195,158,220,36,35,144,225,191,109,144,143,216,229,99,104,159,212,176,123,189,154,102,188,138,163,199,126,31,33,193,17,213,137,42,185,26,175,45,11,32,103,51,3,130,43,171,126,119,89,205,25,129,173,232,155,181,16,136,1,130,188,137,124,24,108,154,171,62,115,31,237,96,48,254,105,133,101,2,164,171,109,181,98,50,137,204,244,246,245,224,239,161,177,146,104,134,72,196,52,233,159,87,240,21,48,168,235,90,184,54,207,33,254,43,164,175,242,98,135,128,31,18,125,178,133,210,245,80,222,212,12,62,107,3,142,197,163,124,126,130,235,137,253,19,92,27,208,231,151,109,70,219,165,70,175,94,152,80,193,198,84,28,168,160,154,15,195,94,77,33,59,20,225,239,114,55,255,250,130,155,110,212,106,207,216,27,161,250,28,216,76,208,222,146,250,91,146,93,124,156,192,90,99,164,242,135,168,16,39,189,210,85,76,174,236,37,254,91,76,211,94,79,255,50,15,107,58,175,118,241,102,44,213,71,48,134,107,194,36,54,180,130,173,26,30,143,13,81,254,243,151,176,221,198,170,86,221,129,176,59,249,172,231,46,220,111,108,173,5,157,236,217,160,183,48,145,81,114,216,146,118,17,75,11,71,246,133,45,146,172,141,220,39,207,219,76,80,213,246,151,66,94,12,18,104,208,122,21,145,232,105,134,158,71,105,96,212,24,120,129,184,211,204,128,95,187,130,102,102,20,137,207,99,184,231,219,249,23,182,243,227,149,56,31,172,113,130,184,13,163,220,5,239,185,194,104,226,246,12,166,182,67,41,42,142,20,42,160,179,239,44,115,184,223,21,34,92,125,200,218,51,165,18,105,53,165,135,181,166,85,18,163,248,230,125,137,122,100,229,96,20,166,52,130,181,22,228,152,1,68,53,200,18,231,43,23,175,174,54,178,119,232,118,139,195,227,116,29,216,99,166,244,158,189,201,184,229,198,164,243,50,135,133,118,118,201,105,71,112,197,18,248,41,176,18,234,134,162,195,57,99,248,200,75,200,47,167,246,212,250,64,239,255,1]),s=new(i())(a),u=Math.log2||function(e){return Math.log(e)/Math.LN2},c=function(e){return u(e)+1|0},M=c(o.categories.length-1),m=c(o.combiningClasses.length-1),l=c(o.scripts.length-1),d=c(o.eaw.length-1),h=m+l+d+10,f=l+d+10,p=d+10,y=(1<>h&y]},w=function(e){var t=s.get(e);return o.combiningClasses[t>>f&g]},S=function(e){var t=s.get(e);return o.scripts[t>>p&E]},C=function(e){var t=s.get(e);return o.eaw[t>>10&v]},A=function(e){var t=s.get(e),n=1023&t;if(0===n)return null;if(n<=50)return n-1;if(n<480)return((n>>4)-12)/(1+(15&n));if(n<768){t=(n>>5)-14;for(var r=2+(31&n);r>0;)t*=10,r--;return t}t=(n>>2)-191;for(var i=1+(3&n);i>0;)t*=60,i--;return t},_=function(e){var t=b(e);return"Lu"===t||"Ll"===t||"Lt"===t||"Lm"===t||"Lo"===t||"Nl"===t},H=function(e){return"Nd"===b(e)},k=function(e){var t=b(e);return"Pc"===t||"Pd"===t||"Pe"===t||"Pf"===t||"Pi"===t||"Po"===t||"Ps"===t},P=function(e){return"Ll"===b(e)},N=function(e){return"Lu"===b(e)},T=function(e){return"Lt"===b(e)},R=function(e){var t=b(e);return"Zs"===t||"Zl"===t||"Zp"===t},B=function(e){var t=b(e);return"Nd"===t||"No"===t||"Nl"===t||"Lu"===t||"Ll"===t||"Lt"===t||"Lm"===t||"Lo"===t||"Me"===t||"Mc"===t},D=function(e){var t=b(e);return"Mn"===t||"Me"===t||"Mc"===t},F={getCategory:b,getCombiningClass:w,getScript:S,getEastAsianWidth:C,getNumericValue:A,isAlphabetic:_,isDigit:H,isPunctuation:k,isLowerCase:P,isUpperCase:N,isTitleCase:T,isWhiteSpace:R,isBaseForm:B,isMark:D}},60154:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)).clone;t.default=i},29594:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(2,(function(e,t){return i.evolve({y:i.add(e),height:i.subtract(i.__,e)})(t)}));t.default=o},62297:function(e,t,n){"use strict";var r=n(51418);t.Z=void 0;var i=r(n(75066)),o=r(n(63944)),a=r(n(42054)),s=r(n(90343)),u=function(e,t){var n=t.xOffset,r=void 0===n?0:n,i=t.yOffset,o=void 0===i?0:i,a=t.width,s=t.height,u=t.image;e.translate(-a+r,-s+o),e.image(u,0,0,{fit:[a,s],align:"center",valign:"bottom"})},c=function(e,t,n){var r=t.attributes,s=r.font,c=r.fontSize,M=r.color,m=r.link,l=r.opacity,d=(0,i.default)(t),h=(0,o.default)(t),f=(0,a.default)(t);if(n.outlineRuns&&e.rect(0,-d,f,d).stroke(),e.fillColor(M),e.fillOpacity(l),m&&e.link(0,-d-h,f,d,m),function(e,t){e.save();for(var n=t.attributes.font,r=n.glyphForCodePoint(32),i=n.glyphForCodePoint(65532),o=0,a=0;a=i.length)break;l=i[u++]}else{if((u=i.next()).done)break;l=u.value}var d=l;if(d.attributes.backgroundColor){var h={x:0,y:-r,height:t.box.height,width:(0,a.default)(d)-t.overflowRight};M(e,h,d.attributes.backgroundColor)}c(e,d,n)}e.restore(),e.save(),e.translate(t.box.x,t.box.y);var f=t.decorationLines,p=Array.isArray(f),y=0;for(f=p?f:f[Symbol.iterator]();;){var g;if(p){if(y>=f.length)break;g=f[y++]}else{if((y=f.next()).done)break;g=y.value}m(e,g)}e.restore()},d=function(e,t,n){var r=t,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}l(e,a,n)}},h={render:function(e,t,n){void 0===n&&(n={});var r=t,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}d(e,a,n)}}};t.Z=h},86250:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(2,(function(e,t){return i.evolve({start:i.add(e),end:i.add(e)})(t)}));t.default=o},42054:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.compose(i.reduce(i.useWith(i.add,[i.identity,i.propOr(0,"xAdvance")]),0),i.propOr([],"positions"));t.default=o},5766:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(62675)),s=o.curryN(3,(function(e,t,n){var r=o.propOr(0,"start",n),i=Math.max(0,(0,a.default)(e-r,n)),s=Math.max(0,(0,a.default)(t-r,n));return o.compose(o.reduce(o.useWith(o.add,[o.identity,o.propOr(0,"xAdvance")]),0),o.slice(i,s),o.propOr([],"positions"))(n)}));t.default=s},73330:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(71647)),s=r(n(64324)),u=r(n(92763)),c=r(n(82396)),M=r(n(79925)),m=r(n(87297)),l=o.curryN(2,(function(e,t){if(!e)return(0,a.default)(t);var n=(0,u.default)(t);return function(e,t){var n=(0,s.default)(t),r=o.length(e.codePoints);return o.evolve({end:o.add(r),glyphs:o.append(e),glyphIndices:(0,M.default)(r),positions:o.append({xAdvance:e.advanceWidth*n})})(t)}((0,c.default)(e)?(0,m.default)(e,n):e,t)}));t.default=l},79357:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(64324)),s=o.ifElse(o.has("attributes"),o.pathOr(0,["attributes","font","ascent"]),o.always(0)),u=o.converge(o.max,[o.pathOr(0,["attributes","attachment","height"]),o.converge(o.multiply,[a.default,s])]);t.default=u},99732:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(90409)),s=r(n(37049)),u=o.flip(o.merge),c=o.flip(o.concat),M=o.curryN(2,(function(e,t){return o.evolve({end:o.add((0,a.default)(t)),glyphs:c(o.prop("glyphs",t)),positions:c(o.prop("positions",t)),attributes:u(o.prop("attributes",t)),glyphIndices:o.compose(s.default,c(o.map(o.compose(o.inc,o.add(o.last(o.propOr([],"glyphIndices",e))||0)),o.propOr([],"glyphIndices",t))))})(e)}));t.default=M},71647:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.evolve({glyphs:i.map(i.identity),positions:i.clone,glyphIndices:i.clone,attributes:i.evolve({font:i.identity})});t.default=o},63944:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(64324)),s=o.ifElse(o.has("attributes"),o.pathOr(0,["attributes","font","descent"]),o.always(0)),u=o.converge(o.multiply,[a.default,s]);t.default=u},61401:function(e,t,n){"use strict";var r=n(51418);t.__esModule=!0,t.default=void 0;var i=r(n(24655)),o=function(e){return(0,i.default)(0,e.end-e.start-1,e)};t.default=o},29646:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)).always({start:0,end:0,glyphIndices:[],glyphs:[],positions:[],attributes:{}});t.default=i},13244:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(99423)),s=o.curryN(3,(function(e,t,n){var r=(0,a.default)(e,n),i=o.max((0,a.default)(t-1,n),r);return o.slice(r,i+1,n)}));t.default=s},71160:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(99290)),s=r(n(11951)),u=o.o(o.sort((function(e,t){return e[1]-t[1]||e[3]-t[3]})),o.addIndex(o.chain)((function(e,t){return[["start",e.start,e.attributes,t],["end",e.end,e.attributes,t]]}))),c=o.compose(o.map(o.reduce(o.mergeDeepWithKey((function(e,t,n){return"attributes"===e?o.merge(t,n):n})),{})),o.groupWith(o.eqProps("start"))),M=function(e){var t=[],n=-1,r={},i=[],a=u(e),s=Array.isArray(a),c=0;for(a=s?a:a[Symbol.iterator]();;){var M;if(s){if(c>=a.length)break;M=a[c++]}else{if((c=a.next()).done)break;M=c.value}var m=M,l=m[0],d=m[1],h=m[2];if(-1!==n&&ne)return r;n+=u,r+=i.pathOr(0,[s,"codePoints","length"],o)}return r}));t.default=o},20385:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(71647)),s=r(n(24655)),u=r(n(99732)),c=r(n(73330)),M=r(n(92763)),m=r(n(82396)),l=r(n(87297)),d=o.curryN(3,(function(e,t,n){var r=(0,M.default)(n);return function(e,t,n){if(!t)return(0,a.default)(n);var r=(0,s.default)(0,e,n),i=(0,s.default)(e,1/0,n);return(0,u.default)((0,c.default)(t,r),i)}(e,(0,m.default)(t)?(0,l.default)(t,r):t,n)}));t.default=d},11951:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.converge(i.equals,[i.prop("start"),i.prop("end")]);t.default=o},79277:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(6394)),s=o.converge(o.slice(0),[o.compose(o.length,o.takeWhile(a.default),o.propOr([],"glyphs")),o.propOr([],"positions")]),u=o.compose(o.ifElse(o.isEmpty,o.always(0),o.compose(o.sum,o.map(o.propOr(0,"xAdvance")))),s);t.default=u},90409:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.converge(i.subtract,[i.prop("end"),i.prop("start")]);t.default=o},29256:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(64324)),s=o.converge(o.multiply,[a.default,o.pathOr(0,["attributes","font","lineGap"])]);t.default=s},44758:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(2,(function(e,t){var n=i.pathOr(null,["glyphIndices",e],t);return i.compose(i.length,i.dropWhile(i.gt(n)),i.slice(0,e),i.propOr([],"glyphIndices"))(t)}));t.default=o},84107:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(2,(function(e,t){return i.evolve({attributes:i.dissoc(e)})(t)}));t.default=o},9217:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(71647)),s=r(n(64324)),u=r(n(92763)),c=r(n(82396)),M=r(n(11412)),m=r(n(87297)),l=o.curryN(2,(function(e,t){if(!e)return(0,a.default)(t);var n=(0,u.default)(t);return function(e,t){var n=(0,s.default)(t),r=o.length(e.codePoints);return o.evolve({end:o.add(r),glyphIndices:(0,M.default)(r),glyphs:o.prepend(e),positions:o.prepend({xAdvance:e.advanceWidth*n})})(t)}((0,c.default)(e)?(0,m.default)(e,n):e,t)}));t.default=l},99423:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(77096)),s=o.curryN(2,(function(e,t){return o.findIndex((0,a.default)(o.prop("start"),o.prop("end"),e))(t)}));t.default=s},64324:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=["font","unitsPerEm"],a=i.compose(i.ifElse(i.compose(i.not,i.isNil,i.path(o)),i.converge(i.divide,[i.propOr(12,"fontSize"),i.path(o)]),i.always(0)),i.propOr({},"attributes")),s=i.either(i.path(["attributes","scale"]),a);t.default=s},24655:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(64324)),s=r(n(44758)),u=r(n(92763)),c=r(n(62535)),M=r(n(62675)),m=r(n(37049)),l=o.curryN(3,(function(e,t,n){var r=(0,a.default)(n),i=(0,u.default)(n),l=(0,M.default)(e,n),d=(0,M.default)(t,n),h=o.path(["glyphs",l],n),f=o.path(["glyphs",d],n),p=(0,s.default)(e,n),y=p>0?(0,c.default)(p,1/0,i,h):[],g=(0,s.default)(t,n),E=(0,c.default)(0,g,i,f),v=Math.min(1,p);return o.evolve({start:o.add(e),end:o.compose(o.apply(o.min),o.juxt([o.identity,o.o(o.add(t),o.always(n.start))])),glyphs:function(e){return o.flatten([y,e.slice(l+v,d),E])},positions:function(e){return o.flatten([y.map((function(e){return{xAdvance:e.advanceWidth*r}})),e.slice(l+v,d),E.map((function(e){return{xAdvance:e.advanceWidth*r}}))])},glyphIndices:o.o(m.default,o.slice(e,t)),attributes:o.identity})(n)}));t.default=l},99290:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)).sort((function(e,t){return e.start-t.start||e.end-t.end}));t.default=i},91285:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(2,(function(e,t){return i.evolve({start:i.subtract(i.__,e),end:i.subtract(i.__,e)})(t)}));t.default=o},44897:function(e,t,n){"use strict";var r=n(51418),i=n(17790);t.__esModule=!0,t.default=void 0;var o=i(n(15150)),a=r(n(6394)),s=o.converge(o.slice(0),[o.compose(o.length,o.takeWhile(a.default),o.reverse,o.propOr([],"glyphs")),o.compose(o.reverse,o.propOr([],"positions"))]),u=o.compose(o.ifElse(o.isEmpty,o.always(0),o.compose(o.sum,o.map(o.propOr(0,"xAdvance")))),s);t.default=u},77096:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(3,(function(e,t,n){return i.both(i.o(i.gte(n),e),i.o(i.lt(n),t))}));t.default=o},82396:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)).is(Number);t.default=i},37763:function(e,t,n){"use strict";var r=n(17790);t.__esModule=!0,t.default=void 0;var i=r(n(15150)),o=i.curryN(2,(function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=t.length-1;return i.addIndex(i.map)((function(t,r){return 0===r?i.head(e)(t,r):r===n?i.last(e)(t,r):(e[1]||e[0])(t,r)}))(t)}));t.default=o},84836:function(e,t){"use strict";t.__esModule=!0,t.default=void 0;var n=function(e){return String.fromCodePoint.apply(String,e)};t.default=n},60973:function(e,t,n){"use strict";n.d(t,{ME:function(){return l},aB:function(){return m},dr:function(){return M}});var r=n(11837),i=n(91121),o=n(76870),a=n(59153),s=n(88805),u=n(26286),c=n(72477);function M(e,t,n){var r=l(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return(0,o.EG)(r,{handled:!0,type:"generic"}),r.level=i.z.Error,n&&n.event_id&&(r.event_id=n.event_id),a.c.resolve(r)}function m(e,t,n,r){void 0===n&&(n=i.z.Info);var o=d(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),a.c.resolve(o)}function l(e,t,n){var i;if(void 0===n&&(n={}),(0,s.VW)(e)&&e.error)return e=e.error,i=(0,u.Vf)((0,c._)(e));if((0,s.TX)(e)||(0,s.fm)(e)){var a=e,M=a.name||((0,s.TX)(a)?"DOMError":"DOMException"),m=a.message?M+": "+a.message:M;return i=d(m,t,n),(0,o.Db)(i,m),"code"in a&&(i.tags=(0,r.pi)((0,r.pi)({},i.tags),{"DOMException.code":""+a.code})),i}if((0,s.VZ)(e))return i=(0,u.Vf)((0,c._)(e));if((0,s.PO)(e)||(0,s.cO)(e)){var l=e;return i=(0,u.QI)(l,t,n.rejection),(0,o.EG)(i,{synthetic:!0}),i}return i=d(e,t,n),(0,o.Db)(i,""+e,void 0),(0,o.EG)(i,{synthetic:!0}),i}function d(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=(0,c._)(t),o=(0,u.LU)(i.stack);r.stacktrace={frames:o}}return r}},26286:function(e,t,n){"use strict";n.d(t,{LU:function(){return c},QI:function(){return s},Vf:function(){return u},__:function(){return a}});var r=n(88805),i=n(35708),o=n(72477);function a(e){var t=c(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function s(e,t,n){var a={exception:{values:[{type:(0,r.cO)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,i.zf)(e)}]},extra:{__serialized__:(0,i.Qy)(e)}};if(t){var s=c((0,o._)(t).stack);a.stacktrace={frames:s}}return a}function u(e){return{exception:{values:[a(e)]}}}function c(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}},88003:function(e,t,n){"use strict";n.d(t,{S1:function(){return ye},jp:function(){return ge}});var r=n(11837);var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var e=[],t=0;t1&&(M=l.slice(0,-1).join("/"),m=l.pop()),m){var d=m.match(/^\d+/);d&&(m=d[0])}this._fromComponents({host:s,pass:a,path:M,projectId:m,port:c,protocol:r,publicKey:i})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new w("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new w("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new w("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new w("Invalid Dsn: Invalid port "+this.port)},e}(),_=n(88805),H=n(59153),k=n(39846),P=n(35708),N=[];function T(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function R(e){var t={};return function(e){var t=e.defaultIntegrations&&s(e.defaultIntegrations)||[],n=e.integrations,r=s(T(t));Array.isArray(n)?r=s(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),T(n)):"function"===typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((function(e){return e.name})),o="Debug";return-1!==i.indexOf(o)&&r.push.apply(r,s(r.splice(i.indexOf(o),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===N.indexOf(e.name)&&(e.setupOnce(c.c,M.Gd),N.push(e.name),m.k.log("Integration installed: "+e.name))}(e)})),t}var B,D=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new A(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=(0,_.pt)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){this._isEnabled()?"string"!==typeof e.release?m.k.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):m.k.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=R(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return m.k.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,a=!1,s=!1,u=t.exception&&t.exception.values;if(u){s=!0;try{for(var c=o(u),M=c.next();!M.done;M=c.next()){var m=M.value.mechanism;if(m&&!1===m.handled){a=!0;break}}}catch(d){n={error:d}}finally{try{M&&!M.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var l=e.status===E.$.Ok;(l&&0===e.errors||l&&a)&&(e.update(i(i({},a&&{status:E.$.Crashed}),{errors:e.errors||Number(s||a)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new H.c((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions().normalizeDepth,a=void 0===o?3:o,s=i(i({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,l.DM)()),timestamp:e.timestamp||(0,k.yW)()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var u=t;n&&n.captureContext&&(u=c.s.clone(u).update(n.captureContext));var M=H.c.resolve(s);return u&&(M=u.applyToEvent(s,n)),M.then((function(e){return"number"===typeof a&&a>0?r._normalizeEvent(e,a):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=i(i(i(i(i({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return i(i({},e),e.data&&{data:(0,P.Fv)(e.data,t)})}))}),e.user&&{user:(0,P.Fv)(e.user,t)}),e.contexts&&{contexts:(0,P.Fv)(e.contexts,t)}),e.extra&&{extra:(0,P.Fv)(e.extra,t)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var r=this.getOptions()._experiments;return(void 0===r?{}:r).ensureNoCircularStructures?(0,P.Fv)(n):n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,d.$G)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,d.$G)(s.value,a));var u=e.request;u&&u.url&&(u.url=(0,d.$G)(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=s(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){m.k.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return H.c.reject(new w("SDK not enabled, will not capture event."));var s="transaction"===e.type;return!s&&"number"===typeof a&&Math.random()>a?H.c.reject(new w("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new w("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!o)return e;var n=o(e,t);return r._ensureBeforeSendRv(n)})).then((function(e){if(null===e)throw new w("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof w)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new w("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e.prototype._ensureBeforeSendRv=function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,_.J8)(e))return e.then((function(e){if(!(0,_.PO)(e)&&null!==e)throw new w(t);return e}),(function(e){throw new w("beforeSend rejected with "+e)}));if(!(0,_.PO)(e)&&null!==e)throw new w(t);return e},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(B||(B={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(B||(B={}));var F=function(){function e(){}return e.prototype.sendEvent=function(e){return H.c.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:B.Skipped})},e.prototype.close=function(e){return H.c.resolve(!0)},e}(),I=function(){function e(e){this._options=e,this._options.dsn||m.k.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new w("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new w("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){m.k.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){m.k.error("Error while sending session: "+e)})):m.k.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new F},e}(),x=n(91121),O=n(34678),L=n(60973);function j(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function z(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=s(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=s(e.sdk.packages||[],t.packages||[]),e):e}function Q(e,t){var n=j(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(i(i({sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function G(e,t){var n=j(t),r=e.type||"event",o="transaction"===r||t.forceEnvelope(),a=e.debug_meta||{},s=a.transactionSampling,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0&&n(!1)}),e);H.c.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),X={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},J=function(){function e(e){this.options=e,this._buffer=new U(30),this._rateLimits={},this._api=new W(e.dsn,e._metadata,e.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new w("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,o=e.reject,a=B.fromHttpCode(n.status);this._handleRateLimit(r)&&m.k.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),a!==B.Success?o(n):i({status:a})},e.prototype._disabledUntil=function(e){var t=X[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,i,o,a=Date.now(),s=e["x-sentry-rate-limits"],u=e["retry-after"];if(s){try{for(var c=(0,r.XA)(s.trim().split(",")),M=c.next();!M.done;M=c.next()){var m=M.value.split(":",2),d=parseInt(m[0],10),h=1e3*(isNaN(d)?60:d);try{for(var f=(i=void 0,(0,r.XA)(m[1].split(";"))),p=f.next();!p.done;p=f.next()){var y=p.value;this._rateLimits[y||"all"]=new Date(a+h)}}catch(g){i={error:g}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}}catch(E){t={error:E}}finally{try{M&&!M.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!u&&(this._rateLimits.all=new Date(a+(0,l.JY)(a,u)),!0)},e}();var K=function(e){function t(t,n){void 0===n&&(n=function(){var e,t,n=(0,l.Rf)();if((0,O.Du)(n.fetch))return n.fetch.bind(n);var r=n.document,i=n.fetch;if("function"===typeof(null===(e=r)||void 0===e?void 0:e.createElement))try{var o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o),(null===(t=o.contentWindow)||void 0===t?void 0:t.fetch)&&(i=o.contentWindow.fetch),r.head.removeChild(o)}catch(a){m.k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",a)}return i.bind(n)}());var r=e.call(this,t)||this;return r._fetch=n,r}return(0,r.ZT)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(G(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Q(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:(0,O.hv)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new H.c((function(t,i){n._fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)}))}))},t}(J),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(G(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Q(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add((function(){return new H.c((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)}))}))},t}(J),Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.eventFromException=function(e,t){return(0,L.dr)(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=x.z.Info),(0,L.aB)(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=(0,r.pi)((0,r.pi)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):(0,O.Ak)()?new K(t):new Y(t)},t}(I),V=n(21175),$=0;function q(){return $>0}function ee(){$+=1,setTimeout((function(){$-=1}))}function te(e,t,n){if(void 0===t&&(t={}),"function"!==typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(a){return e}var i=function(){var i=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var o=i.map((function(e){return te(e,t)}));return e.handleEvent?e.handleEvent.apply(this,o):e.apply(this,o)}catch(a){throw ee(),(0,V.$e)((function(e){e.addEventProcessor((function(e){var n=(0,r.pi)({},e);return t.mechanism&&((0,l.Db)(n,void 0,void 0),(0,l.EG)(n,t.mechanism)),n.extra=(0,r.pi)((0,r.pi)({},n.extra),{arguments:i}),n})),(0,V.Tb)(a)})),a}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(s){}e.prototype=e.prototype||{},i.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(s){}return i}function ne(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new W(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else m.k.error("Missing dsn option in showReportDialog call");else m.k.error("Missing eventId option in showReportDialog call")}var re=n(4044),ie=function(){function e(t){this.name=e.id,this._options=(0,r.pi)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,M.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,l.jH)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&(0,y.o)({callback:function(){for(var t=[],n=0;n"}0!==t.length&&(0,M.Gd)().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;(0,M.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,M.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:x.z.Error,type:"http"},{data:e.error,input:e.args}):(0,M.Gd)().addBreadcrumb({category:"fetch",data:(0,r.pi)((0,r.pi)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,l.Rf)(),n=e.from,r=e.to,i=(0,l.en)(t.location.href),o=(0,l.en)(n),a=(0,l.en)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,M.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),oe=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:g.J}],version:g.J},e.call(this,Z,t)||this}return(0,r.ZT)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,l.Rf)().document&&(this._isEnabled()?ne((0,r.pi)((0,r.pi)({},e),{dsn:e.dsn||this.getDsn()})):m.k.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(ie);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(D),ae=n(58578),se=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ue=function(){function e(t){this.name=e.id,this._options=(0,r.pi)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,l.Rf)();(this._options.setTimeout&&(0,P.hl)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&(0,P.hl)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&(0,P.hl)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,P.hl)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:se).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n0?t:(0,l.l4)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),Me=n(26286),me=n(72477),le=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){(0,c.c)((function(t,n){var r=(0,M.Gd)().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!e.exception||!e.exception.values||!t||!(0,_.V9)(t.originalException,Error))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=(0,r.fl)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!(0,_.V9)(e[t],Error)||n.length+1>=this._limit)return n;var i=(0,me._)(e[t]),o=(0,Me.__)(i);return this._walkErrorTree(e[t],t,(0,r.fl)([o],n))},e.id="LinkedErrors",e}(),de=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(r._shouldDropEvent(t,r._previousEvent))return null}catch(i){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.prototype._shouldDropEvent=function(e,t){return!!t&&(!!this._isSameMessageEvent(e,t)||!!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t))))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}else if(e.stacktrace)return e.stacktrace.frames},e.prototype._isSameStacktrace=function(e,t){var n=this._getFramesFromEvent(e),r=this._getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,M=/Minified React error #\d+;/i;function m(e){var t=null,n=0;e&&("number"===typeof e.framesToPop?n=e.framesToPop:M.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,a=n.split("\n"),s=[],u=0;u eval")>-1&&(t=u.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==l||n[5]||void 0===e.columnNumber||(M[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||i,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=i),M.push(r)}if(!M.length)return null;return{message:d(e),name:e.name,stack:M}}(e))return l(t,n)}catch(r){}return{message:d(e),name:e&&e.name,stack:[],failed:!0}}function l(e,t){try{return(0,r.pi)((0,r.pi)({},e),{stack:e.stack.slice(t)})}catch(n){return e}}function d(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}},11837:function(e,t,n){"use strict";n.d(t,{XA:function(){return a},ZT:function(){return i},fl:function(){return u},pi:function(){return o}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"===typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===i.$.Ok?this.update({status:i.$.Exited}):this.update()},e.prototype.toJSON=function(){return(0,M.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:(0,M.Jr)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),l=function(){function e(e,t,n){void 0===t&&(t=new c.s),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version0?e.breadcrumbs:void 0,this._notifyEventProcessors((0,r.fl)(c(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,o){var s=this;return void 0===o&&(o=0),new a.c((function(a,u){var c=e[o];if(null===t||"function"!==typeof c)a(t);else{var M=c((0,r.pi)({},t),n);(0,i.J8)(M)?M.then((function(t){return s._notifyEventProcessors(e,t,n,o+1).then(a)})).then(null,u):s._notifyEventProcessors(e,M,n,o+1).then(a).then(null,u)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function c(){var e=(0,s.Rf)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function M(e){c().push(e)}},48299:function(e,t,n){"use strict";n.d(t,{fl:function(){return o},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function i(){for(var e=[],t=0;t Global error occured"),e.setStatus(c.p.InternalError))}var l=n(45522),d=n(34281);function h(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function f(e,t,n){return(0,M.zu)()?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:r.Explicit}}),e):("function"===typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:r.Sampler,rate:Number(i)}})):void 0!==n.parentSampled?(i=n.parentSampled,e.setMetadata({transactionSampling:{method:r.Inheritance}})):(i=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:r.Rate,rate:Number(i)}})),function(e){if(isNaN(e)||"number"!==typeof e&&"boolean"!==typeof e)return a.k.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return a.k.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(i)?i?(e.sampled=Math.random()0&&(t.__SENTRY__.integrations=(0,i.fl)(t.__SENTRY__.integrations||[],r))}}(),(0,u.o)({callback:m,type:"error"}),(0,u.o)({callback:m,type:"unhandledrejection"})}e=n.hmd(e)},45522:function(e,t,n){"use strict";n.d(t,{io:function(){return m},nT:function(){return c}});var r=n(25880),i=n(39846),o=n(56017),a=n(34533),s=n(33835),u=n(34281),c=1e3,M=function(e){function t(t,n,r,i){void 0===r&&(r="");var o=e.call(this,i)||this;return o._pushActivity=t,o._popActivity=n,o.transactionSpanId=r,o}return(0,r.ZT)(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"===typeof e?e:(0,i._I)(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(a.g),m=function(e){function t(t,n,r,i){void 0===r&&(r=c),void 0===i&&(i=!1);var a=e.call(this,t,n)||this;return a._idleHub=n,a._idleTimeout=r,a._onScope=i,a.activities={},a._heartbeatTimer=0,a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&i&&(l(n),o.k.log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope((function(e){return e.setSpan(a)}))),a._initTimeout=setTimeout((function(){a._finished||a.finish()}),a._idleTimeout),a}return(0,r.ZT)(t,e),t.prototype.finish=function(t){var n,a,u=this;if(void 0===t&&(t=(0,i._I)()),this._finished=!0,this.activities={},this.spanRecorder){o.k.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var c=(0,r.XA)(this._beforeFinishCallbacks),M=c.next();!M.done;M=c.next()){(0,M.value)(this,t)}}catch(m){n={error:m}}finally{try{M&&!M.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===u.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus(s.p.Cancelled),o.k.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp=3?(o.k.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(s.p.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;o.k.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),this._heartbeatTimer=setTimeout((function(){e._beat()}),5e3)},t}(u.Y);function l(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},34533:function(e,t,n){"use strict";n.d(t,{D:function(){return c},g:function(){return u}});var r=n(25880),i=n(76870),o=n(39846),a=n(35708),s=n(33835),u=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),c=function(){function e(e){if(this.traceId=(0,i.DM)(),this.spanId=(0,i.DM)().substring(16),this.startTimestamp=(0,o._I)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e((0,r.pi)((0,r.pi)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=(0,r.pi)((0,r.pi)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=(0,r.pi)((0,r.pi)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=s.p.fromHttpCode(e);return t!==s.p.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===s.p.Ok},e.prototype.finish=function(e){this.endTimestamp="number"===typeof e?e:(0,o._I)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,i,o;return this.data=null!==(t=e.data)&&void 0!==t?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!==(n=e.spanId)&&void 0!==n?n:this.spanId,this.startTimestamp=null!==(r=e.startTimestamp)&&void 0!==r?r:this.startTimestamp,this.status=e.status,this.tags=null!==(i=e.tags)&&void 0!==i?i:{},this.traceId=null!==(o=e.traceId)&&void 0!==o?o:this.traceId,this},e.prototype.getTraceContext=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},33835:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r}}),function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(r||(r={}))},34281:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(25880),i=n(97648),o=n(88805),a=n(56017),s=n(35708),u=n(34533),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=(0,i.Gd)(),(0,o.V9)(n,i.Xb)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return(0,r.ZT)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new u.g(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=(0,r.pi)({},e)},t.prototype.setMetadata=function(e){this.metadata=(0,r.pi)((0,r.pi)({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(a.k.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var i={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata};return Object.keys(this._measurements).length>0&&(a.k.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),a.k.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(i)}a.k.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return(0,s.Jr)((0,r.pi)((0,r.pi)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!==(n=t.name)&&void 0!==n?n:"",this._trimEnd=t.trimEnd,this},t}(u.D)},45129:function(e,t,n){"use strict";n.d(t,{WB:function(){return c},XL:function(){return u},qG:function(){return a},x1:function(){return s},zu:function(){return o}});var r=n(97648),i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(e){var t;return void 0===e&&(e=null===(t=(0,r.Gd)().getClient())||void 0===t?void 0:t.getOptions()),!!e&&("tracesSampleRate"in e||"tracesSampler"in e)}function a(e){var t=e.match(i);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}function s(e){var t,n;return void 0===e&&(e=(0,r.Gd)()),null===(n=null===(t=e)||void 0===t?void 0:t.getScope())||void 0===n?void 0:n.getTransaction()}function u(e){return e/1e3}function c(e){return 1e3*e}},25880:function(e,t,n){"use strict";n.d(t,{CR:function(){return u},XA:function(){return s},ZT:function(){return i},_T:function(){return a},fl:function(){return c},pi:function(){return o}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var e=[],t=0;t ".length,u=void 0;n&&i++<5&&!("html"===(u=o(n,t))||i>1&&a+r.length*s+u.length>=80);)r.push(u),a+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(c){return""}}function o(e,t){var n,i,o,a,s,u,c,M=e,m=[];if(!M||!M.tagName)return"";m.push(M.tagName.toLowerCase());var l=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return M.getAttribute(e)})).map((function(e){return[e,M.getAttribute(e)]})):null;if(null===(i=l)||void 0===i?void 0:i.length)l.forEach((function(e){m.push("["+e[0]+'="'+e[1]+'"]')}));else if(M.id&&m.push("#"+M.id),(o=M.className)&&(0,r.HD)(o))for(a=o.split(/\s+/),c=0;c2?t[2]:void 0;if(i){var o=r,a=String(i);r=a,p("history",{from:o,to:a})}return e.apply(this,t)}}m.onpopstate=function(){for(var t=[],n=0;n"}return e.event_id||""}function c(e){var t=o();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function M(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function m(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(n){}}function l(){try{return document.location.href}catch(e){return""}}var d=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function h(e){var t=e.match(d)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function f(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},19685:function(e,t,n){"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function i(e,t){return e.require(t)}function o(t){var n;try{n=i(e,t)}catch(o){}try{var r=i(e,"process").cwd;n=i(e,r()+"/node_modules/"+t)}catch(o){}return n}n.d(t,{$y:function(){return o},KV:function(){return r},l$:function(){return i}}),e=n.hmd(e)},35708:function(e,t,n){"use strict";n.d(t,{Jr:function(){return g},zf:function(){return y},hl:function(){return c},Fv:function(){return p},Qy:function(){return d},_j:function(){return M}});var r=n(90538),i=n(4044),o=n(88805),a=function(){function e(){this._hasWeakSet="function"===typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t"}try{s.currentTarget=(0,o.kK)(a.currentTarget)?(0,i.R)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(u){s.currentTarget=""}for(var r in"undefined"!==typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,r)&&(s[r]=a);return s}return e}function l(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function d(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=p(e,t);return l(r)>n?d(e,t-1,n):r}function h(e,t){return"domain"===t&&e&&"object"===typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!==typeof n.g&&e===n.g?"[Global]":"undefined"!==typeof window&&e===window?"[Window]":"undefined"!==typeof document&&e===document?"[Document]":(0,o.Cy)(e)?"[SyntheticEvent]":"number"===typeof e&&e!==e?"[NaN]":void 0===e?"[undefined]":"function"===typeof e?"[Function: "+(0,s.$)(e)+"]":"symbol"===typeof e?"["+String(e)+"]":"bigint"===typeof e?"[BigInt: "+String(e)+"]":e}function f(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"===typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=h(e);return(0,o.pt)(n)?n:t}(t);if(null!==t&&void 0!==t&&"function"===typeof t.toJSON)return t.toJSON();var i=h(t,e);if((0,o.pt)(i))return i;var s=m(t),u=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(u[c]=f(c,s[c],n-1,r));return r.unmemoize(t),u}function p(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return f(e,n,t)})))}catch(n){return"**non-serializable**"}}function y(e,t){void 0===t&&(t=40);var n=Object.keys(m(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,u.$G)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:(0,u.$G)(i,t)}return""}function g(e){var t,n;if((0,o.PO)(e)){var i=e,a={};try{for(var s=(0,r.XA)(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;"undefined"!==typeof i[c]&&(a[c]=g(i[c]))}}catch(M){t={error:M}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(g):e}},58578:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r="";function i(e){try{return e&&"function"===typeof e&&e.name||r}catch(t){return r}}},87050:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},nK:function(){return o},zC:function(){return a}});var r=n(88805);function i(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}},98993:function(e,t,n){"use strict";var r=n(17622),i=n(72791),o=n(54164);function a(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var s="undefined"!==typeof window&&"undefined"!==typeof document;function u(e,t){e&&("function"===typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function c(){return s&&document.createElement("div")}function M(e,t){if(e===t)return!0;if("object"===typeof e&&null!=e&&"object"===typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!M(e[n],t[n]))return!1}return!0}return!1}function m(e){var t=[];return e.forEach((function(e){t.find((function(t){return M(e,t)}))||t.push(e)})),t}function l(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:m([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var d=s?i.useLayoutEffect:i.useEffect;function h(e){var t=(0,i.useRef)();return t.current||(t.current="function"===typeof e?e():e),t.current}function f(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var p={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||f(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&f(t,"remove",e.props.className)},onAfterUpdate:r}}};function y(e){return function(t){var n=t.children,r=t.content,s=t.visible,M=t.singleton,m=t.render,f=t.reference,y=t.disabled,g=void 0!==y&&y,E=t.ignoreAttributes,v=void 0===E||E,b=(t.__source,t.__self,a(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),w=void 0!==s,S=void 0!==M,C=(0,i.useState)(!1),A=C[0],_=C[1],H=(0,i.useState)({}),k=H[0],P=H[1],N=(0,i.useState)(),T=N[0],R=N[1],B=h((function(){return{container:c(),renders:1}})),D=Object.assign({ignoreAttributes:v},b,{content:B.container});w&&(D.trigger="manual",D.hideOnClick=!1),S&&(g=!0);var F=D,I=D.plugins||[];m&&(F=Object.assign({},D,{plugins:S&&null!=M.data?[].concat(I,[{fn:function(){return{onTrigger:function(e,t){var n=M.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,R(n.content)}}}}]):I,render:function(){return{popper:B.container}}}));var x=[f].concat(n?[n.type]:[]);return d((function(){var t=f;f&&f.hasOwnProperty("current")&&(t=f.current);var n=e(t||B.ref||c(),Object.assign({},F,{plugins:[p].concat(D.plugins||[])}));return B.instance=n,g&&n.disable(),s&&n.show(),S&&M.hook({instance:n,content:r,props:F,setSingletonContent:R}),_(!0),function(){n.destroy(),null==M||M.cleanup(n)}}),x),d((function(){var e;if(1!==B.renders){var t=B.instance;t.setProps(l(t.props,F)),null==(e=t.popperInstance)||e.forceUpdate(),g?t.disable():t.enable(),w&&(s?t.show():t.hide()),S&&M.hook({instance:t,content:r,props:F,setSingletonContent:R})}else B.renders++})),d((function(){var e;if(m){var t=B.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;k.placement===n.placement&&k.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&k.escaped===(null==r?void 0:r.hasPopperEscaped)||P({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[k.placement,k.referenceHidden,k.escaped].concat(x)),i.createElement(i.Fragment,null,n?(0,i.cloneElement)(n,{ref:function(e){B.ref=e,u(n.ref,e)}}):null,A&&(0,o.createPortal)(m?m(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(k),T,B.instance):r,B.container))}}function g(e){return function(t){var n=void 0===t?{}:t,r=n.disabled,o=void 0!==r&&r,s=n.overrides,u=void 0===s?[]:s,c=(0,i.useState)(!1),M=c[0],m=c[1],f=h({children:[],renders:1});return d((function(){if(M){var t=f.children,n=f.sourceData;if(n){var r=e(t.map((function(e){return e.instance})),Object.assign({},n.props,{popperOptions:n.instance.props.popperOptions,overrides:u,plugins:[p].concat(n.props.plugins||[])}));return f.instance=r,o&&r.disable(),function(){r.destroy(),f.children=t.filter((function(e){return!e.instance.state.isDestroyed}))}}}else m(!0)}),[M]),d((function(){if(M)if(1!==f.renders){var e=f.children,t=f.instance,n=f.sourceData;if(t&&n){var r=n.props,i=(r.content,a(r,["content"]));t.setProps(l(t.props,Object.assign({},i,{overrides:u}))),t.setInstances(e.map((function(e){return e.instance}))),o?t.disable():t.enable()}}else f.renders++})),(0,i.useMemo)((function(){return[{data:f,hook:function(e){f.sourceData=e,f.setSingletonContent=e.setSingletonContent},cleanup:function(){f.sourceData=null}},{hook:function(e){var t,n;f.children=f.children.filter((function(t){var n=t.instance;return e.instance!==n})),f.children.push(e),(null==(t=f.instance)?void 0:t.state.isMounted)&&(null==(n=f.instance)?void 0:n.state.$$activeSingletonInstance)===e.instance&&(null==f.setSingletonContent||f.setSingletonContent(e.content)),f.instance&&!f.instance.state.isDestroyed&&f.instance.setInstances(f.children.map((function(e){return e.instance})))},cleanup:function(e){f.children=f.children.filter((function(t){return t.instance!==e})),f.instance&&!f.instance.state.isDestroyed&&f.instance.setInstances(f.children.map((function(e){return e.instance})))}}]}),[])}}var E=function(e,t){return(0,i.forwardRef)((function(n,r){var o=n.children,s=a(n,["children"]);return i.createElement(e,Object.assign({},t,s),o?(0,i.cloneElement)(o,{ref:function(e){u(r,e),u(o.ref,e)}}):null)}))},v=(r.XB,E(y(r.ZP)));t.ZP=v},5316:function(e,t,n){"use strict";function r(e){o.length||(i(),!0),o[o.length]=e}e.exports=r;var i,o=[],a=0;function s(){for(;a1024){for(var t=0,n=o.length-a;t1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;ie.length)&&(n=e.length),e.substring(n-t.length,n)===t}var p="",y="",g="",E="",v={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function b(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function w(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(e,t,n){var r="",i="",o=0,a="",s=!1,u=w(e),c=u.split("\n"),M=w(t).split("\n"),m=0,d="";if("strictEqual"===n&&"object"===l(e)&&"object"===l(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===M.length&&c[0]!==M[0]){var h=c[0].length+M[0].length;if(h<=10){if(("object"!==l(e)||null===e)&&("object"!==l(t)||null===t)&&(0!==e||0!==t))return"".concat(v[n],"\n\n")+"".concat(c[0]," !== ").concat(M[0],"\n")}else if("strictEqualObject"!==n){if(h<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;c[0][m]===M[0][m];)m++;m>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",m),"^"),m=0)}}}for(var b=c[c.length-1],S=M[M.length-1];b===S&&(m++<2?a="\n ".concat(b).concat(a):r=b,c.pop(),M.pop(),0!==c.length&&0!==M.length);)b=c[c.length-1],S=M[M.length-1];var C=Math.max(c.length,M.length);if(0===C){var A=u.split("\n");if(A.length>30)for(A[26]="".concat(p,"...").concat(E);A.length>27;)A.pop();return"".concat(v.notIdentical,"\n\n").concat(A.join("\n"),"\n")}m>3&&(a="\n".concat(p,"...").concat(E).concat(a),s=!0),""!==r&&(a="\n ".concat(r).concat(a),r="");var _=0,H=v[n]+"\n".concat(y,"+ actual").concat(E," ").concat(g,"- expected").concat(E),k=" ".concat(p,"...").concat(E," Lines skipped");for(m=0;m1&&m>2&&(P>4?(i+="\n".concat(p,"...").concat(E),s=!0):P>3&&(i+="\n ".concat(M[m-2]),_++),i+="\n ".concat(M[m-1]),_++),o=m,r+="\n".concat(g,"-").concat(E," ").concat(M[m]),_++;else if(M.length1&&m>2&&(P>4?(i+="\n".concat(p,"...").concat(E),s=!0):P>3&&(i+="\n ".concat(c[m-2]),_++),i+="\n ".concat(c[m-1]),_++),o=m,i+="\n".concat(y,"+").concat(E," ").concat(c[m]),_++;else{var N=M[m],T=c[m],R=T!==N&&(!f(T,",")||T.slice(0,-1)!==N);R&&f(N,",")&&N.slice(0,-1)===T&&(R=!1,T+=","),R?(P>1&&m>2&&(P>4?(i+="\n".concat(p,"...").concat(E),s=!0):P>3&&(i+="\n ".concat(c[m-2]),_++),i+="\n ".concat(c[m-1]),_++),o=m,i+="\n".concat(y,"+").concat(E," ").concat(T),r+="\n".concat(g,"-").concat(E," ").concat(N),_+=2):(i+=r,r="",1!==P&&0!==m||(i+="\n ".concat(T),_++))}if(_>20&&m30)for(f[26]="".concat(p,"...").concat(E);f.length>27;)f.pop();n=1===f.length?o(this,m(t).call(this,"".concat(d," ").concat(f[0]))):o(this,m(t).call(this,"".concat(d,"\n\n").concat(f.join("\n"),"\n")))}else{var C=w(u),A="",_=v[i];"notDeepEqual"===i||"notEqual"===i?(C="".concat(v[i],"\n\n").concat(C)).length>1024&&(C="".concat(C.slice(0,1021),"...")):(A="".concat(w(c)),C.length>512&&(C="".concat(C.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===i||"equal"===i?C="".concat(_,"\n\n").concat(C,"\n\nshould equal\n\n"):A=" ".concat(i," ").concat(A)),n=o(this,m(t).call(this,"".concat(C).concat(A)))}return Error.stackTraceLimit=M,n.generatedMessage=!r,Object.defineProperty(a(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=c,n.operator=i,Error.captureStackTrace&&Error.captureStackTrace(a(n),s),n.stack,n.name="AssertionError",o(n)}var n,s,u;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(t,e),n=t,(s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}M("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),M("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,u,c;if(void 0===s&&(s=n(88093)),s("string"===typeof e,"'name' must be a string"),"string"===typeof t&&(a="not ",t.substr(!u||u<0?0:+u,a.length)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(m(t,"type"));else{var M=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(M," ").concat(o," ").concat(m(t,"type"))}return c+=". Received type ".concat(r(i))}),TypeError),M("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=n(49639));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),M("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),M("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=c},46912:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},u=Object.is?Object.is:n(33454),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},M=Number.isNaN?Number.isNaN:n(6188);function m(e){return e.call.bind(e)}var l=m(Object.prototype.hasOwnProperty),d=m(Object.prototype.propertyIsEnumerable),h=m(Object.prototype.toString),f=n(49639).types,p=f.isAnyArrayBuffer,y=f.isArrayBufferView,g=f.isDate,E=f.isMap,v=f.isRegExp,b=f.isSet,w=f.isNativeError,S=f.isBoxedPrimitive,C=f.isNumberObject,A=f.isStringObject,_=f.isBooleanObject,H=f.isBigIntObject,k=f.isSymbolObject,P=f.isFloat32Array,N=f.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function R(e){return Object.keys(e).filter(T).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function B(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},77327:function(e,t,n){e.exports={default:n(61433),__esModule:!0}},95977:function(e,t,n){"use strict";var r,i=n(77327),o=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){return function(){var t=e.apply(this,arguments);return new o.default((function(e,n){return function r(i,a){try{var s=t[i](a),u=s.value}catch(c){return void n(c)}if(!s.done)return o.default.resolve(u).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(u)}("next")}))}}},61433:function(e,t,n){n(21504),n(29366),n(45690),n(80194),n(10309),n(37827),e.exports=n(40640).Promise},67281:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},72642:function(e){e.exports=function(){}},48368:function(e){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},79478:function(e,t,n){var r=n(65682);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},71437:function(e,t,n){var r=n(4969),i=n(89839),o=n(22137);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),M=o(a,c);if(e&&n!=n){for(;c>M;)if((s=u[M++])!=s)return!0}else for(;c>M;M++)if((e||M in u)&&u[M]===n)return e||M||0;return!e&&-1}}},26413:function(e,t,n){var r=n(93760),i=n(56505)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},93760:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},40640:function(e){var t=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=t)},79882:function(e,t,n){var r=n(67281);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},16101:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},73457:function(e,t,n){e.exports=!n(31718)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},80244:function(e,t,n){var r=n(65682),i=n(69765).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2158:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},58430:function(e,t,n){var r=n(69765),i=n(40640),o=n(79882),a=n(61086),s=n(39820),u=function e(t,n,u){var c,M,m,l=t&e.F,d=t&e.G,h=t&e.S,f=t&e.P,p=t&e.B,y=t&e.W,g=d?i:i[n]||(i[n]={}),E=g.prototype,v=d?r:h?r[n]:(r[n]||{}).prototype;for(c in d&&(u=n),u)(M=!l&&v&&void 0!==v[c])&&s(g,c)||(m=M?v[c]:u[c],g[c]=d&&"function"!=typeof v[c]?u[c]:p&&M?o(m,r):y&&v[c]==m?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(m):f&&"function"==typeof m?o(Function.call,m):m,f&&((g.virtual||(g.virtual={}))[c]=m,t&e.R&&E&&!E[c]&&a(E,c,m)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},31718:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},54435:function(e,t,n){var r=n(79882),i=n(34567),o=n(44175),a=n(79478),s=n(89839),u=n(78458),c={},M={},m=e.exports=function(e,t,n,m,l){var d,h,f,p,y=l?function(){return e}:u(e),g=r(n,m,t?2:1),E=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=s(e.length);d>E;E++)if((p=t?g(a(h=e[E])[0],h[1]):g(e[E]))===c||p===M)return p}else for(f=y.call(e);!(h=f.next()).done;)if((p=i(f,g,h.value,t))===c||p===M)return p};m.BREAK=c,m.RETURN=M},69765:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},39820:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},61086:function(e,t,n){var r=n(51272),i=n(6117);e.exports=n(73457)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},45942:function(e,t,n){var r=n(69765).document;e.exports=r&&r.documentElement},23952:function(e,t,n){e.exports=!n(73457)&&!n(31718)((function(){return 7!=Object.defineProperty(n(80244)("div"),"a",{get:function(){return 7}}).a}))},74727:function(e){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},21922:function(e,t,n){var r=n(93760);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},44175:function(e,t,n){var r=n(1700),i=n(56505)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},65682:function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},34567:function(e,t,n){var r=n(79478);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e.return;throw void 0!==o&&r(o.call(e)),a}}},59136:function(e,t,n){"use strict";var r=n(91760),i=n(6117),o=n(20825),a={};n(61086)(a,n(56505)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},85387:function(e,t,n){"use strict";var r=n(73845),i=n(58430),o=n(24368),a=n(61086),s=n(1700),u=n(59136),c=n(20825),M=n(94794),m=n(56505)("iterator"),l=!([].keys&&"next"in[].keys()),d="keys",h="values",f=function(){return this};e.exports=function(e,t,n,p,y,g,E){u(n,t,p);var v,b,w,S=function(e){if(!l&&e in H)return H[e];switch(e){case d:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",A=y==h,_=!1,H=e.prototype,k=H[m]||H["@@iterator"]||y&&H[y],P=k||S(y),N=y?A?S("entries"):P:void 0,T="Array"==t&&H.entries||k;if(T&&(w=M(T.call(new e)))!==Object.prototype&&w.next&&(c(w,C,!0),r||"function"==typeof w[m]||a(w,m,f)),A&&k&&k.name!==h&&(_=!0,P=function(){return k.call(this)}),r&&!E||!l&&!_&&H[m]||a(H,m,P),s[t]=P,s[C]=f,y)if(v={values:A?P:S(h),keys:g?P:S(d),entries:N},E)for(b in v)b in H||o(H,b,v[b]);else i(i.P+i.F*(l||_),t,v);return v}},33471:function(e,t,n){var r=n(56505)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},82217:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},1700:function(e){e.exports={}},73845:function(e){e.exports=!0},44290:function(e,t,n){var r=n(69765),i=n(95401).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(93760)(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var M=s.resolve(void 0);n=function(){M.then(c)}}else n=function(){i.call(r,c)};else{var m=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),n=function(){l.data=m=!m}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},80320:function(e,t,n){"use strict";var r=n(67281);function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},91760:function(e,t,n){var r=n(79478),i=n(75475),o=n(2158),a=n(11383)("IE_PROTO"),s=function(){},u=function(){var e,t=n(80244)("iframe"),r=o.length;for(t.style.display="none",n(45942).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("